spackle-ruby 0.0.16 → 0.0.17

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: 32480a021112248d161f422541c003cbe176944ac291b40eb3bfd108bd2b8a64
4
+ data.tar.gz: a95dc99b789dd3640ba204b1ec789ed51e94507594cfa92f929fa87003fb46cf
5
5
  SHA512:
6
- metadata.gz: 7fa9cb1dcd0df67dde5d2466f0ddecd37c727038c018408c4473836dc1aa5ea3de9dca87e054256b412d393578027f861967a50104f7a12ac02bd4694747196d
7
- data.tar.gz: a98c28187be567457ff71b9c61728aa2764cb805f950fddca6899c37b39dca4e19ee1b0db39e202c164f5ffed1a711f4a804ba471a01224bb024dadf52a26a89
6
+ metadata.gz: c32a949157acd858345046696e28754414b55716bcdefd057ed72023049a87697a8fa375d002745f3e4fedec7ff15c9db2fa6b7bf0768253150039bc0dad1f76
7
+ data.tar.gz: 18c1f836c78568b3a05ee87f03a60adfc254ee6516129320246ceac812947b4c7c5fe6beb29a3deabfa98caa0ecfbf2222c79d9caa228a0a1a461c630a8c6868
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.17"
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."
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.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spackle