tickethub 0.3.40 → 0.3.41

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: df9ccd06828299e2d8c3cf99882ecdd2ca56aadb
4
- data.tar.gz: c4809319915abf1b6529afd6f6c296eeb8576bdd
3
+ metadata.gz: 4b8193dfc2b77a350d42aaf2f8d7e315d280d186
4
+ data.tar.gz: 18a1c2d541a6f2d023a03f2552e403a086373546
5
5
  SHA512:
6
- metadata.gz: 48b184fb76f8a9b018c5028179efc7e5e35d9e9212a97a67ea2f9754d6ca15c238c92c1ffb2fdb82d6bd73ae12f5f860b0b0a79e343286d8c8f1829fb51ddefa
7
- data.tar.gz: c5bec79e7b541cfe6d0d949a57c7f24a039711ecf344c5362bc23381b21875a3c05721507435540ee15353a2d57957e04d7f450e50acc09fe84a4e8ed49643a0
6
+ metadata.gz: 065314ae1bde447af33e6bc868c179fda6d678b5c76e736b9257eaad0e34ef0598ff2e09cd9c6dbdc7e038b3f56a230adccac8b8804d2203230a666755559dab
7
+ data.tar.gz: 467e1eb49092bc0813adebe6ca399d69606b8cad2d913d7b5a0df79a7e0cbcb7a7f564347c774bd03a5b840ee6272665c561164211e694790b963376b010aa23
@@ -31,7 +31,6 @@ module Tickethub
31
31
  attribute :tax, type: :money
32
32
  attribute :total, type: :money
33
33
 
34
- attribute :currency, type: :currency
35
34
  attribute :created_at, type: :datetime
36
35
  attribute :updated_at, type: :datetime
37
36
  attribute :cancelled_at, type: :datetime
@@ -6,7 +6,6 @@ module Tickethub
6
6
 
7
7
  attribute :amount, type: :money
8
8
 
9
- attribute :currency, type: :currency
10
9
  attribute :created_at, type: :datetime
11
10
  attribute :updated_at, type: :datetime
12
11
  end
@@ -10,6 +10,5 @@ module Tickethub
10
10
 
11
11
  attribute :time, type: :time
12
12
  attribute :total, type: :money
13
- attribute :currency, type: :currency
14
13
  end
15
14
  end
@@ -20,7 +20,6 @@ module Tickethub
20
20
  attribute :amount, type: :money
21
21
  attribute :refunded, type: :money
22
22
  attribute :balance, type: :money
23
- attribute :currency, type: :currency
24
23
  attribute :refunded_at, type: :datetime
25
24
  attribute :confirmed_at, type: :datetime
26
25
 
@@ -9,7 +9,6 @@ module Tickethub
9
9
  association :payment, Reseller::Payment
10
10
 
11
11
  attribute :amount, type: :money
12
- attribute :currency, type: :currency
13
12
 
14
13
  attribute :created_at, type: :datetime
15
14
  attribute :updated_at, type: :datetime
@@ -9,7 +9,6 @@ module Tickethub
9
9
  association :product, Reseller::Product
10
10
 
11
11
  attribute :price, type: :money
12
- attribute :currency, type: :currency
13
12
 
14
13
  attribute :notice, type: :duration
15
14
  attribute :period, type: :duration
@@ -101,12 +101,9 @@ module Tickethub
101
101
  else raise ArgumentError, 'invalid time value: ' + value
102
102
  end
103
103
  when :money
104
- currency = Money::Currency.new(object.currency)
105
- raise ArgumentError, 'invalid money currency' if currency.blank?
106
-
107
104
  case value
108
- when Fixnum then Money.new(value, currency)
109
- when Numeric, String
105
+ when String
106
+ currency, value = value.split ' '
110
107
  currency = Money::Currency.wrap(currency)
111
108
  Money.new(value.to_d * currency.subunit_to_unit, currency)
112
109
  else raise ArgumentError, 'invalid money value: ' + value
@@ -43,7 +43,6 @@ module Tickethub
43
43
  attribute :tax, type: :money
44
44
  attribute :total, type: :money
45
45
 
46
- attribute :currency, type: :currency
47
46
  attribute :created_at, type: :datetime
48
47
  attribute :updated_at, type: :datetime
49
48
  attribute :cancelled_at, type: :datetime
@@ -10,7 +10,6 @@ module Tickethub
10
10
 
11
11
  attribute :amount, type: :money
12
12
 
13
- attribute :currency, type: :currency
14
13
  attribute :created_at, type: :datetime
15
14
  attribute :updated_at, type: :datetime
16
15
  end
@@ -20,6 +20,5 @@ module Tickethub
20
20
 
21
21
  attribute :time, type: :time
22
22
  attribute :total, type: :money
23
- attribute :currency, type: :currency
24
23
  end
25
24
  end
@@ -5,7 +5,6 @@ module Tickethub
5
5
  path '/supplier/overrides'
6
6
 
7
7
  attribute :price, type: :money
8
- attribute :currency, type: :currency
9
8
 
10
9
  attribute :notice, type: :duration
11
10
  attribute :period, type: :duration
@@ -26,7 +26,6 @@ module Tickethub
26
26
  attribute :balance, type: :money
27
27
  attribute :amount, type: :money
28
28
  attribute :refunded, type: :money
29
- attribute :currency, type: :currency
30
29
  attribute :refunded_at, type: :datetime
31
30
  attribute :confirmed_at, type: :datetime
32
31
 
@@ -16,7 +16,6 @@ module Tickethub
16
16
  collection :charges, Supplier::Charge
17
17
 
18
18
  attribute :amount, type: :money
19
- attribute :currency, type: :currency
20
19
 
21
20
  attribute :created_at, type: :datetime
22
21
  attribute :updated_at, type: :datetime
@@ -9,7 +9,6 @@ module Tickethub
9
9
  association :product, Supplier::Product
10
10
 
11
11
  attribute :price, type: :money
12
- attribute :currency, type: :currency
13
12
 
14
13
  attribute :notice, type: :duration
15
14
  attribute :period, type: :duration
@@ -13,7 +13,6 @@ module Tickethub
13
13
  collection :adjustments, Supplier::Adjustment
14
14
 
15
15
  attribute :amount, type: :money
16
- attribute :currency, type: :currency
17
16
 
18
17
  attribute :date, type: :date
19
18
  attribute :created_at, type: :datetime
@@ -1,3 +1,3 @@
1
1
  module Tickethub
2
- VERSION = '0.3.40'
2
+ VERSION = '0.3.41'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tickethub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.40
4
+ version: 0.3.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Morgan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-14 00:00:00.000000000 Z
11
+ date: 2015-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler