apn 1.0.2 → 1.1.0

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.
@@ -1,38 +1,34 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
- <list default="true" id="0044e0ee-7253-4582-93d4-a45b83a4d6b2" name="Default" comment="">
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" />
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" />
9
- </list>
4
+ <list default="true" id="0044e0ee-7253-4582-93d4-a45b83a4d6b2" name="Default" comment="" />
10
5
  <ignored path="apn.iws" />
11
6
  <ignored path=".idea/workspace.xml" />
12
- <file path="/Dummy.txt" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386687705252" ignored="false" />
13
- <file path="/apn.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386683866051" ignored="false" />
7
+ <file path="/Dummy.txt" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386787737356" ignored="false" />
8
+ <file path="/apn.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386788895142" ignored="false" />
14
9
  <file path="/client.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386675564025" ignored="false" />
15
- <file path="/notification.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386690885823" ignored="false" />
16
- <file path="/daemon.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386682860851" ignored="false" />
10
+ <file path="/notification.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386788577686" ignored="false" />
11
+ <file path="/daemon.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386788777839" ignored="false" />
17
12
  <file path="/feedback.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386621821594" ignored="false" />
18
13
  <file path="/log.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386621831672" ignored="false" />
19
14
  <file path="/apn.gemspec" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386635907063" ignored="false" />
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" />
15
+ <file path="/README.md" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386788296875" ignored="false" />
16
+ <file path="$PROJECT_DIR$/../liquidtalent/Gemfile" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386691790743" ignored="false" />
17
+ <file path="/Gemfile" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386691521727" ignored="false" />
23
18
  <file path="/temp.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386627448610" ignored="false" />
24
- <file path="$PROJECT_DIR$/../apn-test/app/controllers/users_controller.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386679010097" ignored="false" />
25
- <file path="/users_controller.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386678998540" ignored="false" />
19
+ <file path="$PROJECT_DIR$/../apn-test/app/controllers/users_controller.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386789849718" ignored="false" />
20
+ <file path="/users_controller.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386789845692" ignored="false" />
26
21
  <file path="$PROJECT_DIR$/../apn-test/config/routes.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386631733572" ignored="false" />
27
22
  <file path="/routes.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386631732656" ignored="false" />
28
- <file path="$PROJECT_DIR$/../apn-test/Gemfile" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386691032096" ignored="false" />
23
+ <file path="$PROJECT_DIR$/../apn-test/Gemfile" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386789124007" ignored="false" />
29
24
  <file path="/apn" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386687226197" ignored="false" />
30
25
  <file path="/version.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386687340179" ignored="false" />
31
- <file path="/config.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386634524096" ignored="false" />
26
+ <file path="/config.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386788754907" ignored="false" />
32
27
  <file path="/notifier_daemon.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386674133273" ignored="false" />
33
28
  <file path="$PROJECT_DIR$/../dnsniffer.com/script/notifier_daemon.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386674133273" ignored="false" />
34
29
  <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" />
30
+ <file path="$PROJECT_DIR$/../liquidtalent/app/models/notification.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386788590674" ignored="false" />
31
+ <file path="$PROJECT_DIR$/../liquidtalent/app/controllers/users_controller.rb" changelist="0044e0ee-7253-4582-93d4-a45b83a4d6b2" time="1386788714705" ignored="false" />
36
32
  <option name="TRACKING_ENABLED" value="true" />
37
33
  <option name="SHOW_DIALOG" value="false" />
38
34
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -55,7 +51,7 @@
55
51
  <file leaf-file-name="apn.rb" pinned="false" current="false" current-in-tab="false">
56
52
  <entry file="file://$PROJECT_DIR$/lib/apn.rb">
57
53
  <provider selected="true" editor-type-id="text-editor">
58
- <state line="49" column="62" selection-start="1131" selection-end="1131" vertical-scroll-proportion="0.0">
54
+ <state line="2" column="19" selection-start="61" selection-end="67" vertical-scroll-proportion="0.0">
59
55
  <folding />
