fcm-ruby-push-notifications 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +37 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +19 -0
  5. data/CHANGELOG.md +32 -0
  6. data/Gemfile +6 -0
  7. data/LICENSE +22 -0
  8. data/README.md +82 -0
  9. data/Rakefile +12 -0
  10. data/examples/apns.rb +27 -0
  11. data/examples/gcm.rb +25 -0
  12. data/examples/mpns.rb +22 -0
  13. data/examples/wns.rb +25 -0
  14. data/gemfiles/Gemfile-legacy +8 -0
  15. data/lib/ruby-push-notifications.rb +7 -0
  16. data/lib/ruby-push-notifications/apns.rb +44 -0
  17. data/lib/ruby-push-notifications/apns/apns_connection.rb +70 -0
  18. data/lib/ruby-push-notifications/apns/apns_notification.rb +91 -0
  19. data/lib/ruby-push-notifications/apns/apns_pusher.rb +84 -0
  20. data/lib/ruby-push-notifications/apns/apns_results.rb +30 -0
  21. data/lib/ruby-push-notifications/fcm.rb +8 -0
  22. data/lib/ruby-push-notifications/fcm/fcm_connection.rb +60 -0
  23. data/lib/ruby-push-notifications/fcm/fcm_error.rb +17 -0
  24. data/lib/ruby-push-notifications/fcm/fcm_notification.rb +31 -0
  25. data/lib/ruby-push-notifications/fcm/fcm_pusher.rb +29 -0
  26. data/lib/ruby-push-notifications/fcm/fcm_request.rb +28 -0
  27. data/lib/ruby-push-notifications/fcm/fcm_response.rb +89 -0
  28. data/lib/ruby-push-notifications/fcm/fcm_result.rb +52 -0
  29. data/lib/ruby-push-notifications/gcm.rb +6 -0
  30. data/lib/ruby-push-notifications/gcm/gcm_connection.rb +54 -0
  31. data/lib/ruby-push-notifications/gcm/gcm_error.rb +17 -0
  32. data/lib/ruby-push-notifications/gcm/gcm_notification.rb +31 -0
  33. data/lib/ruby-push-notifications/gcm/gcm_pusher.rb +35 -0
  34. data/lib/ruby-push-notifications/gcm/gcm_response.rb +89 -0
  35. data/lib/ruby-push-notifications/gcm/gcm_result.rb +52 -0
  36. data/lib/ruby-push-notifications/mpns.rb +5 -0
  37. data/lib/ruby-push-notifications/mpns/mpns_connection.rb +87 -0
  38. data/lib/ruby-push-notifications/mpns/mpns_notification.rb +94 -0
  39. data/lib/ruby-push-notifications/mpns/mpns_pusher.rb +33 -0
  40. data/lib/ruby-push-notifications/mpns/mpns_response.rb +82 -0
  41. data/lib/ruby-push-notifications/mpns/mpns_result.rb +182 -0
  42. data/lib/ruby-push-notifications/notification_results_manager.rb +14 -0
  43. data/lib/ruby-push-notifications/wns.rb +6 -0
  44. data/lib/ruby-push-notifications/wns/wns_access.rb +82 -0
  45. data/lib/ruby-push-notifications/wns/wns_connection.rb +97 -0
  46. data/lib/ruby-push-notifications/wns/wns_notification.rb +101 -0
  47. data/lib/ruby-push-notifications/wns/wns_pusher.rb +32 -0
  48. data/lib/ruby-push-notifications/wns/wns_response.rb +83 -0
  49. data/lib/ruby-push-notifications/wns/wns_result.rb +208 -0
  50. data/ruby-push-notifications.gemspec +28 -0
  51. data/spec/factories.rb +17 -0
  52. data/spec/factories/notifications.rb +30 -0
  53. data/spec/ruby-push-notifications/apns/apns_connection_spec.rb +92 -0
  54. data/spec/ruby-push-notifications/apns/apns_notification_spec.rb +42 -0
  55. data/spec/ruby-push-notifications/apns/apns_pusher_spec.rb +295 -0
  56. data/spec/ruby-push-notifications/gcm/gcm_connection_spec.rb +46 -0
  57. data/spec/ruby-push-notifications/gcm/gcm_notification_spec.rb +37 -0
  58. data/spec/ruby-push-notifications/gcm/gcm_pusher_spec.rb +45 -0
  59. data/spec/ruby-push-notifications/gcm/gcm_response_spec.rb +82 -0
  60. data/spec/ruby-push-notifications/mpns/mpns_connection_spec.rb +46 -0
  61. data/spec/ruby-push-notifications/mpns/mpns_notification_spec.rb +53 -0
  62. data/spec/ruby-push-notifications/mpns/mpns_pusher_spec.rb +59 -0
  63. data/spec/ruby-push-notifications/mpns/mpns_response_spec.rb +64 -0
  64. data/spec/ruby-push-notifications/wns/wns_access_spec.rb +76 -0
  65. data/spec/ruby-push-notifications/wns/wns_connection_spec.rb +53 -0
  66. data/spec/ruby-push-notifications/wns/wns_notification_spec.rb +177 -0
  67. data/spec/ruby-push-notifications/wns/wns_pusher_spec.rb +58 -0
  68. data/spec/ruby-push-notifications/wns/wns_response_spec.rb +65 -0
  69. data/spec/spec_helper.rb +23 -0
  70. data/spec/support/dummy.pem +44 -0
  71. data/spec/support/factory_girl.rb +5 -0
  72. data/spec/support/results_shared_examples.rb +31 -0
  73. metadata +249 -0
