notifiable-apns-apnotic 0.1.2 → 0.2.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
- SHA256:
3
- metadata.gz: 8ab231752184e8e0fb198800962847666494246eae64ddbb185bfdc5a3e23ce7
4
- data.tar.gz: bfee347ab0bc3c7bd0f3db38f51ad64f03cc3fa70fecfc90e5788b16bbf2ee17
2
+ SHA1:
3
+ metadata.gz: 19c1308ead282a664149328d723b8189955356c4
4
+ data.tar.gz: b51ac633fd9e078ac519d05db1f50ce0d93af6d1
5
5
  SHA512:
6
- metadata.gz: 13f77360f2d111f123d7f49c93da4a2ca9c024d24dc36b7b72b7e6a13af52842dba8f6286f881b0b9b1d4be4c61852e9d059ca13e3dda6a5bb5dd67b6a7656e3
7
- data.tar.gz: d0004712861e4578b45694f97d43782d47d3c74019104866ae738ce12bba29afff4abed355b7f429a76bea71e037bcd18a1540bd41441a1de82e57010e16368d
6
+ metadata.gz: 1f89e86d56c7d1755fde57bb65df620048708a4d61e3880e01f628bfdbd5c70149d5b6737884fc4cde2deebe827ff4c6990cc5314a28dc05ad52191c0d2edce9
7
+ data.tar.gz: 38989cdd3faa75eea5f30c9a779e10ca382ba3dba595e4c51b9468fd1bec86903e81ac4230197bf70f2281f35c62e08ae203180feb52ac83bce468bcb97efe54
data/Gemfile.lock CHANGED
@@ -1,52 +1,21 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- notifiable-apns-apnotic (0.1.2)
4
+ notifiable-apns-apnotic (0.2.0)
5
5
  apnotic (~> 1.4.1)
6
- notifiable-rails (>= 0.29.0)
6
+ notifiable-core (>= 0.1.3)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (5.2.1)
12
- actionpack (= 5.2.1)
13
- nio4r (~> 2.0)
14
- websocket-driver (>= 0.6.1)
15
- actionmailer (5.2.1)
16
- actionpack (= 5.2.1)
17
- actionview (= 5.2.1)
18
- activejob (= 5.2.1)
19
- mail (~> 2.5, >= 2.5.4)
20
- rails-dom-testing (~> 2.0)
21
- actionpack (5.2.1)
22
- actionview (= 5.2.1)
23
- activesupport (= 5.2.1)
24
- rack (~> 2.0)
25
- rack-test (>= 0.6.3)
26
- rails-dom-testing (~> 2.0)
27
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.2.1)
29
- activesupport (= 5.2.1)
30
- builder (~> 3.1)
31
- erubi (~> 1.4)
32
- rails-dom-testing (~> 2.0)
33
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
- activejob (5.2.1)
35
- activesupport (= 5.2.1)
36
- globalid (>= 0.3.6)
37
11
  activemodel (5.2.1)
38
12
  activesupport (= 5.2.1)
39
13
  activerecord (5.2.1)
40
14
  activemodel (= 5.2.1)
41
15
  activesupport (= 5.2.1)
42
16
  arel (>= 9.0)
43
- activerecord-postgis-adapter (5.2.1)
44
- activerecord (~> 5.1)
45
- rgeo-activerecord (~> 6.0)
46
- activestorage (5.2.1)
47
- actionpack (= 5.2.1)
48
- activerecord (= 5.2.1)
49
- marcel (~> 0.3.1)
17
+ activerecord-import (0.25.0)
18
+ activerecord (>= 3.2)
50
19
  activesupport (5.2.1)
51
20
  concurrent-ruby (~> 1.0, >= 1.0.2)
52
21
  i18n (>= 0.7, < 2)
@@ -56,71 +25,20 @@ GEM
56
25
  connection_pool (~> 2.0)
57
26
  net-http2 (>= 0.18, < 2)
58
27
  arel (9.0.0)
59
- builder (3.2.3)
60
28
  concurrent-ruby (1.0.5)
61
29
  connection_pool (2.2.2)
62
- crass (1.0.4)
63
30
  diff-lcs (1.3)
64
- erubi (1.7.1)
65
- globalid (0.4.1)
66
- activesupport (>= 4.2.0)
67
31
  http-2 (0.9.0)
68
32
  i18n (1.1.0)
69
33
  concurrent-ruby (~> 1.0)
70
- loofah (2.2.2)
71
- crass (~> 1.0.2)
72
- nokogiri (>= 1.5.9)
73
- mail (2.7.0)
74
- mini_mime (>= 0.1.1)
75
- marcel (0.3.2)
76
- mimemagic (~> 0.3.2)
77
- method_source (0.9.0)
78
- mimemagic (0.3.2)
79
- mini_mime (1.0.1)
80
- mini_portile2 (2.3.0)
81
34
  minitest (5.11.3)
82
35
  net-http2 (0.18.0)
83
36
  http-2 (= 0.9.0)
