apn 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.idea/workspace.xml +32 -27
- data/README.md +5 -5
- data/apn.gemspec +1 -1
- data/lib/apn/version.rb +1 -1
- metadata +3 -2
data/.idea/workspace.xml
CHANGED
@@ -2,14 +2,12 @@
|
|
2
2
|
<project version="4">
|
3
3
|
<component name="ChangeListManager">
|
4
4
|
<list default="true" id="0044e0ee-7253-4582-93d4-a45b83a4d6b2" name="Default" comment="">
|
5
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/
|
6
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/bin/apn" afterPath="$PROJECT_DIR$/bin/apn" />
|
5
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/apn.gemspec" afterPath="$PROJECT_DIR$/apn.gemspec" />
|
7
6
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/apn/version.rb" afterPath="$PROJECT_DIR$/lib/apn/version.rb" />
|
8
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
9
7
|
</list>
|
10
8
|
<ignored path="apn.iws" />
|
11
9
|
<ignored path=".idea/workspace.xml" />
|
12
|
-
<file path="/Dummy.txt" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="
|
10
|
+
<file path="/Dummy.txt" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386687705252" ignored="false" />
|
13
11
|
<file path="/apn.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386683866051" ignored="false" />
|
14
12
|
<file path="/client.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386675564025" ignored="false" />
|
15
13
|
<file path="/notification.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386621553010" ignored="false" />
|
@@ -87,15 +85,6 @@
|
|
87
85
|
</provider>
|
88
86
|
</entry>
|
89
87
|
</file>
|
90
|
-
<file leaf-file-name="notification.rb" pinned="false" current="false" current-in-tab="false">
|
91
|
-
<entry file="file://$PROJECT_DIR$/lib/apn/notification.rb">
|
92
|
-
<provider selected="true" editor-type-id="text-editor">
|
93
|
-
<state line="27" column="23" selection-start="907" selection-end="907" vertical-scroll-proportion="0.0">
|
94
|
-
<folding />
|
95
|
-
</state>
|
96
|
-
</provider>
|
97
|
-
</entry>
|
98
|
-
</file>
|
99
88
|
<file leaf-file-name="apn" pinned="false" current="false" current-in-tab="false">
|
100
89
|
<entry file="file://$PROJECT_DIR$/bin/apn">
|
101
90
|
<provider selected="true" editor-type-id="text-editor">
|
@@ -114,6 +103,15 @@
|
|
114
103
|
</provider>
|
115
104
|
</entry>
|
116
105
|
</file>
|
106
|
+
<file leaf-file-name="apn.gemspec" pinned="false" current="false" current-in-tab="false">
|
107
|
+
<entry file="file://$PROJECT_DIR$/apn.gemspec">
|
108
|
+
<provider selected="true" editor-type-id="text-editor">
|
109
|
+
<state line="10" column="216" selection-start="538" selection-end="538" vertical-scroll-proportion="0.0">
|
110
|
+
<folding />
|
111
|
+
</state>
|
112
|
+
</provider>
|
113
|
+
</entry>
|
114
|
+
</file>
|
117
115
|
<file leaf-file-name="config.rb" pinned="false" current="false" current-in-tab="false">
|
118
116
|
<entry file="file://$PROJECT_DIR$/lib/apn/config.rb">
|
119
117
|
<provider selected="true" editor-type-id="text-editor">
|
@@ -126,7 +124,7 @@
|
|
126
124
|
<file leaf-file-name="README.md" pinned="false" current="false" current-in-tab="false">
|
127
125
|
<entry file="file://$PROJECT_DIR$/README.md">
|
128
126
|
<provider selected="true" editor-type-id="text-editor">
|
129
|
-
<state line="
|
127
|
+
<state line="2" column="0" selection-start="7" selection-end="199" vertical-scroll-proportion="0.0">
|
130
128
|
<folding />
|
131
129
|
</state>
|
132
130
|
</provider>
|
@@ -166,12 +164,12 @@
|
|
166
164
|
<option value="$PROJECT_DIR$/lib/apn/config.rb" />
|
167
165
|
<option value="$PROJECT_DIR$/Gemfile" />
|
168
166
|
<option value="$PROJECT_DIR$/lib/apn/client.rb" />
|
169
|
-
<option value="$PROJECT_DIR$/apn.gemspec" />
|
170
167
|
<option value="$PROJECT_DIR$/lib/apn/daemon.rb" />
|
171
168
|
<option value="$PROJECT_DIR$/lib/apn/railtie.rb" />
|
172
169
|
<option value="$PROJECT_DIR$/lib/apn.rb" />
|
173
|
-
<option value="$PROJECT_DIR$/README.md" />
|
174
170
|
<option value="$PROJECT_DIR$/bin/apn" />
|
171
|
+
<option value="$PROJECT_DIR$/README.md" />
|
172
|
+
<option value="$PROJECT_DIR$/apn.gemspec" />
|
175
173
|
<option value="$PROJECT_DIR$/lib/apn/version.rb" />
|
176
174
|
</list>
|
177
175
|
</option>
|
@@ -426,12 +424,18 @@
|
|
426
424
|
<created>1386618772826</created>
|
427
425
|
<updated>1386618772826</updated>
|
428
426
|
</task>
|
427
|
+
<task id="LOCAL-00001" summary="Updated prerequisites.">
|
428
|
+
<created>1386687707917</created>
|
429
|
+
<updated>1386687707917</updated>
|
430
|
+
</task>
|
431
|
+
<option name="localTasksCounter" value="2" />
|
429
432
|
<servers />
|
430
433
|
</component>
|
431
434
|
<component name="ToolWindowManager">
|
432
435
|
<frame x="50" y="24" width="935" height="876" extended-state="0" />
|
433
436
|
<editor active="true" />
|
434
437
|
<layout>
|
438
|
+
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
435
439
|
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
436
440
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
437
441
|
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3288948" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
@@ -494,7 +498,7 @@
|
|
494
498
|
<option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="false" />
|
495
499
|
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
|
496
500
|
<option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />
|
497
|
-
<option name="LAST_COMMIT_MESSAGE" />
|
501
|
+
<option name="LAST_COMMIT_MESSAGE" value="Updated prerequisites." />
|
498
502
|
<option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />
|
499
503
|
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
|
500
504
|
<option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
|
@@ -508,6 +512,7 @@
|
|
508
512
|
<option name="UPDATE_FILTER_BY_SCOPE" value="false" />
|
509
513
|
<option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
|
510
514
|
<option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
|
515
|
+
<MESSAGE value="Updated prerequisites." />
|
511
516
|
</component>
|
512
517
|
<component name="XDebuggerManager">
|
513
518
|
<breakpoint-manager />
|
@@ -562,13 +567,6 @@
|
|
562
567
|
</state>
|
563
568
|
</provider>
|
564
569
|
</entry>
|
565
|
-
<entry file="file://$PROJECT_DIR$/apn.gemspec">
|
566
|
-
<provider selected="true" editor-type-id="text-editor">
|
567
|
-
<state line="27" column="29" selection-start="1054" selection-end="1054" vertical-scroll-proportion="0.5861071">
|
568
|
-
<folding />
|
569
|
-
</state>
|
570
|
-
</provider>
|
571
|
-
</entry>
|
572
570
|
<entry file="file://$PROJECT_DIR$/lib/apn/client.rb">
|
573
571
|
<provider selected="true" editor-type-id="text-editor">
|
574
572
|
<state line="52" column="40" selection-start="1141" selection-end="1141" vertical-scroll-proportion="-30.84">
|
@@ -604,16 +602,23 @@
|
|
604
602
|
</state>
|
605
603
|
</provider>
|
606
604
|
</entry>
|
605
|
+
<entry file="file://$PROJECT_DIR$/bin/apn">
|
606
|
+
<provider selected="true" editor-type-id="text-editor">
|
607
|
+
<state line="59" column="14" selection-start="1474" selection-end="1474" vertical-scroll-proportion="0.0">
|
608
|
+
<folding />
|
609
|
+
</state>
|
610
|
+
</provider>
|
611
|
+
</entry>
|
607
612
|
<entry file="file://$PROJECT_DIR$/README.md">
|
608
613
|
<provider selected="true" editor-type-id="text-editor">
|
609
|
-
<state line="
|
614
|
+
<state line="2" column="0" selection-start="7" selection-end="199" vertical-scroll-proportion="0.0">
|
610
615
|
<folding />
|
611
616
|
</state>
|
612
617
|
</provider>
|
613
618
|
</entry>
|
614
|
-
<entry file="file://$PROJECT_DIR$/
|
619
|
+
<entry file="file://$PROJECT_DIR$/apn.gemspec">
|
615
620
|
<provider selected="true" editor-type-id="text-editor">
|
616
|
-
<state line="
|
621
|
+
<state line="10" column="216" selection-start="538" selection-end="538" vertical-scroll-proportion="0.0">
|
617
622
|
<folding />
|
618
623
|
</state>
|
619
624
|
</provider>
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ APN works asynchronously, queueing messages from Redis, so you will need to have
|
|
9
9
|
[Installation guide for Redis server](http://redis.io/topics/quickstart)
|
10
10
|
|
11
11
|
You will also need certificate file from Apple to be able to communicate with their server.
|
12
|
-
There are many guides how to do that.
|
12
|
+
There are many guides how to do that. Put your certificate from Apple in your ```RAILS_ROOT/config/certs``` directory.
|
13
13
|
|
14
14
|
## Installation
|
15
15
|
|
@@ -33,11 +33,11 @@ Run daemon within your root Rails directory with this command:
|
|
33
33
|
Usage: apn start|stop|run [options]
|
34
34
|
--cert_file=MANDATORY Location of the cert pem file
|
35
35
|
--cert_password=OPTIONAL Password for the cert pem file
|
36
|
-
--redis_host=OPTIONAL
|
37
|
-
--redis_port=OPTIONAL
|
38
|
-
--queue=OPTIONAL
|
36
|
+
--redis_host=OPTIONAL Redis hostname
|
37
|
+
--redis_port=OPTIONAL Redis port
|
38
|
+
--queue=OPTIONAL Name of the Redis queue
|
39
39
|
--log_file=OPTIONAL Log file (default STDOUT)
|
40
|
-
--help
|
40
|
+
--help Show help
|
41
41
|
```
|
42
42
|
|
43
43
|
You can use ```apn stop``` instead of start in order to kill a running daemon with the options you provide.
|
data/apn.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = APN::VERSION
|
9
9
|
spec.authors = ["Peter Hrbacik"]
|
10
10
|
spec.email = ["info@itrinity.com"]
|
11
|
-
spec.description = 'APN is a lightweight Apple Push Notification daemon for Ruby on Rails. APN works asynchronously using Redis and
|
11
|
+
spec.description = 'APN is a lightweight Apple Push Notification daemon for Ruby on Rails. APN runs as a daemon, works asynchronously using Redis and keeps persistent connection to Apple Push Notification Server.'
|
12
12
|
spec.summary = 'Asynchronous Apple Push Notification daemon'
|
13
13
|
spec.homepage = "http://github.com/itrinity/apn"
|
14
14
|
spec.license = "MIT"
|
data/lib/apn/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -92,7 +92,8 @@ dependencies:
|
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: 1.1.6
|
94
94
|
description: APN is a lightweight Apple Push Notification daemon for Ruby on Rails.
|
95
|
-
APN works asynchronously using Redis and
|
95
|
+
APN runs as a daemon, works asynchronously using Redis and keeps persistent connection
|
96
|
+
to Apple Push Notification Server.
|
96
97
|
email:
|
97
98
|
- info@itrinity.com
|
98
99
|
executables:
|