60
56
  </state>
61
57
  </provider>
@@ -64,7 +60,16 @@
64
60
  <file leaf-file-name="daemon.rb" pinned="false" current="false" current-in-tab="false">
65
61
  <entry file="file://$PROJECT_DIR$/lib/apn/daemon.rb">
66
62
  <provider selected="true" editor-type-id="text-editor">
67
- <state line="14" column="32" selection-start="353" selection-end="353" vertical-scroll-proportion="-8.4">
63
+ <state line="33" column="16" selection-start="1071" selection-end="1077" vertical-scroll-proportion="0.0">
64
+ <folding />
65
+ </state>
66
+ </provider>
67
+ </entry>
68
+ </file>
69
+ <file leaf-file-name="notification.rb" pinned="false" current="false" current-in-tab="false">
70
+ <entry file="file://$PROJECT_DIR$/lib/apn/notification.rb">
71
+ <provider selected="true" editor-type-id="text-editor">
72
+ <state line="0" column="11" selection-start="10" selection-end="10" vertical-scroll-proportion="0.0">
68
73
  <folding />
69
74
  </state>
70
75
  </provider>
@@ -73,7 +78,7 @@
73
78
  <file leaf-file-name="client.rb" pinned="false" current="false" current-in-tab="false">
74
79
  <entry file="file://$PROJECT_DIR$/lib/apn/client.rb">
75
80
  <provider selected="true" editor-type-id="text-editor">
76
- <state line="52" column="40" selection-start="1141" selection-end="1141" vertical-scroll-proportion="-30.84">
81
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
77
82
  <folding />
78
83
  </state>
79
84
  </provider>
@@ -91,7 +96,7 @@
91
96
  <file leaf-file-name="apn" pinned="false" current="false" current-in-tab="false">
92
97
  <entry file="file://$PROJECT_DIR$/bin/apn">
93
98
  <provider selected="true" editor-type-id="text-editor">
94
- <state line="59" column="14" selection-start="1474" selection-end="1474" vertical-scroll-proportion="0.0">
99
+ <state line="9" column="2" selection-start="173" selection-end="175" vertical-scroll-proportion="-5.4">
95
100
  <folding />
96
101
  </state>
97
102
  </provider>
@@ -109,7 +114,7 @@
109
114
  <file leaf-file-name="config.rb" pinned="false" current="false" current-in-tab="false">
110
115
  <entry file="file://$PROJECT_DIR$/lib/apn/config.rb">
111
116
  <provider selected="true" editor-type-id="text-editor">
112
- <state line="37" column="10" selection-start="679" selection-end="679" vertical-scroll-proportion="0.0">
117
+ <state line="33" column="16" selection-start="618" selection-end="618" vertical-scroll-proportion="0.0">
113
118
  <folding />
114
119
  </state>
115
120
  </provider>
@@ -118,7 +123,7 @@
118
123
  <file leaf-file-name="README.md" pinned="false" current="false" current-in-tab="false">
119
124
  <entry file="file://$PROJECT_DIR$/README.md">
120
125
  <provider selected="true" editor-type-id="text-editor">
121
- <state line="69" column="7" selection-start="1872" selection-end="1872" vertical-scroll-proportion="0.0">
126
+ <state line="75" column="157" selection-start="2167" selection-end="2167" vertical-scroll-proportion="0.0">
122
127
  <folding />
123
128
  </state>
124
129
  </provider>
@@ -153,16 +158,16 @@
153
158
  <list>
154
159
  <option value="$PROJECT_DIR$/bin/apn.rb" />
155
160
  <option value="$PROJECT_DIR$/lib/apn/notification.rb" />
156
- <option value="$PROJECT_DIR$/lib/apn/feedback.rb" />
157
161
  <option value="$PROJECT_DIR$/lib/apn/log.rb" />
158
- <option value="$PROJECT_DIR$/lib/apn/config.rb" />
159
162
  <option value="$PROJECT_DIR$/Gemfile" />
