jirapong-apn_on_rails 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/.specification +80 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +47 -0
- data/LICENSE +21 -0
- data/README +179 -0
- data/README.textile +224 -0
- data/Rakefile +35 -0
- data/apn_on_rails.gemspec +32 -0
- data/autotest/discover.rb +1 -0
- data/generators/apn_migrations_generator.rb +33 -0
- data/generators/templates/apn_migrations/001_create_apn_devices.rb +13 -0
- data/generators/templates/apn_migrations/002_create_apn_notifications.rb +23 -0
- data/generators/templates/apn_migrations/003_alter_apn_devices.rb +23 -0
- data/generators/templates/apn_migrations/004_create_apn_apps.rb +25 -0
- data/generators/templates/apn_migrations/005_create_groups.rb +23 -0
- data/generators/templates/apn_migrations/006_alter_apn_groups.rb +11 -0
- data/generators/templates/apn_migrations/007_create_device_groups.rb +27 -0
- data/generators/templates/apn_migrations/008_create_apn_group_notifications.rb +23 -0
- data/generators/templates/apn_migrations/009_create_pull_notifications.rb +16 -0
- data/generators/templates/apn_migrations/010_alter_apn_notifications.rb +21 -0
- data/generators/templates/apn_migrations/011_make_device_token_index_nonunique.rb +11 -0
- data/generators/templates/apn_migrations/012_add_launch_notification_to_apn_pull_notifications.rb +9 -0
- data/lib/apn_on_rails.rb +4 -0
- data/lib/apn_on_rails/apn_on_rails.rb +81 -0
- data/lib/apn_on_rails/app/models/apn/app.rb +151 -0
- data/lib/apn_on_rails/app/models/apn/base.rb +11 -0
- data/lib/apn_on_rails/app/models/apn/device.rb +49 -0
- data/lib/apn_on_rails/app/models/apn/device_grouping.rb +16 -0
- data/lib/apn_on_rails/app/models/apn/group.rb +12 -0
- data/lib/apn_on_rails/app/models/apn/group_notification.rb +79 -0
- data/lib/apn_on_rails/app/models/apn/notification.rb +93 -0
- data/lib/apn_on_rails/app/models/apn/pull_notification.rb +28 -0
- data/lib/apn_on_rails/libs/connection.rb +70 -0
- data/lib/apn_on_rails/libs/feedback.rb +39 -0
- data/lib/apn_on_rails/rails/railtie.rb +15 -0
- data/lib/apn_on_rails/tasks/apn.rake +30 -0
- data/lib/apn_on_rails/tasks/db.rake +23 -0
- data/lib/apn_on_rails/version.rb +3 -0
- data/lib/apn_on_rails_tasks.rb +3 -0
- data/lib/generators/apn_on_rails/install/USAGE +8 -0
- data/lib/generators/apn_on_rails/install/install_generator.rb +38 -0
- data/lib/generators/apn_on_rails/install/templates/001_create_apn_devices.rb +13 -0
- data/lib/generators/apn_on_rails/install/templates/002_create_apn_notifications.rb +23 -0
- data/lib/generators/apn_on_rails/install/templates/003_alter_apn_devices.rb +25 -0
- data/lib/generators/apn_on_rails/install/templates/004_create_apn_apps.rb +18 -0
- data/lib/generators/apn_on_rails/install/templates/005_create_groups.rb +23 -0
- data/lib/generators/apn_on_rails/install/templates/006_alter_apn_groups.rb +11 -0
- data/lib/generators/apn_on_rails/install/templates/007_create_device_groups.rb +27 -0
- data/lib/generators/apn_on_rails/install/templates/008_create_apn_group_notifications.rb +23 -0
- data/lib/generators/apn_on_rails/install/templates/009_create_pull_notifications.rb +16 -0
- data/lib/generators/apn_on_rails/install/templates/010_alter_apn_notifications.rb +21 -0
- data/lib/generators/apn_on_rails/install/templates/011_make_device_token_index_nonunique.rb +11 -0
- data/lib/generators/apn_on_rails/install/templates/012_add_launch_notification_to_apn_pull_notifications.rb +9 -0
- data/spec/active_record/setup_ar.rb +20 -0
- data/spec/apn_on_rails/app/models/apn/app_spec.rb +230 -0
- data/spec/apn_on_rails/app/models/apn/device_spec.rb +61 -0
- data/spec/apn_on_rails/app/models/apn/group_notification_spec.rb +66 -0
- data/spec/apn_on_rails/app/models/apn/notification_spec.rb +71 -0
- data/spec/apn_on_rails/app/models/apn/pull_notification_spec.rb +100 -0
- data/spec/apn_on_rails/libs/connection_spec.rb +40 -0
- data/spec/apn_on_rails/libs/feedback_spec.rb +43 -0
- data/spec/extensions/string.rb +10 -0
- data/spec/factories/app_factory.rb +27 -0
- data/spec/factories/device_factory.rb +29 -0
- data/spec/factories/device_grouping_factory.rb +22 -0
- data/spec/factories/group_factory.rb +27 -0
- data/spec/factories/group_notification_factory.rb +22 -0
- data/spec/factories/notification_factory.rb +22 -0
- data/spec/factories/pull_notification_factory.rb +22 -0
- data/spec/fixtures/hexa.bin +1 -0
- data/spec/fixtures/message_for_sending.bin +0 -0
- data/spec/rails_root/config/apple_push_notification_development.pem +19 -0
- data/spec/spec_helper.rb +64 -0
- metadata +242 -0
metadata
ADDED
@@ -0,0 +1,242 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jirapong-apn_on_rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.4
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- markbates
|
9
|
+
- Rebecca Nesson
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2012-06-15 00:00:00.000000000 +07:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: configatron
|
18
|
+
requirement: &70300039204580 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ! '>='
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '0'
|
24
|
+
type: :runtime
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: *70300039204580
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activerecord
|
29
|
+
requirement: &70300039204160 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ! '>='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: *70300039204160
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: actionpack
|
40
|
+
requirement: &70300039203740 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
type: :runtime
|
47
|
+
prerelease: false
|
48
|
+
version_requirements: *70300039203740
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: rake
|
51
|
+
requirement: &70300039203320 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ! '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
type: :development
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: *70300039203320
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: autotest
|
62
|
+
requirement: &70300039202900 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ! '>='
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: *70300039202900
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: sqlite3
|
73
|
+
requirement: &70300039202480 !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
type: :development
|
80
|
+
prerelease: false
|
81
|
+
version_requirements: *70300039202480
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: rspec
|
84
|
+
requirement: &70300039202060 !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: *70300039202060
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: bundler
|
95
|
+
requirement: &70300039201640 !ruby/object:Gem::Requirement
|
96
|
+
none: false
|
97
|
+
requirements:
|
98
|
+
- - ! '>='
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '0'
|
101
|
+
type: :development
|
102
|
+
prerelease: false
|
103
|
+
version_requirements: *70300039201640
|
104
|
+
- !ruby/object:Gem::Dependency
|
105
|
+
name: rcov
|
106
|
+
requirement: &70300039201220 !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
108
|
+
requirements:
|
109
|
+
- - ! '>='
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
112
|
+
type: :development
|
113
|
+
prerelease: false
|
114
|
+
version_requirements: *70300039201220
|
115
|
+
description: ! "APN on Rails is a Ruby on Rails gem that allows you to\n easily add
|
116
|
+
Apple Push Notification (iPhone) support to your Rails application.\n "
|
117
|
+
email: tech-team@prx.org
|
118
|
+
executables: []
|
119
|
+
extensions: []
|
120
|
+
extra_rdoc_files: []
|
121
|
+
files:
|
122
|
+
- .gitignore
|
123
|
+
- .rspec
|
124
|
+
- .specification
|
125
|
+
- Gemfile
|
126
|
+
- Gemfile.lock
|
127
|
+
- LICENSE
|
128
|
+
- README
|
129
|
+
- README.textile
|
130
|
+
- Rakefile
|
131
|
+
- apn_on_rails.gemspec
|
132
|
+
- autotest/discover.rb
|
133
|
+
- generators/apn_migrations_generator.rb
|
134
|
+
- generators/templates/apn_migrations/001_create_apn_devices.rb
|
135
|
+
- generators/templates/apn_migrations/002_create_apn_notifications.rb
|
136
|
+
- generators/templates/apn_migrations/003_alter_apn_devices.rb
|
137
|
+
- generators/templates/apn_migrations/004_create_apn_apps.rb
|
138
|
+
- generators/templates/apn_migrations/005_create_groups.rb
|
139
|
+
- generators/templates/apn_migrations/006_alter_apn_groups.rb
|
140
|
+
- generators/templates/apn_migrations/007_create_device_groups.rb
|
141
|
+
- generators/templates/apn_migrations/008_create_apn_group_notifications.rb
|
142
|
+
- generators/templates/apn_migrations/009_create_pull_notifications.rb
|
143
|
+
- generators/templates/apn_migrations/010_alter_apn_notifications.rb
|
144
|
+
- generators/templates/apn_migrations/011_make_device_token_index_nonunique.rb
|
145
|
+
- generators/templates/apn_migrations/012_add_launch_notification_to_apn_pull_notifications.rb
|
146
|
+
- lib/apn_on_rails.rb
|
147
|
+
- lib/apn_on_rails/apn_on_rails.rb
|
148
|
+
- lib/apn_on_rails/app/models/apn/app.rb
|
149
|
+
- lib/apn_on_rails/app/models/apn/base.rb
|
150
|
+
- lib/apn_on_rails/app/models/apn/device.rb
|
151
|
+
- lib/apn_on_rails/app/models/apn/device_grouping.rb
|
152
|
+
- lib/apn_on_rails/app/models/apn/group.rb
|
153
|
+
- lib/apn_on_rails/app/models/apn/group_notification.rb
|
154
|
+
- lib/apn_on_rails/app/models/apn/notification.rb
|
155
|
+
- lib/apn_on_rails/app/models/apn/pull_notification.rb
|
156
|
+
- lib/apn_on_rails/libs/connection.rb
|
157
|
+
- lib/apn_on_rails/libs/feedback.rb
|
158
|
+
- lib/apn_on_rails/rails/railtie.rb
|
159
|
+
- lib/apn_on_rails/tasks/apn.rake
|
160
|
+
- lib/apn_on_rails/tasks/db.rake
|
161
|
+
- lib/apn_on_rails/version.rb
|
162
|
+
- lib/apn_on_rails_tasks.rb
|
163
|
+
- lib/generators/apn_on_rails/install/USAGE
|
164
|
+
- lib/generators/apn_on_rails/install/install_generator.rb
|
165
|
+
- lib/generators/apn_on_rails/install/templates/001_create_apn_devices.rb
|
166
|
+
- lib/generators/apn_on_rails/install/templates/002_create_apn_notifications.rb
|
167
|
+
- lib/generators/apn_on_rails/install/templates/003_alter_apn_devices.rb
|
168
|
+
- lib/generators/apn_on_rails/install/templates/004_create_apn_apps.rb
|
169
|
+
- lib/generators/apn_on_rails/install/templates/005_create_groups.rb
|
170
|
+
- lib/generators/apn_on_rails/install/templates/006_alter_apn_groups.rb
|
171
|
+
- lib/generators/apn_on_rails/install/templates/007_create_device_groups.rb
|
172
|
+
- lib/generators/apn_on_rails/install/templates/008_create_apn_group_notifications.rb
|
173
|
+
- lib/generators/apn_on_rails/install/templates/009_create_pull_notifications.rb
|
174
|
+
- lib/generators/apn_on_rails/install/templates/010_alter_apn_notifications.rb
|
175
|
+
- lib/generators/apn_on_rails/install/templates/011_make_device_token_index_nonunique.rb
|
176
|
+
- lib/generators/apn_on_rails/install/templates/012_add_launch_notification_to_apn_pull_notifications.rb
|
177
|
+
- spec/active_record/setup_ar.rb
|
178
|
+
- spec/apn_on_rails/app/models/apn/app_spec.rb
|
179
|
+
- spec/apn_on_rails/app/models/apn/device_spec.rb
|
180
|
+
- spec/apn_on_rails/app/models/apn/group_notification_spec.rb
|
181
|
+
- spec/apn_on_rails/app/models/apn/notification_spec.rb
|
182
|
+
- spec/apn_on_rails/app/models/apn/pull_notification_spec.rb
|
183
|
+
- spec/apn_on_rails/libs/connection_spec.rb
|
184
|
+
- spec/apn_on_rails/libs/feedback_spec.rb
|
185
|
+
- spec/extensions/string.rb
|
186
|
+
- spec/factories/app_factory.rb
|
187
|
+
- spec/factories/device_factory.rb
|
188
|
+
- spec/factories/device_grouping_factory.rb
|
189
|
+
- spec/factories/group_factory.rb
|
190
|
+
- spec/factories/group_notification_factory.rb
|
191
|
+
- spec/factories/notification_factory.rb
|
192
|
+
- spec/factories/pull_notification_factory.rb
|
193
|
+
- spec/fixtures/hexa.bin
|
194
|
+
- spec/fixtures/message_for_sending.bin
|
195
|
+
- spec/rails_root/config/apple_push_notification_development.pem
|
196
|
+
- spec/spec_helper.rb
|
197
|
+
has_rdoc: true
|
198
|
+
homepage: http://github.com/PRX/apn_on_rails
|
199
|
+
licenses: []
|
200
|
+
post_install_message:
|
201
|
+
rdoc_options: []
|
202
|
+
require_paths:
|
203
|
+
- lib
|
204
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
205
|
+
none: false
|
206
|
+
requirements:
|
207
|
+
- - ! '>='
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
version: '0'
|
210
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
211
|
+
none: false
|
212
|
+
requirements:
|
213
|
+
- - ! '>='
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
requirements: []
|
217
|
+
rubyforge_project:
|
218
|
+
rubygems_version: 1.5.3
|
219
|
+
signing_key:
|
220
|
+
specification_version: 3
|
221
|
+
summary: Apple Push Notifications on Rails
|
222
|
+
test_files:
|
223
|
+
- spec/active_record/setup_ar.rb
|
224
|
+
- spec/apn_on_rails/app/models/apn/app_spec.rb
|
225
|
+
- spec/apn_on_rails/app/models/apn/device_spec.rb
|
226
|
+
- spec/apn_on_rails/app/models/apn/group_notification_spec.rb
|
227
|
+
- spec/apn_on_rails/app/models/apn/notification_spec.rb
|
228
|
+
- spec/apn_on_rails/app/models/apn/pull_notification_spec.rb
|
229
|
+
- spec/apn_on_rails/libs/connection_spec.rb
|
230
|
+
- spec/apn_on_rails/libs/feedback_spec.rb
|
231
|
+
- spec/extensions/string.rb
|
232
|
+
- spec/factories/app_factory.rb
|
233
|
+
- spec/factories/device_factory.rb
|
234
|
+
- spec/factories/device_grouping_factory.rb
|
235
|
+
- spec/factories/group_factory.rb
|
236
|
+
- spec/factories/group_notification_factory.rb
|
237
|
+
- spec/factories/notification_factory.rb
|
238
|
+
- spec/factories/pull_notification_factory.rb
|
239
|
+
- spec/fixtures/hexa.bin
|
240
|
+
- spec/fixtures/message_for_sending.bin
|
241
|
+
- spec/rails_root/config/apple_push_notification_development.pem
|
242
|
+
- spec/spec_helper.rb
|