mercadolibre 0.8.0 → 0.8.1

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
  SHA1:
3
- metadata.gz: 708793ddaed462f4cf427fcda6ee24be535d4fbf
4
- data.tar.gz: a57c90e75cca9786ed727a058e9ebfed401f3347
3
+ metadata.gz: 8ab451fc8a6d2632fbefb9f49d5c224d56d078ac
4
+ data.tar.gz: 5b92cb1c5668fd031aa800dfc44f3035bd6f655f
5
5
  SHA512:
6
- metadata.gz: c107e184972090b735c937d6ba5865dd17f820665620c124d46c75a9380ccf358fe2dc34bcd9f9e4aca60b18b6038959c62727410ae1857f45cd596790fabdf9
7
- data.tar.gz: 544c96a1aa372407eb69d032bb6c0078f4818c681e893595e956cf1feb057751c1741aff9099eeb100d60ad75bbb8acaa950075269e47af2cbfc6ab4018a4dd2
6
+ metadata.gz: 7a6e6349941ced5ba7350bf8b0782682d1d0023414642af84c8c41c81fe92ff05495160c5738a202011b5408f5fe7348f62276ff16987e6042811942809bdef3
7
+ data.tar.gz: a03c9be048ca542cf1f5c89f73fe6cacce21e206e9d87546520aea3335a0c56ee2eefee95dc6e556d1c4a3a7c30c3b7bbd53d4414710356c0fe46fc567caaba4
data/CHANGELOG.md CHANGED
@@ -137,3 +137,7 @@
137
137
  ## v0.8.0
138
138
 
139
139
  * Added attributes to orders, users, added methods to items search
140
+
141
+ ## v0.8.1
142
+
143
+ * Added order fields
@@ -4,8 +4,8 @@ module Mercadolibre
4
4
  def self.attr_list
5
5
  [:id, :status, :status_detail, :date_created, :date_closed, :last_updated,
6
6
  :order_items, :currency_id, :buyer, :seller, :payments, :feedback, :shipping,
7
- :tags, :mediations, :coupon, :total_amount, :total_amount_with_shipping,
8
- :paid_amount]
7
+ :tags, :mediations, :comments, :expiration_date, :coupon, :total_amount,
8
+ :total_amount_with_shipping, :paid_amount]
9
9
  end
10
10
 
11
11
  attr_reader *attr_list
@@ -26,7 +26,7 @@ module Mercadolibre
26
26
  self.send("#{k}=", User.new(v)) unless v.nil?
27
27
  elsif k.to_s == 'mediations'
28
28
  self.mediations = v.map { |x| Mediation.new(x) } unless v.nil?
29
- elsif ['date_created', 'date_closed', 'last_updated'].include?(k.to_s)
29
+ elsif ['date_created', 'date_closed', 'last_updated', 'expiration_date'].include?(k.to_s)
30
30
  self.send("#{k}=", Time.parse(v)) unless v.nil?
31
31
  else
32
32
  self.send("#{k}=", v) if self.respond_to?(k)
@@ -1,3 +1,3 @@
1
1
  module Mercadolibre
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mercadolibre
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-05 00:00:00.000000000 Z
11
+ date: 2015-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler