tickethub 0.3.99 → 0.3.100
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tickethub/resource.rb +5 -5
- 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: a59ccda26358e32b3710ff0b2dbf66ed8f8aefcc
|
4
|
+
data.tar.gz: 76c4c7762b41a3992f0ce7449076d3e4b570e40a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85be0c6daf19b8ab7a06a4b21adfcea81f7efb944d01f7b1f3c64e549b732e452a70f4fa8b8e5c927ce2d8c3a18646707697c48e3cdd9dcdf5cf7ee6a6899629
|
7
|
+
data.tar.gz: 83ec0be57dbbb527f565e21d41c587b184e1b3a2d46b1d7cc5b43b2f1b09d13640f21d6abf1f019fd95335067811f28465cdd41fb1b485f6ff339c9ffcef2300
|
data/lib/tickethub/resource.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'money'
|
2
|
-
require '
|
2
|
+
require 'iso8601_basic'
|
3
3
|
require 'timezone'
|
4
4
|
require 'countries'
|
5
5
|
|
@@ -82,22 +82,22 @@ module Tickethub
|
|
82
82
|
case self.attributes[key][:type]
|
83
83
|
when :date
|
84
84
|
case value
|
85
|
-
when String then
|
85
|
+
when String then ISO8601Basic::Date.new(value)
|
86
86
|
else raise ArgumentError, 'invalid date value: ' + value
|
87
87
|
end
|
88
88
|
when :datetime
|
89
89
|
case value
|
90
|
-
when String then
|
90
|
+
when String then ISO8601Basic::DateTime.new(value)
|
91
91
|
else raise ArgumentError, 'invalid datetime value: ' + value
|
92
92
|
end
|
93
93
|
when :time
|
94
94
|
case value
|
95
|
-
when String then
|
95
|
+
when String then ISO8601Basic::Time.new(value)
|
96
96
|
else raise ArgumentError, 'invalid time value: ' + value
|
97
97
|
end
|
98
98
|
when :duration
|
99
99
|
case value
|
100
|
-
when String then
|
100
|
+
when String then ISO8601Basic::Duration.new(value)
|
101
101
|
else raise ArgumentError, 'invalid time value: ' + value
|
102
102
|
end
|
103
103
|
when :money
|
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.100
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oliver Morgan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|