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 +4 -4
- data/Gemfile +1 -0
- data/lib/spackle/stores/edge.rb +8 -2
- data/spackle.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32480a021112248d161f422541c003cbe176944ac291b40eb3bfd108bd2b8a64
|
4
|
+
data.tar.gz: a95dc99b789dd3640ba204b1ec789ed51e94507594cfa92f929fa87003fb46cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c32a949157acd858345046696e28754414b55716bcdefd057ed72023049a87697a8fa375d002745f3e4fedec7ff15c9db2fa6b7bf0768253150039bc0dad1f76
|
7
|
+
data.tar.gz: 18c1f836c78568b3a05ee87f03a60adfc254ee6516129320246ceac812947b4c7c5fe6beb29a3deabfa98caa0ecfbf2222c79d9caa228a0a1a461c630a8c6868
|
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.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."
|