metadata ADDED
@@ -0,0 +1,249 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fcm-ruby-push-notifications
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Santhu MS
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-07-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: builder
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: httparty
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: json
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.6'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.6'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.4'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.4'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.2'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.2'
97
+ - !ruby/object:Gem::Dependency
98
+ name: factory_girl
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '4.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '4.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: webmock
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.20'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.20'
125
+ description: Easy to use gem to send iOS, Android and Windows Phone Push notifications
126
+ email:
127
+ - santhu.ms83@gmail.com
128
+ executables: []
129
+ extensions: []
130
+ extra_rdoc_files: []
131
+ files:
132
+ - ".gitignore"
133
+ - ".rspec"
134
+ - ".travis.yml"
135
+ - CHANGELOG.md
136
+ - Gemfile
137
+ - LICENSE
138
+ - README.md
139
+ - Rakefile
140
+ - examples/apns.rb
141
+ - examples/gcm.rb
142
+ - examples/mpns.rb
143
+ - examples/wns.rb
144
+ - gemfiles/Gemfile-legacy
145
+ - lib/ruby-push-notifications.rb
146
+ - lib/ruby-push-notifications/apns.rb
147
+ - lib/ruby-push-notifications/apns/apns_connection.rb
148
+ - lib/ruby-push-notifications/apns/apns_notification.rb
149
+ - lib/ruby-push-notifications/apns/apns_pusher.rb
150
+ - lib/ruby-push-notifications/apns/apns_results.rb
151
+ - lib/ruby-push-notifications/fcm.rb
152
+ - lib/ruby-push-notifications/fcm/fcm_connection.rb
153
+ - lib/ruby-push-notifications/fcm/fcm_error.rb
154
+ - lib/ruby-push-notifications/fcm/fcm_notification.rb
155
+ - lib/ruby-push-notifications/fcm/fcm_pusher.rb
156
+ - lib/ruby-push-notifications/fcm/fcm_request.rb
157
+ - lib/ruby-push-notifications/fcm/fcm_response.rb
158
+ - lib/ruby-push-notifications/fcm/fcm_result.rb
159
+ - lib/ruby-push-notifications/gcm.rb
160
+ - lib/ruby-push-notifications/gcm/gcm_connection.rb
161
+ - lib/ruby-push-notifications/gcm/gcm_error.rb
162
+ - lib/ruby-push-notifications/gcm/gcm_notification.rb
163
+ - lib/ruby-push-notifications/gcm/gcm_pusher.rb
164
+ - lib/ruby-push-notifications/gcm/gcm_response.rb
165
+ - lib/ruby-push-notifications/gcm/gcm_result.rb
166
+ - lib/ruby-push-notifications/mpns.rb
167
+ - lib/ruby-push-notifications/mpns/mpns_connection.rb
168
+ - lib/ruby-push-notifications/mpns/mpns_notification.rb
169
+ - lib/ruby-push-notifications/mpns/mpns_pusher.rb
170
+ - lib/ruby-push-notifications/mpns/mpns_response.rb
171
+ - lib/ruby-push-notifications/mpns/mpns_result.rb
172
+ - lib/ruby-push-notifications/notification_results_manager.rb
173
+ - lib/ruby-push-notifications/wns.rb
174
+ - lib/ruby-push-notifications/wns/wns_access.rb
175
+ - lib/ruby-push-notifications/wns/wns_connection.rb
176
+ - lib/ruby-push-notifications/wns/wns_notification.rb
177
+ - lib/ruby-push-notifications/wns/wns_pusher.rb
178
+ - lib/ruby-push-notifications/wns/wns_response.rb
179
+ - lib/ruby-push-notifications/wns/wns_result.rb
180
+ - ruby-push-notifications.gemspec
181
+ - spec/factories.rb
182
+ - spec/factories/notifications.rb
183
+ - spec/ruby-push-notifications/apns/apns_connection_spec.rb
184
+ - spec/ruby-push-notifications/apns/apns_notification_spec.rb
185
+ - spec/ruby-push-notifications/apns/apns_pusher_spec.rb
186
+ - spec/ruby-push-notifications/gcm/gcm_connection_spec.rb
187
+ - spec/ruby-push-notifications/gcm/gcm_notification_spec.rb
188
+ - spec/ruby-push-notifications/gcm/gcm_pusher_spec.rb
189
+ - spec/ruby-push-notifications/gcm/gcm_response_spec.rb
190
+ - spec/ruby-push-notifications/mpns/mpns_connection_spec.rb
191
+ - spec/ruby-push-notifications/mpns/mpns_notification_spec.rb
192
+ - spec/ruby-push-notifications/mpns/mpns_pusher_spec.rb
193
+ - spec/ruby-push-notifications/mpns/mpns_response_spec.rb
194
+ - spec/ruby-push-notifications/wns/wns_access_spec.rb
195
+ - spec/ruby-push-notifications/wns/wns_connection_spec.rb
196
+ - spec/ruby-push-notifications/wns/wns_notification_spec.rb
197
+ - spec/ruby-push-notifications/wns/wns_pusher_spec.rb
198
+ - spec/ruby-push-notifications/wns/wns_response_spec.rb
199
+ - spec/spec_helper.rb
200
+ - spec/support/dummy.pem
201
+ - spec/support/factory_girl.rb
202
+ - spec/support/results_shared_examples.rb
203
+ homepage: https://github.com/santhums/ruby-push-notifications
204
+ licenses:
205
+ - MIT
206
+ metadata: {}
207
+ post_install_message:
208
+ rdoc_options: []
209
+ require_paths:
210
+ - lib
211
+ required_ruby_version: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: 2.0.0
216
+ required_rubygems_version: !ruby/object:Gem::Requirement
217
+ requirements:
218
+ - - ">="
219
+ - !ruby/object:Gem::Version
220
+ version: '0'
221
+ requirements: []
222
+ rubyforge_project:
223
+ rubygems_version: 2.5.1
224
+ signing_key:
225
+ specification_version: 4
226
+ summary: iOS, Android and Windows Phone Push Notifications made easy!
227
+ test_files:
228
+ - spec/factories.rb
229
+ - spec/factories/notifications.rb
230
+ - spec/ruby-push-notifications/apns/apns_connection_spec.rb
231
+ - spec/ruby-push-notifications/apns/apns_notification_spec.rb
232
+ - spec/ruby-push-notifications/apns/apns_pusher_spec.rb
233
+ - spec/ruby-push-notifications/gcm/gcm_connection_spec.rb
234
+ - spec/ruby-push-notifications/gcm/gcm_notification_spec.rb
235
+ - spec/ruby-push-notifications/gcm/gcm_pusher_spec.rb
236
+ - spec/ruby-push-notifications/gcm/gcm_response_spec.rb
237
+ - spec/ruby-push-notifications/mpns/mpns_connection_spec.rb
238
+ - spec/ruby-push-notifications/mpns/mpns_notification_spec.rb
239
+ - spec/ruby-push-notifications/mpns/mpns_pusher_spec.rb
240
+ - spec/ruby-push-notifications/mpns/mpns_response_spec.rb
241
+ - spec/ruby-push-notifications/wns/wns_access_spec.rb
242
+ - spec/ruby-push-notifications/wns/wns_connection_spec.rb
243
+ - spec/ruby-push-notifications/wns/wns_notification_spec.rb
244
+ - spec/ruby-push-notifications/wns/wns_pusher_spec.rb
245
+ - spec/ruby-push-notifications/wns/wns_response_spec.rb
246
+ - spec/spec_helper.rb
247
+ - spec/support/dummy.pem
248
+ - spec/support/factory_girl.rb
249
+ - spec/support/results_shared_examples.rb