apnotic 0.8.0 → 0.8.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8304b356ec75720e4a6b0a1b969f42a6478fb989
4
- data.tar.gz: 5ee9a617bc2abb21e3aa98ffd119c4ada2b978be
3
+ metadata.gz: 94b898f82f8673a61f6ab3bd745fa8eb906027ca
4
+ data.tar.gz: 56d23827cb003d10af4189a2ab67b03e560f83f6
5
5
  SHA512:
6
- metadata.gz: cfc56210bd04357a57c7187a513610e8a3de664cf3f9a41bbc0e27320ac0e89f7121ea8e32db0a980edb9dd8099c5fd830d6ebd968a615205c343c7819d32b7a
7
- data.tar.gz: b59e06b515806102cab4add4675d180f967038790d0fb7ddfc6c92b04884d3c0eca2a826e5252d14221e35858293383cd879c2c1bda88f72aa783454fa2f9b2f
6
+ metadata.gz: a75456d48d44c43da3e61da09ad1bce0ab94340554de54831b9e425d338ad712d2147066a76ad70ad4029a8f3bc8d332ea3733d530008ac9a06ba2e05aabdd1a
7
+ data.tar.gz: 995629c68ef5c73f94d95ab68cac75d7895c8e3744a6d37dcb463dc7472d738461faf797d8e1b5b9ff5ae6023596a2e4de486ed86ed2226e9a4ae09df7a2f032
@@ -4,20 +4,21 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'apnotic/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "apnotic"
8
- spec.version = Apnotic::VERSION
9
- spec.licenses = ['MIT']
10
- spec.authors = ["Roberto Ostinelli"]
11
- spec.email = ["roberto@ostinelli.net"]
12
- spec.summary = %q{Apnotic is an Apple Push Notification gem able to provide instant feedback.}
13
- spec.homepage = "http://github.com/ostinelli/apnotic"
7
+ spec.name = "apnotic"
8
+ spec.version = Apnotic::VERSION
9
+ spec.licenses = ['MIT']
10
+ spec.authors = ["Roberto Ostinelli"]
11
+ spec.email = ["roberto@ostinelli.net"]
12
+ spec.summary = %q{Apnotic is an Apple Push Notification gem able to provide instant feedback.}
13
+ spec.homepage = "http://github.com/ostinelli/apnotic"
14
+ spec.required_ruby_version = '>=2.1.0'
14
15
 
15
16
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
16
17
  spec.bindir = "exe"
17
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
19
  spec.require_paths = ["lib"]
19
20
 
20
- spec.add_dependency "net-http2", "~> 0.7.2"
21
+ spec.add_dependency "net-http2", "~> 0.8.0"
21
22
  spec.add_dependency "connection_pool", "~> 2.0"
22
23
 
23
24
  spec.add_development_dependency "bundler", "~> 1.3"
@@ -28,7 +28,11 @@ module Apnotic
28
28
 
29
29
  def push(notification, options={})
30
30
  request = Apnotic::Request.new(notification)
31
- response = @client.post(request.path, request.body, request.headers, timeout: options[:timeout])
31
+ response = @client.call(:post, request.path,
32
+ body: request.body,
33
+ headers: request.headers,
34
+ timeout: options[:timeout]
35
+ )
32
36
  Apnotic::Response.new(headers: response.headers, body: response.body) if response
33
37
  end
34
38
 
@@ -1,3 +1,3 @@
1
1
  module Apnotic
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apnotic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Ostinelli
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.7.2
19
+ version: 0.8.0
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.7.2
26
+ version: 0.8.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: connection_pool
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -118,7 +118,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
118
118
  requirements:
119
119
  - - ">="
120
120
  - !ruby/object:Gem::Version
121
- version: '0'
121
+ version: 2.1.0
122
122
  required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  requirements:
124
124
  - - ">="