84
- nio4r (2.3.1)
85
- nokogiri (1.8.4)
86
- mini_portile2 (~> 2.3.0)
87
- notifiable-rails (0.30.1)
88
- activerecord-postgis-adapter
89
- pg
90
- rails
91
- pg (1.0.0)
92
- rack (2.0.5)
93
- rack-test (1.1.0)
94
- rack (>= 1.0, < 3)
95
- rails (5.2.1)
96
- actioncable (= 5.2.1)
97
- actionmailer (= 5.2.1)
98
- actionpack (= 5.2.1)
99
- actionview (= 5.2.1)
100
- activejob (= 5.2.1)
101
- activemodel (= 5.2.1)
102
- activerecord (= 5.2.1)
103
- activestorage (= 5.2.1)
104
- activesupport (= 5.2.1)
105
- bundler (>= 1.3.0)
106
- railties (= 5.2.1)
107
- sprockets-rails (>= 2.0.0)
108
- rails-dom-testing (2.0.3)
109
- activesupport (>= 4.2.0)
110
- nokogiri (>= 1.6)
111
- rails-html-sanitizer (1.0.4)
112
- loofah (~> 2.2, >= 2.2.2)
113
- railties (5.2.1)
114
- actionpack (= 5.2.1)
115
- activesupport (= 5.2.1)
116
- method_source
117
- rake (>= 0.8.7)
118
- thor (>= 0.19.0, < 2.0)
37
+ notifiable-core (0.1.3)
38
+ activerecord
39
+ activerecord-import
40
+ pg (1.1.0)
119
41
  rake (10.5.0)
120
- rgeo (1.1.1)
121
- rgeo-activerecord (6.0.0)
122
- activerecord (~> 5.0)
123
- rgeo (~> 1.0)
124
42
  rspec (3.8.0)
125
43
  rspec-core (~> 3.8.0)
126
44
  rspec-expectations (~> 3.8.0)
@@ -134,21 +52,9 @@ GEM
134
52
  diff-lcs (>= 1.2.0, < 2.0)
135
53
  rspec-support (~> 3.8.0)
136
54
  rspec-support (3.8.0)
137
- sprockets (3.7.2)
138
- concurrent-ruby (~> 1.0)
139
- rack (> 1, < 3)
140
- sprockets-rails (3.2.1)
141
- actionpack (>= 4.0)
142
- activesupport (>= 4.0)
143
- sprockets (>= 3.0.0)
144
- sqlite3 (1.3.13)
145
- thor (0.20.0)
146
55
  thread_safe (0.3.6)
147
56
  tzinfo (1.2.5)
148
57
  thread_safe (~> 0.1)
149
- websocket-driver (0.7.0)
150
- websocket-extensions (>= 0.1.0)
151
- websocket-extensions (0.1.3)
152
58
 
153
59
  PLATFORMS
154
60
  ruby
@@ -156,9 +62,9 @@ PLATFORMS
156
62
  DEPENDENCIES
157
63
  bundler (~> 1.16)
158
64
  notifiable-apns-apnotic!
65
+ pg
159
66
  rake (~> 10.0)
160
67
  rspec (~> 3.0)
161
- sqlite3
162
68
 
163
69
  BUNDLED WITH
164
70
  1.16.4
data/Rakefile CHANGED
@@ -1,6 +1,9 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rspec/core/rake_task"
3
3
 
4
+ notifiable_path = Gem::Specification.find_by_name 'notifiable-core'
5
+ load "#{notifiable_path.gem_dir}/lib/tasks/db.rake"
6
+
4
7
  RSpec::Core::RakeTask.new(:spec)
5
8
 
6
9
  task :default => :spec
@@ -0,0 +1,12 @@
1
+ postgres: &postgres
2
+ adapter: postgresql
3
+ host: localhost
4
+ port: 5432
5
+
6
+ development:
7
+ <<: *postgres
8
+ database: notifiable-apns-apnotic-development
9
+
10
+ test:
11
+ <<: *postgres
12
+ database: notifiable-apns-apnotic-test
@@ -26,7 +26,7 @@ module Notifiable
26
26
  push = connection.prepare_push(apnotic_notification)
27
27
  push.on(:response) do |response|
28
28
  if response.ok?
29
- processed(device, 0)
29
+ processed(device)
30
30
  else
31
31
  processed(device, response.status, response.body['reason'])
32
32
  device.destroy if response.status == '410' || (response.status == '400' && response.body['reason'] == 'BadDeviceToken')
@@ -1,7 +1,7 @@
1
1
  module Notifiable
2
2
  module Apns
3
3
  module Apnotic
4
- VERSION = "0.1.2"
4
+ VERSION = "0.2.0"
5
5
  end
6
6
  end
7
7
  end
@@ -20,11 +20,12 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.add_dependency "notifiable-rails", ">= 0.29.0"
23
+ spec.add_dependency "notifiable-core", ">= 0.1.3"
24
24
  spec.add_dependency 'apnotic', '~> 1.4.1'
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.16"
27
27
  spec.add_development_dependency "rake", "~> 10.0"
28
28
  spec.add_development_dependency "rspec", "~> 3.0"
29
- spec.add_development_dependency "sqlite3"
29
+ spec.add_development_dependency "pg"
30
+
30
31
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notifiable-apns-apnotic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brooke-Smith
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-24 00:00:00.000000000 Z
11
+ date: 2018-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: notifiable-rails
14
+ name: notifiable-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.29.0
19
+ version: 0.1.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.29.0
26
+ version: 0.1.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: apnotic
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '3.0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: sqlite3
84
+ name: pg
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -110,6 +110,7 @@ files:
110
110
  - Rakefile
111
111
  - bin/console
112
112
  - bin/setup
113
+ - config/database.yml
113
114
  - db/development.sqlite3
114
115
  - lib/notifiable/apns/apnotic.rb
115
116
  - lib/notifiable/apns/apnotic/async.rb
@@ -135,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
136
  version: '0'
136
137
  requirements: []
137
138
  rubyforge_project:
138
- rubygems_version: 2.7.3
139
+ rubygems_version: 2.6.14
139
140
  signing_key:
140
141
  specification_version: 4
141
142
  summary: Apnotic APNS connector for Notifiable