160
163
  <option value="$PROJECT_DIR$/lib/apn/client.rb" />
161
- <option value="$PROJECT_DIR$/lib/apn/daemon.rb" />
162
164
  <option value="$PROJECT_DIR$/lib/apn/railtie.rb" />
163
165
  <option value="$PROJECT_DIR$/bin/apn" />
164
166
  <option value="$PROJECT_DIR$/apn.gemspec" />
167
+ <option value="$PROJECT_DIR$/lib/apn/feedback.rb" />
165
168
  <option value="$PROJECT_DIR$/README.md" />
169
+ <option value="$PROJECT_DIR$/lib/apn/config.rb" />
170
+ <option value="$PROJECT_DIR$/lib/apn/daemon.rb" />
166
171
  <option value="$PROJECT_DIR$/lib/apn.rb" />
167
172
  <option value="$PROJECT_DIR$/lib/apn/version.rb" />
168
173
  </list>
@@ -429,22 +434,22 @@
429
434
  <frame x="50" y="24" width="935" height="876" extended-state="0" />
430
435
  <editor active="true" />
431
436
  <layout>
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" />
433
437
  <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" />
434
438
  <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" />
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" />
436
439
  <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" />
437
440
  <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" />
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" />
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" />
441
+ <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="4" side_tool="false" content_ui="tabs" />
442
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.259301" sideWeight="0.6724368" order="0" side_tool="false" content_ui="combo" />
440
443
  <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" />
441
444
  <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" />
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" />
445
+ <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="10" side_tool="true" content_ui="tabs" />
443
446
  <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
444
- <window_info id="Version Control" 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" />
447
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
445
448
  <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
446
449
  <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
447
450
  <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
451
+ <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" />
452
+ <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="9" side_tool="false" content_ui="tabs" />
448
453
  <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
449
454
  <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
450
455
  <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
@@ -519,93 +524,77 @@
519
524
  </state>
520
525
  </provider>
521
526
  </entry>
522
- <entry file="file://$PROJECT_DIR$/lib/apn/log.rb">
523
- <provider selected="true" editor-type-id="text-editor">
524
- <state line="16" column="20" selection-start="247" selection-end="247" vertical-scroll-proportion="0.0">
525
- <folding />
526
- </state>
527
- </provider>
528
- </entry>
529
527
  <entry file="file://$PROJECT_DIR$/Rakefile">
530
528
  <provider selected="true" editor-type-id="text-editor">
531
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
532
- <folding />
533
- </state>
529
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
534
530
  </provider>
535
531
  </entry>
536
- <entry file="file://$PROJECT_DIR$/lib/apn/feedback.rb">
532
+ <entry file="file://$PROJECT_DIR$/Gemfile">
537
533
  <provider selected="true" editor-type-id="text-editor">
538
- <state line="42" column="101" selection-start="938" selection-end="938" vertical-scroll-proportion="0.0">
534
+ <state line="4" column="20" selection-start="88" selection-end="88" vertical-scroll-proportion="0.0">
539
535
  <folding />
540
536
  </state>
541
537
  </provider>
542
538
  </entry>
543
- <entry file="file://$PROJECT_DIR$/lib/apn/notification.rb">
539
+ <entry file="file://$PROJECT_DIR$/apn.gemspec">
544
540
  <provider selected="true" editor-type-id="text-editor">
545
- <state line="27" column="23" selection-start="907" selection-end="907" vertical-scroll-proportion="0.0">
541
+ <state line="10" column="216" selection-start="538" selection-end="538" vertical-scroll-proportion="0.0">
546
542
  <folding />
547
543
  </state>
548
544
  </provider>
549
545
  </entry>
550
- <entry file="file://$PROJECT_DIR$/Gemfile">
546
+ <entry file="file://$PROJECT_DIR$/README.md">
551
547
  <provider selected="true" editor-type-id="text-editor">
