Skip to content
This repository was archived by the owner on Oct 4, 2019. It is now read-only.

Commit 9678d47

Browse files
committed
1 parent 8709035 commit 9678d47

File tree

7 files changed

+70
-148
lines changed

7 files changed

+70
-148
lines changed

LICENSE

+11-24
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,13 @@
1-
Copyright (c) 2010, Dev:Extend
2-
All rights reserved.
1+
Copyright (c) 2011, Anthony Ramine <[email protected]>
32

4-
Redistribution and use in source and binary forms, with or without
5-
modification, are permitted provided that the following conditions are met:
3+
Permission to use, copy, modify, and/or distribute this software for any
4+
purpose with or without fee is hereby granted, provided that the above
5+
copyright notice and this permission notice appear in all copies.
66

7-
* Redistributions of source code must retain the above copyright notice,
8-
this list of conditions and the following disclaimer.
9-
* Redistributions in binary form must reproduce the above copyright
10-
notice, this list of conditions and the following disclaimer in the
11-
documentation and/or other materials provided with the distribution.
12-
* Neither the name of Dev:Extend nor the names of its contributors may be
13-
used to endorse or promote products derived from this software without
14-
specific prior written permission.
15-
16-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19-
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20-
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21-
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22-
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23-
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24-
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25-
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26-
POSSIBILITY OF SUCH DAMAGE.
7+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

README

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
An APNS client.
2-
Copyright (c) 2010, Dev:Extend
2+
Copyright (c) 2011, Anthony Ramine <[email protected]>

rebar.config

+11-24
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,16 @@
1-
%% Copyright (c) 2010, Dev:Extend
2-
%% All rights reserved.
1+
%% Copyright (c) 2011, Anthony Ramine <[email protected]>
32
%%
4-
%% Redistribution and use in source and binary forms, with or without
5-
%% modification, are permitted provided that the following conditions are met:
3+
%% Permission to use, copy, modify, and/or distribute this software for any
4+
%% purpose with or without fee is hereby granted, provided that the above
5+
%% copyright notice and this permission notice appear in all copies.
66
%%
7-
%% * Redistributions of source code must retain the above copyright notice,
8-
%% this list of conditions and the following disclaimer.
9-
%% * Redistributions in binary form must reproduce the above copyright
10-
%% notice, this list of conditions and the following disclaimer in the
11-
%% documentation and/or other materials provided with the distribution.
12-
%% * Neither the name of Dev:Extend nor the names of its contributors may be
13-
%% used to endorse or promote products derived from this software without
14-
%% specific prior written permission.
15-
%%
16-
%% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17-
%% AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18-
%% IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19-
%% ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20-
%% LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21-
%% CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22-
%% SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23-
%% INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24-
%% CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25-
%% ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26-
%% POSSIBILITY OF SUCH DAMAGE.
7+
%% THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8+
%% WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9+
%% MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10+
%% ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11+
%% WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12+
%% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13+
%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2714

2815
{deps, [{mochiutils, "1.0",
2916
{git, "https://github.com/CapnKernul/mochiutils.git", "1.0"}}]}.

src/ex_apns.app.src

+11-24
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,16 @@
1-
%% Copyright (c) 2010, Dev:Extend
2-
%% All rights reserved.
1+
%% Copyright (c) 2011, Anthony Ramine <[email protected]>
32
%%
4-
%% Redistribution and use in source and binary forms, with or without
5-
%% modification, are permitted provided that the following conditions are met:
3+
%% Permission to use, copy, modify, and/or distribute this software for any
4+
%% purpose with or without fee is hereby granted, provided that the above
5+
%% copyright notice and this permission notice appear in all copies.
66
%%
7-
%% * Redistributions of source code must retain the above copyright notice,
8-
%% this list of conditions and the following disclaimer.
9-
%% * Redistributions in binary form must reproduce the above copyright
10-
%% notice, this list of conditions and the following disclaimer in the
11-
%% documentation and/or other materials provided with the distribution.
12-
%% * Neither the name of Dev:Extend nor the names of its contributors may be
13-
%% used to endorse or promote products derived from this software without
14-
%% specific prior written permission.
15-
%%
16-
%% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17-
%% AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18-
%% IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19-
%% ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20-
%% LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21-
%% CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22-
%% SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23-
%% INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24-
%% CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25-
%% ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26-
%% POSSIBILITY OF SUCH DAMAGE.
7+
%% THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8+
%% WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9+
%% MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10+
%% ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11+
%% WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12+
%% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13+
%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2714

