cardmagic-etsy 0.3.5 → 0.3.6

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: d5f5669efeefa71681adeae2718dca56afc37c9802b96734c55ffd905d166b86
4
- data.tar.gz: 854ded82dd4c0fec5951967106b0b6bcf1ffe38c3f8a4cbd1b81b7f38e27be6b
3
+ metadata.gz: 6f41bb7bc9d10fe76e2326b9478471e8696ee686f45125ce495b814e92ba9b64
4
+ data.tar.gz: 28f7488b3300e7603a57ddf5695f36cd8140e1077ed93ed9cf89c29ed8c1e737
5
5
  SHA512:
6
- metadata.gz: 9bb983c8424b02719c844c78e6fe20ece46782d61f6f70aa74401cfef5ca67b9d576a5fc65a9623e7ee595c5949bd03c483b225f5bc00712c1a3b51d7b9cb032
7
- data.tar.gz: a535540c5ed50cd8901f7dca76b4158545a5f92b3b574079a6d2a6693b5d0e3554810f4b171135cda6652de8c017914c90072d1eaa30e680a7c3da27191b0e69
6
+ metadata.gz: a1d5dfa7d63fca86ce47fd2f2461a217709c90c59016f3efce4faf42c45c4c250f1f74b2d0508ebc51e5f7a57176de22ab419f8d2a6ce5237a34be4bc2df1b7e
7
+ data.tar.gz: aafd1bacedb4c95758d3dc4d05cb1169750d62d1117f0c7d297306d8c6c7ad83ea749c978ee4445f41db2502adf9f5ad6eaaed536f43ddbe4e4ffd3ca432fc94
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.5"
16
+ gem.version = "0.3.6"
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/listing.rb CHANGED
@@ -38,6 +38,7 @@ module Etsy
38
38
  attribute :id, :from => :listing_id
39
39
  attribute :view_count, :from => :views
40
40
  attribute :created, :from => :creation_tsz
41
+ attribute :original_created, :from => :original_creation_tsz
41
42
  attribute :modified, :from => :last_modified_tsz
42
43
  attribute :currency, :from => :currency_code
43
44
  attribute :ending, :from => :ending_tsz
@@ -47,8 +48,7 @@ module Etsy
47
48
  :tags, :materials, :hue, :saturation, :brightness, :is_black_and_white,
48
49
  :featured_rank, :occasion, :num_favorers, :user_id,
49
50
  :shipping_template_id, :who_made, :when_made,
50
- :original_creation_tsz, :style, :category_path,
51
- :taxonomy_id, :taxonomy_attributes
51
+ :style, :category_path, :taxonomy_id, :taxonomy_attributes
52
52
 
53
53
  association :image, :from => 'Images'
54
54
 
@@ -214,6 +214,11 @@ module Etsy
214
214
  Time.at(created)
215
215
  end
216
216
 
217
+ # Time that this listing was originally created
218
+ def original_created_at
219
+ Time.at(original_created)
220
+ end
221
+
217
222
  # Time that this listing was last modified
218
223
  #
219
224
  def modified_at
@@ -56,5 +56,9 @@ module Etsy
56
56
  @buyer ||= User.find(buyer_id)
57
57
  end
58
58
 
59
+ def listing
60
+ @listing ||= Listing.find(listing_id)
61
+ end
62
+
59
63
  end
60
64
  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.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Reagan