552
- <state line="4" column="20" selection-start="88" selection-end="88" vertical-scroll-proportion="0.0">
548
+ <state line="75" column="157" selection-start="2167" selection-end="2167" vertical-scroll-proportion="0.0">
553
549
  <folding />
554
550
  </state>
555
551
  </provider>
556
552
  </entry>
557
- <entry file="file://$PROJECT_DIR$/lib/apn/log.rb">
553
+ <entry file="file://$PROJECT_DIR$/lib/apn/config.rb">
558
554
  <provider selected="true" editor-type-id="text-editor">
559
- <state line="15" column="0" selection-start="211" selection-end="270" vertical-scroll-proportion="0.0">
555
+ <state line="33" column="16" selection-start="618" selection-end="618" vertical-scroll-proportion="0.0">
560
556
  <folding />
561
557
  </state>
562
558
  </provider>
563
559
  </entry>
564
- <entry file="file://$PROJECT_DIR$/lib/apn/client.rb">
560
+ <entry file="file://$PROJECT_DIR$/bin/apn">
565
561
  <provider selected="true" editor-type-id="text-editor">
566
- <state line="52" column="40" selection-start="1141" selection-end="1141" vertical-scroll-proportion="-30.84">
562
+ <state line="9" column="2" selection-start="173" selection-end="175" vertical-scroll-proportion="-5.4">
567
563
  <folding />
568
564
  </state>
569
565
  </provider>
570
566
  </entry>
571
- <entry file="file://$PROJECT_DIR$/lib/apn/config.rb">
567
+ <entry file="file://$PROJECT_DIR$/lib/apn/client.rb">
572
568
  <provider selected="true" editor-type-id="text-editor">
573
- <state line="37" column="10" selection-start="679" selection-end="679" vertical-scroll-proportion="0.0">
569
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
574
570
  <folding />
575
571
  </state>
576
572
  </provider>
577
573
  </entry>
578
574
  <entry file="file://$PROJECT_DIR$/lib/apn/daemon.rb">
579
575
  <provider selected="true" editor-type-id="text-editor">
580
- <state line="14" column="32" selection-start="353" selection-end="353" vertical-scroll-proportion="-8.4">
581
- <folding />
582
- </state>
583
- </provider>
584
- </entry>
585
- <entry file="file://$PROJECT_DIR$/bin/apn">
586
- <provider selected="true" editor-type-id="text-editor">
587
- <state line="59" column="14" selection-start="1474" selection-end="1474" vertical-scroll-proportion="0.0">
576
+ <state line="33" column="16" selection-start="1071" selection-end="1077" vertical-scroll-proportion="0.0">
588
577
  <folding />
589
578
  </state>
590
579
  </provider>
591
580
  </entry>
592
- <entry file="file://$PROJECT_DIR$/apn.gemspec">
581
+ <entry file="file://$PROJECT_DIR$/lib/apn/feedback.rb">
593
582
  <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">
583
+ <state line="40" column="108" selection-start="909" selection-end="915" vertical-scroll-proportion="0.7972973">
595
584
  <folding />
596
585
  </state>
597
586
  </provider>
598
587
  </entry>
599
- <entry file="file://$PROJECT_DIR$/README.md">
588
+ <entry file="file://$PROJECT_DIR$/lib/apn/notification.rb">
600
589
  <provider selected="true" editor-type-id="text-editor">
601
- <state line="69" column="7" selection-start="1872" selection-end="1872" vertical-scroll-proportion="0.0">
590
+ <state line="0" column="11" selection-start="10" selection-end="10" vertical-scroll-proportion="0.0">
602
591
  <folding />
603
592
  </state>
604
593
  </provider>
605
594
  </entry>
606
595
  <entry file="file://$PROJECT_DIR$/lib/apn.rb">
607
596
  <provider selected="true" editor-type-id="text-editor">
608
- <state line="49" column="62" selection-start="1131" selection-end="1131" vertical-scroll-proportion="0.0">
597
+ <state line="2" column="19" selection-start="61" selection-end="67" vertical-scroll-proportion="0.0">
609
598
  <folding />
