apn 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.idea/workspace.xml +25 -38
- data/README.md +8 -0
- data/lib/apn.rb +0 -2
- data/lib/apn/version.rb +1 -1
- metadata +1 -2
- data/lib/apn/railtie.rb +0 -13
data/.idea/workspace.xml
CHANGED
|
@@ -2,34 +2,37 @@
|
|
|
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="
|
|
5
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/lib/apn/railtie.rb" afterPath="" />
|
|
6
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/apn.rb" afterPath="$PROJECT_DIR$/lib/apn.rb" />
|
|
6
7
|
<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" />
|
|
7
9
|
</list>
|
|
8
10
|
<ignored path="apn.iws" />
|
|
9
11
|
<ignored path=".idea/workspace.xml" />
|
|
10
12
|
<file path="/Dummy.txt" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386687705252" ignored="false" />
|
|
11
13
|
<file path="/apn.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386683866051" ignored="false" />
|
|
12
14
|
<file path="/client.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386675564025" ignored="false" />
|
|
13
|
-
<file path="/notification.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="
|
|
15
|
+
<file path="/notification.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386690885823" ignored="false" />
|
|
14
16
|
<file path="/daemon.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386682860851" ignored="false" />
|
|
15
17
|
<file path="/feedback.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386621821594" ignored="false" />
|
|
16
18
|
<file path="/log.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386621831672" ignored="false" />
|
|
17
19
|
<file path="/apn.gemspec" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386635907063" ignored="false" />
|
|
18
|
-
<file path="/README.md" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="
|
|
19
|
-
<file path="$PROJECT_DIR$/../liquidtalent/Gemfile" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="
|
|
20
|
-
<file path="/Gemfile" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="
|
|
20
|
+
<file path="/README.md" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386688855563" ignored="false" />
|
|
21
|
+
<file path="$PROJECT_DIR$/../liquidtalent/Gemfile" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386690903334" ignored="false" />
|
|
22
|
+
<file path="/Gemfile" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386691030461" ignored="false" />
|
|
21
23
|
<file path="/temp.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386627448610" ignored="false" />
|
|
22
24
|
<file path="$PROJECT_DIR$/../apn-test/app/controllers/users_controller.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386679010097" ignored="false" />
|
|
23
25
|
<file path="/users_controller.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386678998540" ignored="false" />
|
|
24
26
|
<file path="$PROJECT_DIR$/../apn-test/config/routes.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386631733572" ignored="false" />
|
|
25
27
|
<file path="/routes.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386631732656" ignored="false" />
|
|
26
|
-
<file path="$PROJECT_DIR$/../apn-test/Gemfile" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="
|
|
28
|
+
<file path="$PROJECT_DIR$/../apn-test/Gemfile" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386691032096" ignored="false" />
|
|
27
29
|
<file path="/apn" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386687226197" ignored="false" />
|
|
28
30
|
<file path="/version.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386687340179" ignored="false" />
|
|
29
31
|
<file path="/config.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386634524096" ignored="false" />
|
|
30
32
|
<file path="/notifier_daemon.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386674133273" ignored="false" />
|
|
31
33
|
<file path="$PROJECT_DIR$/../dnsniffer.com/script/notifier_daemon.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386674133273" ignored="false" />
|
|
32
34
|
<file path="/railtie.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386683847437" ignored="false" />
|
|
35
|
+
<file path="$PROJECT_DIR$/../liquidtalent/app/models/notification.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386690888743" ignored="false" />
|
|
33
36
|
<option name="TRACKING_ENABLED" value="true" />
|
|
34
37
|
<option name="SHOW_DIALOG" value="false" />
|
|
35
38
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -52,7 +55,7 @@
|
|
|
52
55
|
<file leaf-file-name="apn.rb" pinned="false" current="false" current-in-tab="false">
|
|
53
56
|
<entry file="file://$PROJECT_DIR$/lib/apn.rb">
|
|
54
57
|
<provider selected="true" editor-type-id="text-editor">
|
|
55
|
-
<state line="
|
|
58
|
+
<state line="49" column="62" selection-start="1131" selection-end="1131" vertical-scroll-proportion="0.0">
|
|
56
59
|
<folding />
|
|
57
60
|
</state>
|
|
58
61
|
</provider>
|
|
@@ -94,15 +97,6 @@
|
|
|
94
97
|
</provider>
|
|
95
98
|
</entry>
|
|
96
99
|
</file>
|
|
97
|
-
<file leaf-file-name="railtie.rb" pinned="false" current="false" current-in-tab="false">
|
|
98
|
-
<entry file="file://$PROJECT_DIR$/lib/apn/railtie.rb">
|
|
99
|
-
<provider selected="true" editor-type-id="text-editor">
|
|
100
|
-
<state line="12" column="4" selection-start="279" selection-end="279" vertical-scroll-proportion="0.0">
|
|
101
|
-
<folding />
|
|
102
|
-
</state>
|
|
103
|
-
</provider>
|
|
104
|
-
</entry>
|
|
105
|
-
</file>
|
|
106
100
|
<file leaf-file-name="apn.gemspec" pinned="false" current="false" current-in-tab="false">
|
|
107
101
|
<entry file="file://$PROJECT_DIR$/apn.gemspec">
|
|
108
102
|
<provider selected="true" editor-type-id="text-editor">
|
|
@@ -124,7 +118,7 @@
|
|
|
124
118
|
<file leaf-file-name="README.md" pinned="false" current="false" current-in-tab="false">
|
|
125
119
|
<entry file="file://$PROJECT_DIR$/README.md">
|
|
126
120
|
<provider selected="true" editor-type-id="text-editor">
|
|
127
|
-
<state line="
|
|
121
|
+
<state line="69" column="7" selection-start="1872" selection-end="1872" vertical-scroll-proportion="0.0">
|
|
128
122
|
<folding />
|
|
129
123
|
</state>
|
|
130
124
|
</provider>
|
|
@@ -166,10 +160,10 @@
|
|
|
166
160
|
<option value="$PROJECT_DIR$/lib/apn/client.rb" />
|
|
167
161
|
<option value="$PROJECT_DIR$/lib/apn/daemon.rb" />
|
|
168
162
|
<option value="$PROJECT_DIR$/lib/apn/railtie.rb" />
|
|
169
|
-
<option value="$PROJECT_DIR$/lib/apn.rb" />
|
|
170
163
|
<option value="$PROJECT_DIR$/bin/apn" />
|
|
171
|
-
<option value="$PROJECT_DIR$/README.md" />
|
|
172
164
|
<option value="$PROJECT_DIR$/apn.gemspec" />
|
|
165
|
+
<option value="$PROJECT_DIR$/README.md" />
|
|
166
|
+
<option value="$PROJECT_DIR$/lib/apn.rb" />
|
|
173
167
|
<option value="$PROJECT_DIR$/lib/apn/version.rb" />
|
|
174
168
|
</list>
|
|
175
169
|
</option>
|
|
@@ -438,11 +432,11 @@
|
|
|
438
432
|
<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" />
|
|
439
433
|
<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" />
|
|
440
434
|
<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" />
|
|
441
|
-
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.
|
|
435
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32756326" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
442
436
|
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
443
437
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
444
438
|
<window_info id="Remote Host" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
445
|
-
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25479144" sideWeight="0.
|
|
439
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25479144" sideWeight="0.6724368" order="0" side_tool="false" content_ui="combo" />
|
|
446
440
|
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
447
441
|
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
|
448
442
|
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
|
@@ -574,20 +568,6 @@
|
|
|
574
568
|
</state>
|
|
575
569
|
</provider>
|
|
576
570
|
</entry>
|
|
577
|
-
<entry file="file://$PROJECT_DIR$/lib/apn/railtie.rb">
|
|
578
|
-
<provider selected="true" editor-type-id="text-editor">
|
|
579
|
-
<state line="12" column="4" selection-start="279" selection-end="279" vertical-scroll-proportion="0.0">
|
|
580
|
-
<folding />
|
|
581
|
-
</state>
|
|
582
|
-
</provider>
|
|
583
|
-
</entry>
|
|
584
|
-
<entry file="file://$PROJECT_DIR$/lib/apn.rb">
|
|
585
|
-
<provider selected="true" editor-type-id="text-editor">
|
|
586
|
-
<state line="51" column="29" selection-start="1173" selection-end="1173" vertical-scroll-proportion="0.0">
|
|
587
|
-
<folding />
|
|
588
|
-
</state>
|
|
589
|
-
</provider>
|
|
590
|
-
</entry>
|
|
591
571
|
<entry file="file://$PROJECT_DIR$/lib/apn/config.rb">
|
|
592
572
|
<provider selected="true" editor-type-id="text-editor">
|
|
593
573
|
<state line="37" column="10" selection-start="679" selection-end="679" vertical-scroll-proportion="0.0">
|
|
@@ -609,16 +589,23 @@
|
|
|
609
589
|
</state>
|
|
610
590
|
</provider>
|
|
611
591
|
</entry>
|
|
592
|
+
<entry file="file://$PROJECT_DIR$/apn.gemspec">
|
|
593
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
594
|
+
<state line="10" column="216" selection-start="538" selection-end="538" vertical-scroll-proportion="0.0">
|
|
595
|
+
<folding />
|
|
596
|
+
</state>
|
|
597
|
+
</provider>
|
|
598
|
+
</entry>
|
|
612
599
|
<entry file="file://$PROJECT_DIR$/README.md">
|
|
613
600
|
<provider selected="true" editor-type-id="text-editor">
|
|
614
|
-
<state line="
|
|
601
|
+
<state line="69" column="7" selection-start="1872" selection-end="1872" vertical-scroll-proportion="0.0">
|
|
615
602
|
<folding />
|
|
616
603
|
</state>
|
|
617
604
|
</provider>
|
|
618
605
|
</entry>
|
|
619
|
-
<entry file="file://$PROJECT_DIR$/apn.
|
|
606
|
+
<entry file="file://$PROJECT_DIR$/lib/apn.rb">
|
|
620
607
|
<provider selected="true" editor-type-id="text-editor">
|
|
621
|
-
<state line="
|
|
608
|
+
<state line="49" column="62" selection-start="1131" selection-end="1131" vertical-scroll-proportion="0.0">
|
|
622
609
|
<folding />
|
|
623
610
|
</state>
|
|
624
611
|
</provider>
|
data/README.md
CHANGED
|
@@ -65,6 +65,14 @@ message = {:alert => 'This is a test from APN!', :badge => 16}
|
|
|
65
65
|
APN.queue(message)
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
+
If you want to run multiple instances, define ```queue``` for each one.
|
|
69
|
+
|
|
70
|
+
```ruby
|
|
71
|
+
message = {:alert => 'This is a test from APN!', :badge => 16}
|
|
72
|
+
queue = 'apn_queue_1'
|
|
73
|
+
APN.queue(message, queue)
|
|
74
|
+
```
|
|
75
|
+
|
|
68
76
|
## Contributing
|
|
69
77
|
|
|
70
78
|
1. Fork it
|
data/lib/apn.rb
CHANGED
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.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -124,7 +124,6 @@ files:
|
|
|
124
124
|
- lib/apn/feedback.rb
|
|
125
125
|
- lib/apn/log.rb
|
|
126
126
|
- lib/apn/notification.rb
|
|
127
|
-
- lib/apn/railtie.rb
|
|
128
127
|
- lib/apn/version.rb
|
|
129
128
|
homepage: http://github.com/itrinity/apn
|
|
130
129
|
licenses:
|
data/lib/apn/railtie.rb
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
module APN
|
|
2
|
-
class Railtie < Rails::Railtie
|
|
3
|
-
initializer "apn.setup" do |app|
|
|
4
|
-
|
|
5
|
-
APN.root = Rails.root
|
|
6
|
-
if Rails.env.development?
|
|
7
|
-
#APN.certificate_name = "apn_development.pem"
|
|
8
|
-
#APN.host = "gateway.sandbox.push.apple.com"
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
end
|
|
12
|
-
end
|
|
13
|
-
end
|