tindie_api 0.1.10 → 0.1.11

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: e7f2772b5cbd8199e679fee7a49471f9736a47c5403134561071e41d2c104991
4
- data.tar.gz: b1bceb5dab129206977631fba20b0ed90b80173f7fafccaa58303aa2983febb3
3
+ metadata.gz: 36daa88fb4fb4d1f4db8b756fed22867831dcbb78e41bdba37de2b7d27f38c92
4
+ data.tar.gz: aabeb3fdbf7fd8196f6ef426d4254581999f99f2b1980efbb83542dd164e36ff
5
5
  SHA512:
6
- metadata.gz: 70485fff29c3b8f7ed10d722102a19b5e71ff6cf9ea62621f3aee9025fa1f5bc93479d09349164d6502bed3373c6fb0fb4e09a55a9cae3bcafbe59d3d6d87cf2
7
- data.tar.gz: 4f75114e6970805f7ee15c2dcd05086e941cb856c703d5061e0ab89c8d9ba2c27e51c1c3d3bd9444fdbec4ebbf5c01918b88f7d2200ef900b131d6290ea19633
6
+ metadata.gz: d7f25354104e21579d7982124b746041f9e0fb6178cd6f4412e4f480c3438e3ca31df521a13c805d285a1bcf497af8466c89efe1acd08db1be87c19f68df86a6
7
+ data.tar.gz: 264a53ac6ae677d480a9b98273ad5a8e80d4043d040a957e1ddb71671b0ffb2f970344ff5fb4792a2fd2c96fcfb8c89c97158d2d72c98df5c9b57ba7cf5f25a6
@@ -1,3 +1,3 @@
1
1
  module TindieApi
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
data/lib/tindie_api.rb CHANGED
@@ -32,10 +32,9 @@ module TindieApi
32
32
  def initialize(data)
33
33
  @json_parsed = data
34
34
  @date = DateTime.parse(data['date'])
35
- @date_shipped = DateTime.parse(data['date_shipped'])
36
35
  @products = data['items'].map { |i| TindieProduct.new(i) }
37
- @shipped = data['shipped']
38
36
  @refunded = data['refunded']
37
+ @shipped = data['shipped']
39
38
  @order_number = data['number']
40
39
  @recipient_email = data['email']
41
40
  @recipient_phone = data['phone']
@@ -58,6 +57,7 @@ module TindieApi
58
57
  @tindie_fee = data['total_tindiefee']
59
58
  @cc_fee = data['total_ccfee']
60
59
  if @shipped
60
+ @date_shipped = DateTime.parse(data['date_shipped'])
61
61
  @tracking_code = data['tracking_code']
62
62
  @tracking_url = data['tracking_url']
63
63
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tindie_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spencer Owen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-28 00:00:00.000000000 Z
11
+ date: 2025-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler