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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ba4c9c0770a95b599aec54130ea92cce39d74036bf532c84be44c9aba432f5d
4
- data.tar.gz: 8ca46daf36bcfdb9c10a30530eb75dec5fd7f90434c8b340c41bb58886433e2d
3
+ metadata.gz: f348161018340f9f6b225fd5f7e06e7edc02e4a0baae27ffe170d4a7040465ca
4
+ data.tar.gz: 178d44235ba1879284fd423993171a557c98dcc893f444ca787fc9d8a2b3d3ec
5
5
  SHA512:
6
- metadata.gz: 949b6c268bbe5c72d0d60fe1723f61c36117c34104b6a01cdf9ce942ba8b00d8380484fef066454f1bf67f98db078b449eacc4c79970fde043703bd928b81610
7
- data.tar.gz: 8f994e5024f6d602874dd51701164dcb448ca8c48b893f0d0ae138bd02c5216c03f07fcccb2985db562f300e188cce40b372c2ce260cc42a323f1441def8748b
6
+ metadata.gz: b14a452f5802360b3c687174c59b94f835068002210ed7614b786055523dccee20a3068bedd7b2107d7a654547e635fcf1622e3305267f334e1962978840ca25
7
+ data.tar.gz: 3244cf1d29b414dbbb437e795c33f4b81e321acd5502d7de5da50e69e0c406b60a70001584d1a4a62e2d2d975d7b99b2cf5759edde550712c72146ae93c0a803
@@ -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.8"
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=
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cardmagic-etsy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Reagan