2815
{application, ex_apns,
2916
[

src/ex_apns.erl

+12-25
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,16 @@
1-
%% Copyright (c) 2010, Dev:Extend
2-
%% All rights reserved.
1+
%% Copyright (c) 2011, Anthony Ramine <[email protected]>
32
%%
4-
%% Redistribution and use in source and binary forms, with or without
5-
%% modification, are permitted provided that the following conditions are met:
3+
%% Permission to use, copy, modify, and/or distribute this software for any
4+
%% purpose with or without fee is hereby granted, provided that the above
5+
%% copyright notice and this permission notice appear in all copies.
66
%%
7-
%% * Redistributions of source code must retain the above copyright notice,
8-
%% this list of conditions and the following disclaimer.
9-
%% * Redistributions in binary form must reproduce the above copyright
10-
%% notice, this list of conditions and the following disclaimer in the
11-
%% documentation and/or other materials provided with the distribution.
12-
%% * Neither the name of Dev:Extend nor the names of its contributors may be
13-
%% used to endorse or promote products derived from this software without
14-
%% specific prior written permission.
15-
%%
16-
%% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17-
%% AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18-
%% IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19-
%% ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20-
%% LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21-
%% CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22-
%% SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23-
%% INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24-
%% CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25-
%% ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26-
%% POSSIBILITY OF SUCH DAMAGE.
7+
%% THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8+
%% WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9+
%% MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10+
%% ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11+
%% WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12+
%% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13+
%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2714

2815
%% @type env() = production | development.
2916
%% @type start_error() = {error, {already_started, pid()} | term()}.
@@ -34,7 +21,7 @@
3421

3522
-module(ex_apns).
3623
-behaviour(gen_server).
37-
-author('Anthony Ramine <[email protected]>').
24+
-author('Anthony Ramine <[email protected]>').
3825

3926
-export([start/3,
4027
start_link/3,

src/ex_apns_app.erl

+12-25
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,20 @@
1-
%% Copyright (c) 2010, Dev:Extend
2-
%% All rights reserved.
1+
%% Copyright (c) 2011, Anthony Ramine <[email protected]>
32
%%
4-
%% Redistribution and use in source and binary forms, with or without
5-
%% modification, are permitted provided that the following conditions are met:
3+
%% Permission to use, copy, modify, and/or distribute this software for any
4+
%% purpose with or without fee is hereby granted, provided that the above
5+
%% copyright notice and this permission notice appear in all copies.
66
%%
7-
%% * Redistributions of source code must retain the above copyright notice,
8-
%% this list of conditions and the following disclaimer.
9-
%% * Redistributions in binary form must reproduce the above copyright
10-
%% notice, this list of conditions and the following disclaimer in the
11-
%% documentation and/or other materials provided with the distribution.
12-
%% * Neither the name of Dev:Extend nor the names of its contributors may be
13-
%% used to endorse or promote products derived from this software without
14-
%% specific prior written permission.
15-
%%
16-
%% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17-
%% AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18-
%% IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19-
%% ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20-
%% LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21-
%% CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22-
%% SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23-
%% INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24-
%% CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25-
%% ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26-
%% POSSIBILITY OF SUCH DAMAGE.
7+
%% THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8+
%% WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9+
%% MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10+
%% ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11+
%% WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12+
%% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13+
%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2714

2815
-module(ex_apns_app).
2916
-behaviour(application).
30-
-author('Anthony Ramine <[email protected]>').
17+
-author('Anthony Ramine <[email protected]>').
3118

3219
-export([start/0]).
3320

src/ex_apns_sup.erl

+12-25
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,23 @@
1-
%% Copyright (c) 2010, Dev:Extend
2-
%% All rights reserved.
1+
%% Copyright (c) 2011, Anthony Ramine <[email protected]>
32
%%
4-
%% Redistribution and use in source and binary forms, with or without
5-
%% modification, are permitted provided that the following conditions are met:
3+
%% Permission to use, copy, modify, and/or distribute this software for any
4+
%% purpose with or without fee is hereby granted, provided that the above
5+
%% copyright notice and this permission notice appear in all copies.
66
%%
7-
%% * Redistributions of source code must retain the above copyright notice,
8-
%% this list of conditions and the following disclaimer.
9-
%% * Redistributions in binary form must reproduce the above copyright
10-
%% notice, this list of conditions and the following disclaimer in the
11-
%% documentation and/or other materials provided with the distribution.
12-
%% * Neither the name of Dev:Extend nor the names of its contributors may be
13-
%% used to endorse or promote products derived from this software without
14-
%% specific prior written permission.
15-
%%
16-
%% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17-
%% AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18-
%% IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19-
%% ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20-
%% LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21-
%% CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22-
%% SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23-
%% INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24-
%% CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25-
%% ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26-
%% POSSIBILITY OF SUCH DAMAGE.
7+
%% THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8+
%% WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9+
%% MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10+
%% ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11+
%% WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12+
%% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13+
%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2714

2815
%% @type env() = ex_apns:env().
2916
%% @type start_error() = ex_apns:start_error().
3017

3118
-module(ex_apns_sup).
3219
-behaviour(supervisor).
33-
-author('Anthony Ramine <[email protected]>').
20+
-author('Anthony Ramine <[email protected]>').
3421

3522
-export([start_link/0,
3623
start_child/3]).

0 commit comments

Comments
 (0)