cardmagic-etsy 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/etsy.gemspec +1 -1
- data/lib/etsy/transaction.rb +9 -3
- 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: f348161018340f9f6b225fd5f7e06e7edc02e4a0baae27ffe170d4a7040465ca
|
4
|
+
data.tar.gz: 178d44235ba1879284fd423993171a557c98dcc893f444ca787fc9d8a2b3d3ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b14a452f5802360b3c687174c59b94f835068002210ed7614b786055523dccee20a3068bedd7b2107d7a654547e635fcf1622e3305267f334e1962978840ca25
|
7
|
+
data.tar.gz: 3244cf1d29b414dbbb437e795c33f4b81e321acd5502d7de5da50e69e0c406b60a70001584d1a4a62e2d2d975d7b99b2cf5759edde550712c72146ae93c0a803
|
data/etsy.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
14
|
gem.name = "cardmagic-etsy"
|
15
15
|
gem.require_paths = ["lib"]
|
16
|
-
gem.version = "0.3.
|
16
|
+
gem.version = "0.3.9"
|
17
17
|
gem.license = 'MIT'
|
18
18
|
|
19
19
|
gem.required_rubygems_version = Gem::Requirement.new(">= 0") if gem.respond_to? :required_rubygems_version=
|
data/lib/etsy/transaction.rb
CHANGED
@@ -53,15 +53,21 @@ module Etsy
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def receipt
|
56
|
-
@receipt ||= Receipt.find(receipt_id)
|
56
|
+
@receipt ||= Receipt.find(receipt_id, oauth)
|
57
57
|
end
|
58
58
|
|
59
59
|
def buyer
|
60
|
-
@buyer ||= User.find(buyer_id)
|
60
|
+
@buyer ||= User.find(buyer_id, oauth)
|
61
61
|
end
|
62
62
|
|
63
63
|
def listing
|
64
|
-
@listing ||= Listing.find(listing_id)
|
64
|
+
@listing ||= Listing.find(listing_id, oauth)
|
65
|
+
end
|
66
|
+
|
67
|
+
private
|
68
|
+
|
69
|
+
def oauth
|
70
|
+
oauth = (token && secret) ? {:access_token => token, :access_secret => secret} : {}
|
65
71
|
end
|
66
72
|
|
67
73
|
end
|