notifiable-rails 0.20.0 → 0.21.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.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/notifiable/{notifications_controller.rb → notification_statuses_controller.rb} +9 -13
  3. data/config/routes.rb +1 -1
  4. data/db/migrate/20131210115649_create_notifiable_device_tokens.rb +1 -0
  5. data/db/migrate/20131210115650_create_notifiable_notifications.rb +0 -10
  6. data/db/migrate/20131210115651_create_notifiable_localized_notifications.rb +22 -0
  7. data/db/migrate/{20131210115651_create_notifiable_statuses.rb → 20131210115652_create_notifiable_statuses.rb} +1 -1
  8. data/lib/generators/notifiable/install/templates/initializer.rb +1 -1
  9. data/lib/notifiable/device_token.rb +1 -0
  10. data/lib/notifiable/localized_notification.rb +14 -0
  11. data/lib/notifiable/notification.rb +12 -3
  12. data/lib/notifiable/notification_status.rb +6 -1
  13. data/lib/notifiable/notifier_base.rb +6 -2
  14. data/lib/notifiable/version.rb +1 -1
  15. data/lib/notifiable.rb +5 -1
  16. data/spec/controllers/device_tokens_controller_spec.rb +1 -1
  17. data/spec/controllers/{notifications_controller_spec.rb → notification_statuses_controller_spec.rb} +14 -14
  18. data/spec/model/device_token_spec.rb +16 -0
  19. data/spec/model/localized_notification_spec.rb +38 -0
  20. data/spec/model/notifiable_spec.rb +3 -3
  21. data/spec/model/notification_spec.rb +21 -30
  22. data/spec/spec_helper.rb +4 -0
  23. data/spec/support/factories.rb +17 -6
  24. data/spec/test_app/db/development.sqlite3 +0 -0
  25. data/spec/test_app/db/migrate/{20131210115652_create_users.rb → 20131210115660_create_users.rb} +0 -0
  26. data/spec/test_app/db/schema.rb +11 -3
  27. data/spec/test_app/db/test.sqlite3 +0 -0
  28. data/spec/test_app/log/development.log +57 -0
  29. data/spec/test_app/log/test.log +38505 -0
  30. metadata +14 -8
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notifiable-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Kocemba
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-21 00:00:00.000000000 Z
12
+ date: 2015-02-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -162,12 +162,13 @@ files:
162
162
  - LICENSE
163
163
  - Rakefile
164
164
  - app/controllers/notifiable/device_tokens_controller.rb
165
- - app/controllers/notifiable/notifications_controller.rb
165
+ - app/controllers/notifiable/notification_statuses_controller.rb
166
166
  - config/routes.rb
167
167
  - db/migrate/20131210115648_create_notifiable_apps.rb
168
168
  - db/migrate/20131210115649_create_notifiable_device_tokens.rb
169
169
  - db/migrate/20131210115650_create_notifiable_notifications.rb
170
- - db/migrate/20131210115651_create_notifiable_statuses.rb
170
+ - db/migrate/20131210115651_create_notifiable_localized_notifications.rb
171
+ - db/migrate/20131210115652_create_notifiable_statuses.rb
171
172
  - lib/generators/notifiable/install/install_generator.rb
172
173
  - lib/generators/notifiable/install/templates/initializer.rb
173
174
  - lib/notifiable.rb
@@ -175,6 +176,7 @@ files:
175
176
  - lib/notifiable/app.rb
176
177
  - lib/notifiable/device_token.rb
177
178
  - lib/notifiable/engine.rb
179
+ - lib/notifiable/localized_notification.rb
178
180
  - lib/notifiable/notifiable_concern.rb
179
181
  - lib/notifiable/notification.rb
180
182
  - lib/notifiable/notification_status.rb
@@ -183,7 +185,9 @@ files:
183
185
  - lib/notifiable/version.rb
184
186
  - lib/tasks/brakeman.rake
185
187
  - spec/controllers/device_tokens_controller_spec.rb
186
- - spec/controllers/notifications_controller_spec.rb
188
+ - spec/controllers/notification_statuses_controller_spec.rb
189
+ - spec/model/device_token_spec.rb
190
+ - spec/model/localized_notification_spec.rb
187
191
  - spec/model/notifiable_app_spec.rb
188
192
  - spec/model/notifiable_spec.rb
189
193
  - spec/model/notification_spec.rb
@@ -223,7 +227,7 @@ files:
223
227
  - spec/test_app/config/locales/en.yml
224
228
  - spec/test_app/config/routes.rb
225
229
  - spec/test_app/db/development.sqlite3
226
- - spec/test_app/db/migrate/20131210115652_create_users.rb
230
+ - spec/test_app/db/migrate/20131210115660_create_users.rb
227
231
  - spec/test_app/db/schema.rb
228
232
  - spec/test_app/db/test.sqlite3
229
233
  - spec/test_app/log/development.log
@@ -258,7 +262,9 @@ specification_version: 4
258
262
  summary: Rails engine to make push notifications a bit easier.
259
263
  test_files:
260
264
  - spec/controllers/device_tokens_controller_spec.rb
261
- - spec/controllers/notifications_controller_spec.rb
265
+ - spec/controllers/notification_statuses_controller_spec.rb
266
+ - spec/model/device_token_spec.rb
267
+ - spec/model/localized_notification_spec.rb
262
268
  - spec/model/notifiable_app_spec.rb
263
269
  - spec/model/notifiable_spec.rb
264
270
  - spec/model/notification_spec.rb
@@ -296,7 +302,7 @@ test_files:
296
302
  - spec/test_app/config/routes.rb
297
303
  - spec/test_app/config.ru
298
304
  - spec/test_app/db/development.sqlite3
299
- - spec/test_app/db/migrate/20131210115652_create_users.rb
305
+ - spec/test_app/db/migrate/20131210115660_create_users.rb
300
306
  - spec/test_app/db/schema.rb
301
307
  - spec/test_app/db/test.sqlite3
302
308
  - spec/test_app/log/development.log