notifiable-gcm-spacialdb 0.7.0 → 0.8.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: bf8617349fad22ba3f960775005a9cf5690f0dc2
4
- data.tar.gz: b4b074036bedd4eda84de247260f29a7d4fceead
3
+ metadata.gz: e7da221865614e3397cfb5a5d70ec546c6e47364
4
+ data.tar.gz: e184c03554ae384b3777a379a3845093e1df1bdc
5
5
  SHA512:
6
- metadata.gz: c9987b8e215fea1e309579aa5311a0a9e86be7df56f2c0f068b0fb57157773bc927ad8bfd342827236e99867b2c32b8f504772c3548368e35b897e91f1de72e9
7
- data.tar.gz: dff07a33f03b9fe86681a76b490cbb3e535d3cc4bbfab3c2de3803debd5a0f4027da51c0cfd1256bafc3bf0cdccf0cfe1dd9030cbb9c9ff2c8ea3e716328c806
6
+ metadata.gz: 7cd2403d53fb87f6c237c9334387748bc3ec80ab8ed416431bd3acc83b91241969a92e6de537bb5c334cf0ed364c4867023392c37f9d1c30b9aab9b642711e92
7
+ data.tar.gz: 24f93bdf60fcd2bf268be58110652eb9833d1a2fb4f392b36d3a51b5a9e7740f5ba1c9d37082ce76a994c9bce1bdfc07d8fbc96240f4a2b4bb3cab1c45a19896
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.0.0-p247
1
+ 2.1.6
data/Gemfile.lock CHANGED
@@ -1,79 +1,83 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- notifiable-gcm-spacialdb (0.7.0)
4
+ notifiable-gcm-spacialdb (0.8.0)
5
5
  gcm (~> 0.0.6)