610
599
  </state>
611
600
  </provider>
data/README.md CHANGED
@@ -72,6 +72,9 @@ message = {:alert => 'This is a test from APN!', :badge => 16}
72
72
  queue = 'apn_queue_1'
73
73
  APN.queue(message, queue)
74
74
  ```
75
+ ## Feedback service
76
+ You should periodically call the following feedback service to find out, to which devices you should stop sending notification (eg. they uninstall your app).
77
+
75
78
 
76
79
  ## Contributing
77
80
 
data/lib/apn.rb CHANGED
@@ -3,7 +3,6 @@ require 'apn/notification'
3
3
  require 'apn/config'
4
4
  require 'apn/feedback'
5
5
  require 'apn/client'
6
- #require 'apn/log'
7
6
  require 'apn/version'
8
7
  require 'redis'
9
8
 
@@ -38,7 +37,7 @@ module APN
38
37
  end
39
38
 
40
39
  def logfile
41
- APN.config.logfile ? APN.config.logfile : STDOUT
40
+ APN.config.log_file ? APN.config.log_file : STDOUT
42
41
  end
43
42
 
44
43
  def configure
@@ -31,7 +31,7 @@ module APN
31
31
  option :redis_host, :default => 'localhost'
32
32
  option :redis_port, :default => 6379
33
33
  option :redis_password
34
- option :logfile
34
+ option :log_file
35
35
  option :cert_file
36
36
  option :cert_password
37
37
  end
@@ -6,7 +6,6 @@ require 'base64'
6
6
  require 'apn/client'
7
7
  require 'apn/notification'
8
8
  require 'apn/config'
9
- #require 'apn/log'
10
9
 
11
10
  module APN
12
11
  class Daemon
@@ -33,7 +32,7 @@ module APN
33
32
  @dir = options[:dir]
34
33
 
35
34
  APN.configure do |config|
36
- config.logfile = options[:logfile]
35
+ config.log_file = options[:logfile]
37
36
  end
38
37
 
39
38
  APN.log(:info, "Listening on queue: #{self.queue}")
@@ -18,12 +18,10 @@ module APN
18
18
  @password = options[:password]
19
19
  @host = options[:host]
20
20
  @port = options[:port]
21
-
22
- @logger = APN::Log.new.write
23
21
  end
24
22
 
25
23
  def data
26
- @logger.info 'Trying to get feedback from Apple push notification server...'
24
+ APN.log(:info, 'Trying to get feedback from Apple push notification server...')
27
25
 
28
26
  @feedback ||= receive
29
27
  end
@@ -34,7 +32,7 @@ module APN
34
32
  feedbacks << f
35
33
  end
36
34
 
37
- @logger.info 'Feedback received!'
35
+ APN.log(:info, 'Feedback received!')
38
36
 
39
37
  return feedbacks
40
38
  end
@@ -1,3 +1,3 @@
1
1
  module APN
2
- VERSION = "1.0.2"
2
+ VERSION = "1.1.0"
3
3
  end
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.2
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-10 00:00:00.000000000 Z
12
+ date: 2013-12-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -122,7 +122,6 @@ files:
122
122
  - lib/apn/config.rb
123
123
  - lib/apn/daemon.rb
124
124
  - lib/apn/feedback.rb
125
- - lib/apn/log.rb
126
125
  - lib/apn/notification.rb
127
126
  - lib/apn/version.rb
128
127
  homepage: http://github.com/itrinity/apn
@@ -1,20 +0,0 @@
1
- require 'logger'
2
-
3
- module APN
4
- class Log
5
- def initialize(options = {})
6
- end
7
-
8
- def write
9
- @logger ||= set_logger
10
- end
11
-
12
- def set_logger
13
- @logger = Logger.new(@logfile) if logfile
14
- end
15
-
16
- def logfile
17
- @logfile = APN.config.logfile
18
- end
19
- end
20
- end