activerecord-time 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/lib/activerecord-time/version.rb +1 -1
- data/lib/time_of_day.rb +2 -0
- data/matrix_test.rb +1 -1
- metadata +19 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b109ca8028703d50b73bfd9a66608c2669e9f913
|
4
|
+
data.tar.gz: fceb1381dd5c0012c3412225f0ea666a5040b692
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e037eefad7123564ec01170a4af564a5bcb0b8576109088ecaeb76758dc3d499ae15a23d16bf5ba18ff73c9a3b2b8db4f4894a6fcb16d537539ae225b01c12a
|
7
|
+
data.tar.gz: 10802ff538c716a5bf7aa31668570cddc0c7cbbe91254ea5b9166633bf84d54e9e44f663b34b63dcc8e8b4500c3dea0c2052428cc03794d82d2636827ea7e0c2
|
data/.travis.yml
CHANGED
@@ -2,7 +2,7 @@ language: ruby
|
|
2
2
|
sudo: false
|
3
3
|
jdk:
|
4
4
|
- oraclejdk8
|
5
|
-
before_install: gem
|
5
|
+
before_install: gem install bundler # TODO(uwe): https://github.com/travis-ci/travis-ci/issues/9383
|
6
6
|
rvm:
|
7
7
|
# - ruby-2.5.1
|
8
8
|
- ruby-2.4.4
|
data/lib/time_of_day.rb
CHANGED
@@ -44,6 +44,7 @@ class TimeOfDay
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def self.parse_parts(string)
|
47
|
+
return nil if string.blank?
|
47
48
|
return unless /^(?<hours>\d{1,2}):?(?<minutes>\d{2})?(?::(?<seconds>\d{1,2}))?$/ =~ string.strip
|
48
49
|
[hours.to_i, minutes.to_i, seconds.to_i]
|
49
50
|
end
|
@@ -65,6 +66,7 @@ class TimeOfDay
|
|
65
66
|
end
|
66
67
|
|
67
68
|
def <=>(other)
|
69
|
+
return -1 unless other
|
68
70
|
other_tod = if other.is_a?(TimeOfDay)
|
69
71
|
other
|
70
72
|
elsif other.respond_to?(:time_of_day)
|
data/matrix_test.rb
CHANGED
@@ -33,7 +33,7 @@ def use_gemfile(ruby, gemfile, update_gemfiles)
|
|
33
33
|
puts '$' * 80
|
34
34
|
end
|
35
35
|
|
36
|
-
bad_variants = (travis['matrix']['exclude'].to_a + travis['matrix']['
|
36
|
+
bad_variants = (travis['matrix']['exclude'].to_a + travis['matrix']['allow_failures'].to_a)
|
37
37
|
|
38
38
|
travis['rvm'].each do |ruby|
|
39
39
|
next if ruby =~ /head/ # ruby-install does not support HEAD installation
|
metadata
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-time
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Uwe Kubosch
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2018-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: activerecord
|
14
15
|
requirement: !ruby/object:Gem::Requirement
|
15
16
|
requirements:
|
16
17
|
- - ">="
|
@@ -19,9 +20,8 @@ dependencies:
|
|
19
20
|
- - "<"
|
20
21
|
- !ruby/object:Gem::Version
|
21
22
|
version: '6'
|
22
|
-
name: activerecord
|
23
|
-
prerelease: false
|
24
23
|
type: :runtime
|
24
|
+
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
@@ -31,84 +31,84 @@ dependencies:
|
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '6'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
+
name: pg
|
34
35
|
requirement: !ruby/object:Gem::Requirement
|
35
36
|
requirements:
|
36
37
|
- - ">="
|
37
38
|
- !ruby/object:Gem::Version
|
38
39
|
version: '0'
|
39
|
-
name: activerecord-jdbcpostgresql-adapter
|
40
|
-
prerelease: false
|
41
40
|
type: :development
|
41
|
+
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
+
name: sqlite3
|
48
49
|
requirement: !ruby/object:Gem::Requirement
|
49
50
|
requirements:
|
50
51
|
- - ">="
|
51
52
|
- !ruby/object:Gem::Version
|
52
53
|
version: '0'
|
53
|
-
name: activerecord-jdbcsqlite3-adapter
|
54
|
-
prerelease: false
|
55
54
|
type: :development
|
55
|
+
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
|
+
name: minitest-reporters
|
62
63
|
requirement: !ruby/object:Gem::Requirement
|
63
64
|
requirements:
|
64
65
|
- - ">="
|
65
66
|
- !ruby/object:Gem::Version
|
66
67
|
version: '0'
|
67
|
-
name: minitest-reporters
|
68
|
-
prerelease: false
|
69
68
|
type: :development
|
69
|
+
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
|
+
name: rake
|
76
77
|
requirement: !ruby/object:Gem::Requirement
|
77
78
|
requirements:
|
78
79
|
- - ">="
|
79
80
|
- !ruby/object:Gem::Version
|
80
81
|
version: '0'
|
81
|
-
name: rake
|
82
|
-
prerelease: false
|
83
82
|
type: :development
|
83
|
+
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - ">="
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
|
+
name: rubocop
|
90
91
|
requirement: !ruby/object:Gem::Requirement
|
91
92
|
requirements:
|
92
93
|
- - ">="
|
93
94
|
- !ruby/object:Gem::Version
|
94
95
|
version: '0'
|
95
|
-
name: rubocop
|
96
|
-
prerelease: false
|
97
96
|
type: :development
|
97
|
+
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - ">="
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
|
+
name: simplecov
|
104
105
|
requirement: !ruby/object:Gem::Requirement
|
105
106
|
requirements:
|
106
107
|
- - ">="
|
107
108
|
- !ruby/object:Gem::Version
|
108
109
|
version: '0'
|
109
|
-
name: simplecov
|
110
|
-
prerelease: false
|
111
110
|
type: :development
|
111
|
+
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
@@ -157,7 +157,7 @@ homepage: https://github.com/donv/activerecord-time
|
|
157
157
|
licenses:
|
158
158
|
- MIT
|
159
159
|
metadata: {}
|
160
|
-
post_install_message:
|
160
|
+
post_install_message:
|
161
161
|
rdoc_options: []
|
162
162
|
require_paths:
|
163
163
|
- lib
|
@@ -172,9 +172,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: '0'
|
174
174
|
requirements: []
|
175
|
-
rubyforge_project:
|
175
|
+
rubyforge_project:
|
176
176
|
rubygems_version: 2.6.14.1
|
177
|
-
signing_key:
|
177
|
+
signing_key:
|
178
178
|
specification_version: 4
|
179
179
|
summary: A handler for storing TimeOfDay objects in ActiveRecord objects as sql time
|
180
180
|
values.
|