6
- notifiable-rails (>= 0.19.0)
6
+ notifiable-rails (>= 0.21.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actionmailer (4.0.5)
12
- actionpack (= 4.0.5)
13
- mail (~> 2.5.4)
14
- actionpack (4.0.5)
15
- activesupport (= 4.0.5)
16
- builder (~> 3.1.0)
17
- erubis (~> 2.7.0)
11
+ actionmailer (4.1.12)
12
+ actionpack (= 4.1.12)
13
+ actionview (= 4.1.12)
14
+ mail (~> 2.5, >= 2.5.4)
15
+ actionpack (4.1.12)
16
+ actionview (= 4.1.12)
17
+ activesupport (= 4.1.12)
18
18
  rack (~> 1.5.2)
19
19
  rack-test (~> 0.6.2)
20
- activemodel (4.0.5)
21
- activesupport (= 4.0.5)
22
- builder (~> 3.1.0)
23
- activerecord (4.0.5)
24
- activemodel (= 4.0.5)
25
- activerecord-deprecated_finders (~> 1.0.2)
26
- activesupport (= 4.0.5)
27
- arel (~> 4.0.0)
28
- activerecord-deprecated_finders (1.0.3)
29
- activesupport (4.0.5)
20
+ actionview (4.1.12)
21
+ activesupport (= 4.1.12)
22
+ builder (~> 3.1)
23
+ erubis (~> 2.7.0)
24
+ activemodel (4.1.12)
25
+ activesupport (= 4.1.12)
26
+ builder (~> 3.1)
27
+ activerecord (4.1.12)
28
+ activemodel (= 4.1.12)
29
+ activesupport (= 4.1.12)
30
+ arel (~> 5.0.0)
31
+ activesupport (4.1.12)
30
32
  i18n (~> 0.6, >= 0.6.9)
31
- minitest (~> 4.2)
32
- multi_json (~> 1.3)
33
+ json (~> 1.7, >= 1.7.7)
34
+ minitest (~> 5.1)
33
35
  thread_safe (~> 0.1)
34
- tzinfo (~> 0.3.37)
36
+ tzinfo (~> 1.1)
35
37
  addressable (2.3.5)
36
- arel (4.0.2)
37
- builder (3.1.4)
38
+ arel (5.0.1.20140414130214)
39
+ builder (3.2.2)
40
+ byebug (5.0.0)
41
+ columnize (= 0.9.0)
42
+ columnize (0.9.0)
38
43
  crack (0.4.1)
39
44
  safe_yaml (~> 0.9.0)
40
45
  database_cleaner (1.2.0)
41
46
  diff-lcs (1.2.5)
42
47
  docile (1.1.2)
43
48
  erubis (2.7.0)
44
- gcm (0.0.7)
49
+ gcm (0.0.9)
45
50
  httparty
46
51
  json
47
- hike (1.2.3)
48
- httparty (0.13.1)
52
+ httparty (0.13.5)
49
53
  json (~> 1.8)
50
54
  multi_xml (>= 0.5.2)
51
- i18n (0.6.9)
52
- json (1.8.1)
53
- mail (2.5.4)
54
- mime-types (~> 1.16)
55
- treetop (~> 1.4.8)
56
- mime-types (1.25.1)
57
- minitest (4.7.5)
55
+ i18n (0.7.0)
56
+ json (1.8.3)
57
+ mail (2.6.3)
58
+ mime-types (>= 1.16, < 3)
59
+ mime-types (2.6.1)
60
+ minitest (5.7.0)
58
61
  multi_json (1.8.4)
59
62
  multi_xml (0.5.5)
60
- notifiable-rails (0.19.0)
61
- rails (~> 4.0.0)
62
- polyglot (0.3.4)
63
- rack (1.5.2)
64
- rack-test (0.6.2)
63
+ notifiable-rails (0.21.1)
64
+ rails (~> 4.1.0)
65
+ rack (1.5.5)
66
+ rack-test (0.6.3)
65
67
  rack (>= 1.0)
66
- rails (4.0.5)
67
- actionmailer (= 4.0.5)
68
- actionpack (= 4.0.5)
69
- activerecord (= 4.0.5)
70
- activesupport (= 4.0.5)
68
+ rails (4.1.12)
69
+ actionmailer (= 4.1.12)
70
+ actionpack (= 4.1.12)
71
+ actionview (= 4.1.12)
72
+ activemodel (= 4.1.12)
73
+ activerecord (= 4.1.12)
74
+ activesupport (= 4.1.12)
71
75
  bundler (>= 1.3.0, < 2.0)
72
- railties (= 4.0.5)
73
- sprockets-rails (~> 2.0.0)
74
- railties (4.0.5)
75
- actionpack (= 4.0.5)
76
- activesupport (= 4.0.5)
76
+ railties (= 4.1.12)
77
+ sprockets-rails (~> 2.0)
78
+ railties (4.1.12)
79
+ actionpack (= 4.1.12)
80
+ activesupport (= 4.1.12)
77
81
  rake (>= 0.8.7)
78
82
  thor (>= 0.18.1, < 2.0)
79
83
  rake (10.1.1)
@@ -93,23 +97,17 @@ GEM
93
97
  simplecov-html (0.8.0)
94
98
  simplecov-rcov (0.2.3)
95
99
  simplecov (>= 0.4.1)
96
- sprockets (2.12.1)
97
- hike (~> 1.2)
98
- multi_json (~> 1.0)
100
+ sprockets (3.2.0)
99
101
  rack (~> 1.0)
100
- tilt (~> 1.1, != 1.3.0)
101
- sprockets-rails (2.0.1)
102
+ sprockets-rails (2.3.2)
102
103
  actionpack (>= 3.0)
103
104
  activesupport (>= 3.0)
104
- sprockets (~> 2.8)
105
+ sprockets (>= 2.8, < 4.0)
105
106
  sqlite3 (1.3.8)
106
107
  thor (0.19.1)
107
- thread_safe (0.3.3)
108
- tilt (1.4.1)
109
- treetop (1.4.15)
110
- polyglot
111
- polyglot (>= 0.3.1)
112
- tzinfo (0.3.39)
108
+ thread_safe (0.3.5)
109
+ tzinfo (1.2.2)
110
+ thread_safe (~> 0.1)
113
111
  webmock (1.17.1)
114
112
  addressable (>= 2.2.7)
115
113
  crack (>= 0.3.2)
@@ -119,6 +117,7 @@ PLATFORMS
119
117
 
120
118
  DEPENDENCIES
121
119
  bundler (~> 1.3)
120
+ byebug
122
121
  database_cleaner (~> 1.2.0)
123
122
  notifiable-gcm-spacialdb!
124
123
  rake (~> 10.1.1)
@@ -15,19 +15,17 @@ module Notifiable
15
15
  end
16
16
 
17
17
  protected
18
- def enqueue(device_token)
18
+ def enqueue(device_token, localized_notification)
19
19
  @batch << device_token
20
- if @batch.count >= @batch_size
21
- send_batch
22
- end
20
+ send_batch(localized_notification) if @batch.count >= @batch_size
23
21
  end
24
22
 
25
23
  def flush
26
- send_batch unless @batch.empty?
24
+ send_batch(localized_notification(@batch.first)) unless @batch.empty?
27
25
  end
28
26
 
29
27
  private
30
- def send_batch
28
+ def send_batch(notification)
31
29
  if Notifiable.delivery_method == :test
32
30
  @batch.each {|d| processed(d, 0)}
33
31
  else
@@ -1,7 +1,7 @@
1
1
  module Notifiable
2
2
  module Gcm
3
3
  module Spacialdb
4
- VERSION = "0.7.0"
4
+ VERSION = "0.8.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.19.0"
21
+ spec.add_dependency "notifiable-rails", ">=0.21.1"
22
22
  spec.add_dependency "gcm", "~> 0.0.6"
23
23
 
24
24
  spec.add_development_dependency "bundler", "~> 1.3"
@@ -29,5 +29,6 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency "sqlite3", "~> 1.3.8"
30
30
  spec.add_development_dependency "database_cleaner", "~> 1.2.0"
31
31
  spec.add_development_dependency "webmock", "~> 1.17.1"
32
+ spec.add_development_dependency "byebug"
32
33
 
33
34
  end
data/spec/batch_spec.rb CHANGED
@@ -3,30 +3,27 @@ require 'spec_helper'
3
3
  describe Notifiable::Gcm::Spacialdb::Batch do
4
4
 
5
5
  let(:a) { Notifiable::App.create }
6
- let(:n1) { Notifiable::Notification.create(:message => "Test message", :app => a) }
7
- let(:n1_with_params) { Notifiable::Notification.create(:message => "Test message", :app => a, :params => {:flag => true}) }
8
- let(:d) { Notifiable::DeviceToken.create(:token => "ABC123", :provider => :gcm, :app => a) }
6
+ let(:n1) { Notifiable::Notification.create(:app => a) }
7
+ let!(:ln) { Notifiable::LocalizedNotification.create(:message => "Test message", :params => {:flag => true}, :notification => n1, :locale => :en) }
8
+ let(:d) { Notifiable::DeviceToken.create(:token => "ABC123", :provider => :gcm, :app => a, :locale => :en) }
9
9
 
10
10
  it "sends a single gcm notification" do
11
11
  stub_request(:post, "https://android.googleapis.com/gcm/send").to_return(:body => '{ "multicast_id": 108, "success": 1, "failure": 0, "canonical_ids": 0, "results": [{ "message_id": "1:08" }]}')
12
12
 
13
- n1.batch do |n|
14
- n.add_device_token(d)
15
- end
16
-
13
+ n1.batch {|n| n.add_device_token(d)}
14
+
17
15
  Notifiable::NotificationStatus.count.should == 1
18
16
  Notifiable::NotificationStatus.first.status = 0
19
17
  end
20
18
 
21
19
  it "sends custom attributes" do
22
- stub_request(:post, "https://android.googleapis.com/gcm/send")
23
- .with(:body => {:registration_ids => ["ABC123"], :data => {:message => n1.message, :flag => true, :notification_id => n1_with_params.id}})
24
- .to_return(:body => '{ "multicast_id": 108, "success": 1, "failure": 0, "canonical_ids": 0, "results": [{ "message_id": "1:08" }]}')
20
+ stub_request(:post, "https://android.googleapis.com/gcm/send")
21
+ .with(:body => "{\"registration_ids\":[\"ABC123\"],\"data\":{\"message\":\"Test message\",\"flag\":true,\"localized_notification_id\":1}}")
22
+ .to_return(:body => '{ "multicast_id": 108, "success": 1, "failure": 0, "canonical_ids": 0, "results": [{ "message_id": "1:08" }]}')
25
23
 
26
- n1_with_params.batch do |n|
27
- n.add_device_token(d)
28
- end
29
-
24
+ n1.batch {|n| n.add_device_token(d)}
25
+
26
+
30
27
  Notifiable::NotificationStatus.count.should == 1
31
28
  Notifiable::NotificationStatus.first.status = 0
32
29
  end
@@ -34,9 +31,7 @@ describe Notifiable::Gcm::Spacialdb::Batch do
34
31
  it "marks a unregistered token as invalid" do
35
32
  stub_request(:post, "https://android.googleapis.com/gcm/send").to_return(:body => '{ "multicast_id": 108, "success": 0, "failure": 1, "canonical_ids": 0, "results": [{ "error": "NotRegistered" }]}')
36
33
 
37
- n1.batch do |n|
38
- n.add_device_token(d)
39
- end
34
+ n1.batch {|n| n.add_device_token(d)}
40
35
 
41
36
  Notifiable::NotificationStatus.count.should == 1
42
37
  Notifiable::NotificationStatus.first.status = 4
@@ -46,9 +41,7 @@ describe Notifiable::Gcm::Spacialdb::Batch do
46
41
  it "marks an invalid token as invalid" do
47
42
  stub_request(:post, "https://android.googleapis.com/gcm/send").to_return(:body => '{ "multicast_id": 108, "success": 0, "failure": 1, "canonical_ids": 0, "results": [{ "error": "InvalidRegistration" }]}')
48
43
 
49
- n1.batch do |n|
50
- n.add_device_token(d)
51
- end
44
+ n1.batch {|n| n.add_device_token(d)}
52
45
 
53
46
  Notifiable::NotificationStatus.count.should == 1
54
47
  Notifiable::NotificationStatus.first.status = 2
@@ -58,9 +51,7 @@ describe Notifiable::Gcm::Spacialdb::Batch do
58
51
  it "updates a token to the canonical ID if it does not exist" do
59
52
  stub_request(:post, "https://android.googleapis.com/gcm/send").to_return(:body => '{ "multicast_id": 108, "success": 1, "failure": 0, "canonical_ids": 1, "results": [{ "message_id": "1:08", "registration_id": "GHJ12345" }]}')
60
53
 
61
- n1.batch do |n|
62
- n.add_device_token(d)
63
- end
54
+ n1.batch {|n| n.add_device_token(d)}
64
55
 
65
56
  Notifiable::NotificationStatus.count.should == 1
66
57
  Notifiable::NotificationStatus.first.status = 0
@@ -87,10 +78,8 @@ describe Notifiable::Gcm::Spacialdb::Batch do
87
78
  it "deals gracefully with an unauthenticated key" do
88
79
  stub_request(:post, "https://android.googleapis.com/gcm/send").to_return(:body => '<html>Message</html>', :status => 401)
89
80
 
90
- n1.batch do |n|
91
- n.add_device_token(d)
92
- end
93
-
81
+ n1.batch {|n| n.add_device_token(d)}
82
+
94
83
  Notifiable::NotificationStatus.count.should == 0
95
84
  end
96
85
 
data/spec/spec_helper.rb CHANGED
@@ -13,6 +13,7 @@ require 'rails'
13
13
  require 'notifiable'
14
14
  require 'gcm'
15
15
  require 'webmock/rspec'
16
+ require 'byebug'
16
17
  require File.expand_path("../../lib/notifiable/gcm/spacialdb", __FILE__)
17
18
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
18
19
 
@@ -4,7 +4,7 @@ class CreateNotifiableDeviceTokens < ActiveRecord::Migration
4
4
  create_table :notifiable_device_tokens do |t|
5
5
  t.string :token
6
6
  t.string :provider
7
- t.string :device_id
7
+ t.string :locale
8
8
  t.boolean :is_valid, :default => true
9
9
  t.integer :user_id
10
10
  t.references :app
@@ -12,7 +12,6 @@ class CreateNotifiableDeviceTokens < ActiveRecord::Migration
12
12
  t.timestamps
13
13
  end
14
14
 
15
- add_index :notifiable_device_tokens, :device_id, :unique => true
16
15
  add_index :notifiable_device_tokens, :token, :unique => true
17
16
  add_index :notifiable_device_tokens, :user_id
18
17
  end
@@ -2,8 +2,6 @@ class CreateNotifiableNotifications < ActiveRecord::Migration
2
2
 
3
3
  def change
4
4
  create_table :notifiable_notifications do |t|
5
- t.text :message
6
- t.text :params
7
5
  t.references :app
8
6
 
9
7
  #stats
@@ -11,14 +9,6 @@ class CreateNotifiableNotifications < ActiveRecord::Migration
11
9
  t.integer :gateway_accepted_count, :default => 0
12
10
  t.integer :opened_count, :default => 0
13
11
 
14
- # APNS - Optional
15
- #t.integer :badge
16
- #t.text :sound
17
- #t.datetime :expiry
18
-
19
- # MPNS - Optional
20
- #t.text :title
21
-
22
12
  t.timestamps
23
13
  end
24
14
  end
@@ -0,0 +1,22 @@
1
+ class CreateNotifiableLocalizedNotifications < ActiveRecord::Migration
2
+
3
+ def change
4
+ create_table :notifiable_localized_notifications do |t|
5
+ t.text :message
6
+ t.text :params
7
+ t.string :locale
8
+ t.references :notification
9
+
10
+ # APNS - Optional
11
+ #t.integer :badge
12
+ #t.text :sound
13
+ #t.datetime :expiry
14
+
15
+ # MPNS - Optional
16
+ #t.text :title
17
+
18
+ t.timestamps
19
+ end
20
+ end
21
+
22
+ end
@@ -2,7 +2,7 @@ class CreateNotifiableStatuses < ActiveRecord::Migration
2
2
 
3
3
  def change
4
4
  create_table :notifiable_statuses do |t|
5
- t.references :notification
5
+ t.references :localized_notification
6
6
  t.references :device_token
7
7
  t.integer :status
8
8
  t.datetime :created_at
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notifiable-gcm-spacialdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Kocemba
@@ -9,148 +9,162 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-09 00:00:00.000000000 Z
12
+ date: 2015-06-29 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.19.0
20
+ version: 0.21.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.19.0
27
+ version: 0.21.1
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: gcm
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ~>
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
34
  version: 0.0.6
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ~>
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: 0.0.6
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: bundler
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ~>
46
+ - - "~>"
47
47
  - !ruby/object:Gem::Version
48
48
  version: '1.3'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ~>
53
+ - - "~>"
54
54
  - !ruby/object:Gem::Version
55
55
  version: '1.3'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rake
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ~>
60
+ - - "~>"
61
61
  - !ruby/object:Gem::Version
62
62
  version: 10.1.1
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ~>
67
+ - - "~>"
68
68
  - !ruby/object:Gem::Version
69
69
  version: 10.1.1
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rspec
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ~>
74
+ - - "~>"
75
75
  - !ruby/object:Gem::Version
76
76
  version: 2.14.1
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ~>
81
+ - - "~>"
82
82
  - !ruby/object:Gem::Version
83
83
  version: 2.14.1
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: simplecov
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ~>
88
+ - - "~>"
89
89
  - !ruby/object:Gem::Version
90
90
  version: 0.8.2
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - ~>
95
+ - - "~>"
96
96
  - !ruby/object:Gem::Version
97
97
  version: 0.8.2
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: simplecov-rcov
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - ~>
102
+ - - "~>"
103
103
  - !ruby/object:Gem::Version
104
104
  version: 0.2.3
105
105
  type: :development
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - ~>
109
+ - - "~>"
110
110
  - !ruby/object:Gem::Version
111
111
  version: 0.2.3
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: sqlite3
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - ~>
116
+ - - "~>"
117
117
  - !ruby/object:Gem::Version
118
118
  version: 1.3.8
119
119
  type: :development
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - ~>
123
+ - - "~>"
124
124
  - !ruby/object:Gem::Version
125
125
  version: 1.3.8
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: database_cleaner
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - ~>
130
+ - - "~>"
131
131
  - !ruby/object:Gem::Version
132
132
  version: 1.2.0
133
133
  type: :development
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - ~>
137
+ - - "~>"
138
138
  - !ruby/object:Gem::Version
139
139
  version: 1.2.0
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: webmock
142
142
  requirement: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - ~>
144
+ - - "~>"
145
145
  - !ruby/object:Gem::Version
146
146
  version: 1.17.1
147
147
  type: :development
148
148
  prerelease: false
149
149
  version_requirements: !ruby/object:Gem::Requirement
150
150
  requirements:
151
- - - ~>
151
+ - - "~>"
152
152
  - !ruby/object:Gem::Version
153
153
  version: 1.17.1
154
+ - !ruby/object:Gem::Dependency
155
+ name: byebug
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
154
168
  description: Plugin to use GCM with Notifiable-Rails
155
169
  email:
156
170
  - kamil@futureworkshops.com
@@ -159,9 +173,9 @@ executables: []
159
173
  extensions: []
160
174
  extra_rdoc_files: []
161
175
  files:
162
- - .gitignore
163
- - .ruby-gemset
164
- - .ruby-version
176
+ - ".gitignore"
177
+ - ".ruby-gemset"
178
+ - ".ruby-version"
165
179
  - Gemfile
166
180
  - Gemfile.lock
167
181
  - LICENSE
@@ -173,10 +187,11 @@ files:
173
187
  - notifiable-gcm-spacialdb.gemspec
174
188
  - spec/batch_spec.rb
175
189
  - spec/spec_helper.rb
176
- - spec/support/db/migrate/20131228225138_create_notifiable_apps.rb
177
- - spec/support/db/migrate/20131228225139_create_notifiable_device_tokens.rb
178
- - spec/support/db/migrate/20131228225140_create_notifiable_notifications.rb
179
- - spec/support/db/migrate/20131229104039_create_notifiable_statuses.rb
190
+ - spec/support/db/migrate/20131210115648_create_notifiable_apps.rb
191
+ - spec/support/db/migrate/20131210115649_create_notifiable_device_tokens.rb
192
+ - spec/support/db/migrate/20131210115650_create_notifiable_notifications.rb
193
+ - spec/support/db/migrate/20131210115651_create_notifiable_localized_notifications.rb
194
+ - spec/support/db/migrate/20131210115652_create_notifiable_statuses.rb
180
195
  homepage: http://www.futureworkshops.com
181
196
  licenses:
182
197
  - Apache 2.0
@@ -187,24 +202,25 @@ require_paths:
187
202
  - lib
188
203
  required_ruby_version: !ruby/object:Gem::Requirement
189
204
  requirements:
190
- - - '>='
205
+ - - ">="
191
206
  - !ruby/object:Gem::Version
192
207
  version: '0'
193
208
  required_rubygems_version: !ruby/object:Gem::Requirement
194
209
  requirements:
195
- - - '>='
210
+ - - ">="
196
211
  - !ruby/object:Gem::Version
197
212
  version: '0'
198
213
  requirements: []
199
214
  rubyforge_project:
200
- rubygems_version: 2.0.14
215
+ rubygems_version: 2.2.3
201
216
  signing_key:
202
217
  specification_version: 4
203
218
  summary: Plugin to use GCM with Notifiable-Rails
204
219
  test_files:
205
220
  - spec/batch_spec.rb
206
221
  - spec/spec_helper.rb
207
- - spec/support/db/migrate/20131228225138_create_notifiable_apps.rb
208
- - spec/support/db/migrate/20131228225139_create_notifiable_device_tokens.rb
209
- - spec/support/db/migrate/20131228225140_create_notifiable_notifications.rb
210
- - spec/support/db/migrate/20131229104039_create_notifiable_statuses.rb
222
+ - spec/support/db/migrate/20131210115648_create_notifiable_apps.rb
223
+ - spec/support/db/migrate/20131210115649_create_notifiable_device_tokens.rb
224
+ - spec/support/db/migrate/20131210115650_create_notifiable_notifications.rb
225
+ - spec/support/db/migrate/20131210115651_create_notifiable_localized_notifications.rb
226
+ - spec/support/db/migrate/20131210115652_create_notifiable_statuses.rb