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 +4 -4
- data/Gemfile +1 -0
- data/lib/spackle/stores/edge.rb +8 -2
- data/spackle.gemspec +2 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a5b9861dc2d74dffa6bc745b4bcc0bc7469b0ecd8e96fb593a2d5d3f590e090
|
4
|
+
data.tar.gz: 221a36058f512b719cfa413df10a4352baa94534ceeec737eea70d1fbbbebd54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca4c8170d6e4b076f62202ab5e17a47d75aadc8467380c41312d5d2ce59a97a9ab67bbb66edf7aa310c9d92e9744d31b77645473b2fc5f5182f534655d05ca36
|
7
|
+
data.tar.gz: 5460ac9cbcabdd41531d1165b33bde4979944a6afbda2ae44aa21df133e2da02ac3719f0ec636514acf037797263601526585a2f9a6e533fa4a94d23f84e26d6
|
data/Gemfile
CHANGED
data/lib/spackle/stores/edge.rb
CHANGED
@@ -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.
|
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.
|
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
|