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 +4 -4
- data/lib/tickethub/reseller/booking.rb +0 -1
- data/lib/tickethub/reseller/discount.rb +0 -1
- data/lib/tickethub/reseller/option.rb +0 -1
- data/lib/tickethub/reseller/payment.rb +0 -1
- data/lib/tickethub/reseller/refund.rb +0 -1
- data/lib/tickethub/reseller/tier.rb +0 -1
- data/lib/tickethub/resource.rb +2 -5
- data/lib/tickethub/supplier/booking.rb +0 -1
- data/lib/tickethub/supplier/discount.rb +0 -1
- data/lib/tickethub/supplier/option.rb +0 -1
- data/lib/tickethub/supplier/override.rb +0 -1
- data/lib/tickethub/supplier/payment.rb +0 -1
- data/lib/tickethub/supplier/refund.rb +0 -1
- data/lib/tickethub/supplier/tier.rb +0 -1
- data/lib/tickethub/supplier/transfer.rb +0 -1
- data/lib/tickethub/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b8193dfc2b77a350d42aaf2f8d7e315d280d186
|
4
|
+
data.tar.gz: 18a1c2d541a6f2d023a03f2552e403a086373546
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 065314ae1bde447af33e6bc868c179fda6d678b5c76e736b9257eaad0e34ef0598ff2e09cd9c6dbdc7e038b3f56a230adccac8b8804d2203230a666755559dab
|
7
|
+
data.tar.gz: 467e1eb49092bc0813adebe6ca399d69606b8cad2d913d7b5a0df79a7e0cbcb7a7f564347c774bd03a5b840ee6272665c561164211e694790b963376b010aa23
|
data/lib/tickethub/resource.rb
CHANGED
@@ -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
|
109
|
-
|
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
|
data/lib/tickethub/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|