spackle-ruby 0.0.16 → 0.0.18

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
  SHA256:
3
- metadata.gz: 2836d3a94748b633923e713c61666b48202ec2a69e88a47e1f49f43697ac446a
4
- data.tar.gz: 567c08ffaf04b62443c7e7c35de97179781834c6ad2992a7df5ac634a3c71c77
3
+ metadata.gz: 7a5b9861dc2d74dffa6bc745b4bcc0bc7469b0ecd8e96fb593a2d5d3f590e090
4
+ data.tar.gz: 221a36058f512b719cfa413df10a4352baa94534ceeec737eea70d1fbbbebd54
5
5
  SHA512:
6
- metadata.gz: 7fa9cb1dcd0df67dde5d2466f0ddecd37c727038c018408c4473836dc1aa5ea3de9dca87e054256b412d393578027f861967a50104f7a12ac02bd4694747196d
7
- data.tar.gz: a98c28187be567457ff71b9c61728aa2764cb805f950fddca6899c37b39dca4e19ee1b0db39e202c164f5ffed1a711f4a804ba471a01224bb024dadf52a26a89
6
+ metadata.gz: ca4c8170d6e4b076f62202ab5e17a47d75aadc8467380c41312d5d2ce59a97a9ab67bbb66edf7aa310c9d92e9744d31b77645473b2fc5f5182f534655d05ca36
7
+ data.tar.gz: 5460ac9cbcabdd41531d1165b33bde4979944a6afbda2ae44aa21df133e2da02ac3719f0ec636514acf037797263601526585a2f9a6e533fa4a94d23f84e26d6
data/Gemfile CHANGED
@@ -10,3 +10,4 @@ gem "minitest", "~> 5.18"
10
10
  gem "webmock", "~> 3.18"
11
11
  gem "stripe", "~> 8.3"
12
12
  gem "faraday", "~> 2.7"
13
+ gem 'faraday-net_http_persistent', '~> 2.0'
@@ -1,4 +1,5 @@
1
1
  require 'faraday'
2
+ require "faraday/net_http_persistent"
2
3
  require 'json'
3
4
  require 'logger'
4
5
 
@@ -11,14 +12,19 @@ module Spackle
11
12
  'Authorization' => "Bearer #{Spackle.api_key}",
12
13
  'X-Spackle-Schema-Version' => Spackle.version.to_s,
13
14
  }
14
- )
15
+ ) do |faraday|
16
+ faraday.adapter :net_http_persistent
17
+ end
18
+
15
19
  @api = Faraday.new(
16
20
  url: Spackle.api_base,
17
21
  headers: {
18
22
  'Authorization' => "Bearer #{Spackle.api_key}",
19
23
  'X-Spackle-Schema-Version' => Spackle.version.to_s,
20
24
  }
21
- )
25
+ ) do |faraday|
26
+ faraday.adapter :net_http_persistent
27
+ end
22
28
  end
23
29
 
24
30
  def get_customer_data(id)
data/spackle.gemspec CHANGED
@@ -2,7 +2,7 @@ $LOAD_PATH.unshift(::File.join(::File.dirname(__FILE__), "lib"))
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "spackle-ruby"
5
- s.version = "0.0.16"
5
+ s.version = "0.0.18"
6
6
  s.summary = "Spackle Ruby gem"
7
7
  s.description = "Spackle is the easiest way to integrate your Ruby app with Stripe Billing. " \
8
8
  "See https://www.spackle.so for details."
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
19
19
  }
20
20
 
21
21
  s.add_dependency "faraday", "~> 2.7"
22
+ s.add_dependency "faraday-net_http_persistent", '~> 2.0'
22
23
  s.add_dependency "nokogiri", "~> 1.13"
23
24
  s.add_dependency "stripe", "~> 8.3"
24
25
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spackle-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spackle
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: faraday-net_http_persistent
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: nokogiri
29
43
  requirement: !ruby/object:Gem::Requirement