notifiable-apns-grocer 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30d48e8f30aa6282220f97dfdfa644c3c842d2da
4
- data.tar.gz: c867dafb4b9481fbb78ab61b682eab5a748cafdf
3
+ metadata.gz: 7e5f4841e095e7ea307029f7292e8e22f5a1a21e
4
+ data.tar.gz: 3ca1ad0d68c572c998e08743717737e03c81711f
5
5
  SHA512:
6
- metadata.gz: 9a565c57625f0b2f548905d917a23f5df7d928ef37e9d3a872593b8e9bda5251cc5be3081fa374c39bdb17cc295f67b1ad9d1821c727c892b223bb75a6e3041f
7
- data.tar.gz: 078547b7854ed7e50e11b2538dae59595e27740230b7bc075e972ab8c7da7d11c846f4ecdbc8d2634e80c76d4e43424114e7ba4818b9a744d8ac2a5d7c325086
6
+ metadata.gz: 89a8d9cdb1b09ae72c328de828829dd7157b1c0726ee149f9ec2c28c38c5e0013634b18ae12830d1d84b7a2a4a1b2d093564052721387a6b2fa88bc0a7298595
7
+ data.tar.gz: 87f7e49e40767d157602b79534d00675e792aafe1ebcaa9b1aa04595bf82cf00ffaa7fbedb516b7ba982549f6c38daf90226dc224d107b7d4e09ceec7e0b0f35
data/Gemfile CHANGED
@@ -3,6 +3,4 @@ source 'https://rubygems.org'
3
3
  ruby '2.3.1'
4
4
 
5
5
  # Specify your gem's dependencies in notifiable-apns-grocer.gemspec
6
- gemspec
7
-
8
- gem 'notifiable-rails', github: "FutureWorkshops/notifiable-rails"
6
+ gemspec
@@ -89,6 +89,7 @@ module Notifiable
89
89
  payload[:alert][:title] = notification.title if notification.title
90
90
  payload[:alert][:body] = notification.message if notification.message
91
91
  payload[:sound] = notification.sound || 'default'
92
+ payload[:'thread-id'] = notification.thread_id if notification.thread_id
92
93
  payload[:badge] = notification.badge_count if notification.badge_count
93
94
  payload[:identifier] = notification.identifier if notification.identifier
94
95
  payload[:content_available] = notification.content_available if notification.content_available
@@ -1,7 +1,7 @@
1
1
  module Notifiable
2
2
  module Apns
3
3
  module Grocer
4
- VERSION = "0.15.2"
4
+ VERSION = "0.16.0"
5
5
  end
6
6
  end
7
7
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "notifiable-rails", ">=0.24.1"
21
+ spec.add_dependency "notifiable-rails", "~> 0.28.1"
22
22
  spec.add_dependency "grocer", '~> 0.7.0'
23
23
  spec.add_dependency "connection_pool", '~> 2.0.0'
24
24
 
data/spec/spec_helper.rb CHANGED
@@ -41,8 +41,9 @@ RSpec.configure do |config|
41
41
 
42
42
  ActiveRecord::Migration.verbose = false
43
43
  notifiable_rails_path = Gem.loaded_specs['notifiable-rails'].full_gem_path
44
- ActiveRecord::Migrator.migrate File.join(notifiable_rails_path, 'db', 'migrate')
45
44
 
45
+ ActiveRecord::MigrationContext.new(File.join(notifiable_rails_path, 'db', 'migrate')).migrate
46
+
46
47
  @grocer = Grocer.server(port: 2195)
47
48
  @grocer.accept
48
49
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notifiable-apns-grocer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.2
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Kocemba
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-04-29 00:00:00.000000000 Z
12
+ date: 2018-06-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: notifiable-rails
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ">="
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 0.24.1
20
+ version: 0.28.1
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ">="
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 0.24.1
27
+ version: 0.28.1
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: grocer
30
30
  requirement: !ruby/object:Gem::Requirement