etsy 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/etsy.rb +16 -1
- data/lib/etsy/version.rb +1 -1
- metadata +3 -2
data/lib/etsy.rb
CHANGED
@@ -63,11 +63,26 @@ module Etsy
|
|
63
63
|
class Error < RuntimeError; end
|
64
64
|
|
65
65
|
class << self
|
66
|
-
attr_accessor :api_key, :api_secret
|
67
66
|
attr_writer :callback_url
|
68
67
|
attr_writer :permission_scopes
|
69
68
|
end
|
70
69
|
|
70
|
+
# Make Etsy.api_key and Etsy.api_secret thread safe
|
71
|
+
#
|
72
|
+
def self.api_key
|
73
|
+
Thread.current[:etsy_api_key]
|
74
|
+
end
|
75
|
+
|
76
|
+
def self.api_key=(val)
|
77
|
+
Thread.current[:etsy_api_key] = val
|
78
|
+
end
|
79
|
+
def self.api_secret
|
80
|
+
Thread.current[:etsy_api_secret]
|
81
|
+
end
|
82
|
+
def self.api_secret=(val)
|
83
|
+
Thread.current[:etsy_api_secret] = val
|
84
|
+
end
|
85
|
+
|
71
86
|
SANDBOX_HOST = 'sandbox.openapi.etsy.com'
|
72
87
|
PRODUCTION_HOST = 'openapi.etsy.com'
|
73
88
|
|
data/lib/etsy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: etsy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-08
|
13
|
+
date: 2013-11-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|
@@ -283,3 +283,4 @@ test_files:
|
|
283
283
|
- test/unit/etsy/user_test.rb
|
284
284
|
- test/unit/etsy/verification_request_test.rb
|
285
285
|
- test/unit/etsy_test.rb
|
286
|
+
has_rdoc:
|