activerecord-time 0.15.0 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +69 -0
- data/.rubocop.yml +2 -1
- data/.rubocop_todo.yml +60 -12
- data/.travis.yml +4 -3
- data/activerecord-time.gemspec +2 -2
- data/gemfiles/ar61.gemfile +3 -0
- data/gemfiles/common.gemfile +1 -1
- data/lib/activerecord-time/version.rb +1 -1
- data/lib/time_of_day/core_ext.rb +6 -0
- data/lib/time_of_day.rb +25 -3
- data/test/database.yml +1 -1
- data/test/test_helper.rb +1 -3
- data/test/time_of_day_test.rb +29 -1
- metadata +15 -16
- data/gemfiles/ar51.gemfile.lock +0 -75
- data/gemfiles/ar52.gemfile.lock +0 -75
- data/gemfiles/ar60.gemfile.lock +0 -58
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38e31e5791113c1c15833344fc7a243a87bacc1f35cc6fdbeb15cbe7edf7daf4
|
4
|
+
data.tar.gz: 58990d314938ba0786cf4733c1616c50757d5e21cb6e37153b207fff4d5d5b42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bfd12648f4877017b8296a35dfebca5ae1ac9157bc6d63f35354450b3953a950d6a99fa38d477ffe01bf363b459b3010fe6d0f17589ee744e0b8b4b542c1210
|
7
|
+
data.tar.gz: fa6e24e7993c666265de8e82dee024f66e18878141d31c5862c0602ba4096854601f81af6253875cf7f81505ceac2de1e932d36dde97423db825ba6943517a29
|
@@ -0,0 +1,69 @@
|
|
1
|
+
name: Test
|
2
|
+
on:
|
3
|
+
workflow_dispatch:
|
4
|
+
inputs:
|
5
|
+
logLevel:
|
6
|
+
description: 'Log level'
|
7
|
+
required: true
|
8
|
+
default: 'warning'
|
9
|
+
tags:
|
10
|
+
description: 'Test scenario tags'
|
11
|
+
required: false
|
12
|
+
push:
|
13
|
+
branches: [ master ]
|
14
|
+
pull_request:
|
15
|
+
branches: [ master ]
|
16
|
+
|
17
|
+
env:
|
18
|
+
LANGUAGE: nb
|
19
|
+
PGUSER: postgres
|
20
|
+
PGPASSWORD: password
|
21
|
+
RAILS_ENV: test
|
22
|
+
|
23
|
+
jobs:
|
24
|
+
Rubocop:
|
25
|
+
runs-on: ubuntu-20.04
|
26
|
+
steps:
|
27
|
+
- uses: actions/checkout@v2
|
28
|
+
- uses: ruby/setup-ruby@v1
|
29
|
+
with:
|
30
|
+
ruby-version: '3.0'
|
31
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
32
|
+
- name: Rubocop
|
33
|
+
run: bundle exec rubocop --auto-correct-all
|
34
|
+
Test:
|
35
|
+
runs-on: ubuntu-20.04
|
36
|
+
services:
|
37
|
+
postgres:
|
38
|
+
image: postgres
|
39
|
+
env:
|
40
|
+
POSTGRES_PASSWORD: password
|
41
|
+
ports:
|
42
|
+
- 5432:5432
|
43
|
+
# needed because the postgres container does not provide a healthcheck
|
44
|
+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
45
|
+
strategy:
|
46
|
+
fail-fast: false
|
47
|
+
matrix:
|
48
|
+
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
|
49
|
+
ruby: [ 2.6, 2.7, '3.0', jruby, truffleruby ]
|
50
|
+
gemfile: [ ar61, ar60, ar52, ar51 ]
|
51
|
+
adapter: [ postgresql, sqlite3 ]
|
52
|
+
exclude:
|
53
|
+
- ruby: '3.0'
|
54
|
+
gemfile: ar52
|
55
|
+
- ruby: '3.0'
|
56
|
+
gemfile: ar51
|
57
|
+
- ruby: jruby
|
58
|
+
adapter: sqlite3
|
59
|
+
env:
|
60
|
+
ADAPTER: ${{ matrix.adapter }}
|
61
|
+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
|
62
|
+
steps:
|
63
|
+
- uses: actions/checkout@v2
|
64
|
+
- uses: ruby/setup-ruby@v1
|
65
|
+
with:
|
66
|
+
ruby-version: ${{ matrix.ruby }}
|
67
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
68
|
+
- name: Rake test
|
69
|
+
run: bundle exec rake test
|
data/.rubocop.yml
CHANGED
@@ -2,11 +2,12 @@ inherit_from: .rubocop_todo.yml
|
|
2
2
|
require:
|
3
3
|
- rubocop-performance
|
4
4
|
- rubocop-rails
|
5
|
+
- rubocop-rake
|
5
6
|
|
6
7
|
AllCops:
|
7
|
-
TargetRubyVersion: 2.4
|
8
8
|
DisplayCopNames: true
|
9
9
|
DisplayStyleGuide: true
|
10
|
+
NewCops: enable
|
10
11
|
Include:
|
11
12
|
- '**/Gemfile'
|
12
13
|
- '**/Rakefile'
|
data/.rubocop_todo.yml
CHANGED
@@ -1,46 +1,72 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2021-11-25 11:12:32 UTC using RuboCop version 1.23.0.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
-
# Offense count:
|
9
|
+
# Offense count: 1
|
10
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
11
|
+
Exclude:
|
12
|
+
- 'test/time_of_day_test.rb'
|
13
|
+
|
14
|
+
# Offense count: 1
|
15
|
+
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
|
16
|
+
Lint/DuplicateBranch:
|
17
|
+
Exclude:
|
18
|
+
- 'lib/time_of_day.rb'
|
19
|
+
|
20
|
+
# Offense count: 3
|
21
|
+
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
|
10
22
|
Metrics/AbcSize:
|
11
23
|
Max: 31
|
12
24
|
|
13
25
|
# Offense count: 1
|
14
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
15
|
-
#
|
26
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
27
|
+
# IgnoredMethods: refine
|
16
28
|
Metrics/BlockLength:
|
17
29
|
Max: 28
|
18
30
|
|
19
|
-
# Offense count:
|
20
|
-
# Configuration parameters: CountComments.
|
31
|
+
# Offense count: 2
|
32
|
+
# Configuration parameters: CountComments, CountAsOne.
|
21
33
|
Metrics/ClassLength:
|
22
|
-
Max:
|
34
|
+
Max: 184
|
23
35
|
|
24
36
|
# Offense count: 1
|
37
|
+
# Configuration parameters: IgnoredMethods.
|
25
38
|
Metrics/CyclomaticComplexity:
|
26
39
|
Max: 10
|
27
40
|
|
28
|
-
# Offense count:
|
29
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
41
|
+
# Offense count: 3
|
42
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
30
43
|
Metrics/MethodLength:
|
31
44
|
Max: 13
|
32
45
|
|
33
46
|
# Offense count: 1
|
47
|
+
# Configuration parameters: IgnoredMethods.
|
34
48
|
Metrics/PerceivedComplexity:
|
35
49
|
Max: 11
|
36
50
|
|
37
51
|
# Offense count: 2
|
38
|
-
# Configuration parameters: EnforcedStyle.
|
52
|
+
# Configuration parameters: EnforcedStyle, AllowToTime.
|
39
53
|
# SupportedStyles: strict, flexible
|
40
54
|
Rails/Date:
|
41
55
|
Exclude:
|
42
56
|
- 'lib/time_of_day.rb'
|
43
57
|
|
58
|
+
# Offense count: 1
|
59
|
+
# Cop supports --auto-correct.
|
60
|
+
Rails/WhereEquals:
|
61
|
+
Exclude:
|
62
|
+
- 'test/time_of_day_test.rb'
|
63
|
+
|
64
|
+
# Offense count: 1
|
65
|
+
# Cop supports --auto-correct.
|
66
|
+
Rails/WhereNot:
|
67
|
+
Exclude:
|
68
|
+
- 'test/time_of_day_test.rb'
|
69
|
+
|
44
70
|
# Offense count: 2
|
45
71
|
# Cop supports --auto-correct.
|
46
72
|
Security/YAMLLoad:
|
@@ -49,15 +75,37 @@ Security/YAMLLoad:
|
|
49
75
|
- 'test/time_of_day_test.rb'
|
50
76
|
|
51
77
|
# Offense count: 1
|
52
|
-
# Configuration parameters: .
|
78
|
+
# Configuration parameters: AllowModifiersOnSymbols.
|
53
79
|
# SupportedStyles: inline, group
|
54
80
|
Style/AccessModifierDeclarations:
|
55
81
|
EnforcedStyle: inline
|
56
82
|
|
83
|
+
# Offense count: 3
|
84
|
+
# Cop supports --auto-correct.
|
85
|
+
# Configuration parameters: EnforcedStyle.
|
86
|
+
# SupportedStyles: separated, grouped
|
87
|
+
Style/AccessorGrouping:
|
88
|
+
Exclude:
|
89
|
+
- 'lib/time_of_day.rb'
|
90
|
+
|
57
91
|
# Offense count: 1
|
58
92
|
# Cop supports --auto-correct.
|
59
|
-
# Configuration parameters:
|
93
|
+
# Configuration parameters: EnforcedStyle.
|
60
94
|
# SupportedStyles: nested, compact
|
61
95
|
Style/ClassAndModuleChildren:
|
62
96
|
Exclude:
|
63
97
|
- 'lib/time_of_day/core_ext.rb'
|
98
|
+
|
99
|
+
# Offense count: 1
|
100
|
+
# Configuration parameters: AllowedMethods.
|
101
|
+
# AllowedMethods: respond_to_missing?
|
102
|
+
Style/OptionalBooleanParameter:
|
103
|
+
Exclude:
|
104
|
+
- 'lib/time_of_day.rb'
|
105
|
+
|
106
|
+
# Offense count: 5
|
107
|
+
# Cop supports --auto-correct.
|
108
|
+
# Configuration parameters: Mode.
|
109
|
+
Style/StringConcatenation:
|
110
|
+
Exclude:
|
111
|
+
- 'test/test_helper.rb'
|
data/.travis.yml
CHANGED
@@ -4,13 +4,15 @@ cache: bundler
|
|
4
4
|
services:
|
5
5
|
- postgresql
|
6
6
|
jdk:
|
7
|
-
-
|
7
|
+
- openjdk11
|
8
8
|
rvm:
|
9
|
+
- ruby-3.0
|
9
10
|
- ruby-2.7
|
10
11
|
- ruby-2.6
|
11
12
|
- ruby-2.5
|
12
13
|
- jruby
|
13
14
|
gemfile:
|
15
|
+
- gemfiles/ar61.gemfile
|
14
16
|
- gemfiles/ar60.gemfile
|
15
17
|
- gemfiles/ar52.gemfile
|
16
18
|
- gemfiles/ar51.gemfile
|
@@ -24,5 +26,4 @@ matrix:
|
|
24
26
|
allow_failures:
|
25
27
|
- rvm: jruby
|
26
28
|
env: ADAPTER="sqlite3"
|
27
|
-
- rvm:
|
28
|
-
env: ADAPTER="sqlite3"
|
29
|
+
- rvm: ruby-2.7
|
data/activerecord-time.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
|
|
23
23
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
24
24
|
gem.require_paths = %w[lib]
|
25
25
|
|
26
|
-
gem.add_runtime_dependency 'activerecord', '>=5.1', '<
|
26
|
+
gem.add_runtime_dependency 'activerecord', '>=5.1', '<7'
|
27
27
|
|
28
28
|
if defined? JRUBY_VERSION
|
29
29
|
gem.add_development_dependency 'activerecord-jdbcpostgresql-adapter'
|
@@ -32,10 +32,10 @@ Gem::Specification.new do |gem|
|
|
32
32
|
gem.add_development_dependency 'pg'
|
33
33
|
gem.add_development_dependency 'sqlite3'
|
34
34
|
end
|
35
|
-
gem.add_development_dependency 'minitest-reporters'
|
36
35
|
gem.add_development_dependency 'rake'
|
37
36
|
gem.add_development_dependency 'rubocop'
|
38
37
|
gem.add_development_dependency 'rubocop-performance'
|
39
38
|
gem.add_development_dependency 'rubocop-rails'
|
39
|
+
gem.add_development_dependency 'rubocop-rake'
|
40
40
|
gem.add_development_dependency 'simplecov'
|
41
41
|
end
|
data/gemfiles/common.gemfile
CHANGED
data/lib/time_of_day/core_ext.rb
CHANGED
data/lib/time_of_day.rb
CHANGED
@@ -87,9 +87,16 @@ class TimeOfDay
|
|
87
87
|
end
|
88
88
|
|
89
89
|
def -(other)
|
90
|
-
|
91
|
-
|
92
|
-
|
90
|
+
case other
|
91
|
+
when TimeOfDay
|
92
|
+
t1 = Time.local(0, 1, 1, hour, minute, second) # rubocop: disable Rails/TimeZone
|
93
|
+
t2 = Time.local(0, 1, 1, other.hour, other.minute, other.second) # rubocop: disable Rails/TimeZone
|
94
|
+
(t1 - t2).seconds
|
95
|
+
when Numeric
|
96
|
+
self.+(-other)
|
97
|
+
else
|
98
|
+
raise "Illegal argument: #{other.inspect}"
|
99
|
+
end
|
93
100
|
end
|
94
101
|
|
95
102
|
def <=>(other)
|
@@ -106,6 +113,17 @@ class TimeOfDay
|
|
106
113
|
to_a <=> [other_tod.hour, other_tod.minute, other_tod.second]
|
107
114
|
end
|
108
115
|
|
116
|
+
# Referring to the same H/M/S makes objects equal.
|
117
|
+
# and we only want one hash key.
|
118
|
+
def hash
|
119
|
+
@hour.hash ^ @minute.hash ^ @second.hash
|
120
|
+
end
|
121
|
+
|
122
|
+
# Referring to the same H/M/S makes objects equal.
|
123
|
+
def eql?(other)
|
124
|
+
hash == other.hash
|
125
|
+
end
|
126
|
+
|
109
127
|
def strftime(format)
|
110
128
|
on(Date.today).strftime(format)
|
111
129
|
end
|
@@ -120,6 +138,10 @@ class TimeOfDay
|
|
120
138
|
"#{@hour.inspect}:#{@minute.inspect}:#{@second.inspect}"
|
121
139
|
end
|
122
140
|
|
141
|
+
def inspect
|
142
|
+
"#<#{self.class} hour=#{@hour}, minute=#{@minute}, second=#{@second}>"
|
143
|
+
end
|
144
|
+
|
123
145
|
def to_a
|
124
146
|
[@hour, @minute, @second]
|
125
147
|
end
|
data/test/database.yml
CHANGED
data/test/test_helper.rb
CHANGED
@@ -6,8 +6,6 @@ RAILS_ROOT = File.dirname(__FILE__)
|
|
6
6
|
require 'rubygems'
|
7
7
|
require 'bundler/setup'
|
8
8
|
require 'minitest/autorun'
|
9
|
-
require 'minitest/reporters'
|
10
|
-
MiniTest::Reporters.use!
|
11
9
|
|
12
10
|
require 'active_record'
|
13
11
|
require 'activerecord-time'
|
@@ -21,7 +19,7 @@ if defined?(Rake) && (RUBY_ENGINE != 'jruby' || org.jruby.RubyInstanceConfig.FUL
|
|
21
19
|
end
|
22
20
|
|
23
21
|
FileUtils.rm_rf File.expand_path(':memory:', File.dirname(__FILE__))
|
24
|
-
config = YAML.load(
|
22
|
+
config = YAML.load(File.read(File.dirname(__FILE__) + '/database.yml'))
|
25
23
|
ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + '/test.log')
|
26
24
|
adapter = ENV['ADAPTER'] || 'sqlite3'
|
27
25
|
if adapter != 'sqlite3'
|
data/test/time_of_day_test.rb
CHANGED
@@ -5,6 +5,7 @@ require File.expand_path('test_helper', File.dirname(__FILE__))
|
|
5
5
|
class ApplicationRecord < ActiveRecord::Base
|
6
6
|
self.abstract_class = true
|
7
7
|
end
|
8
|
+
|
8
9
|
class Event < ApplicationRecord
|
9
10
|
end
|
10
11
|
|
@@ -141,6 +142,18 @@ class TimeOfDayTest < Minitest::Test
|
|
141
142
|
assert_equal 59, tod.second
|
142
143
|
end
|
143
144
|
|
145
|
+
if ActiveRecord.gem_version >= Gem::Version.new('6.1')
|
146
|
+
def test_minus_tod
|
147
|
+
tod1 = TimeOfDay.new(12, 0, 29)
|
148
|
+
tod2 = TimeOfDay.new(13, 30, 59)
|
149
|
+
duration = tod2 - tod1
|
150
|
+
|
151
|
+
assert_equal 1, duration.in_hours.to_i
|
152
|
+
assert_equal 30, duration.in_minutes.to_i % 60
|
153
|
+
assert_equal 30, duration.in_seconds % 60
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
144
157
|
def test_equality
|
145
158
|
tod1 = TimeOfDay.new(12, 0, 5)
|
146
159
|
tod2 = TimeOfDay.new(12, 0, 5)
|
@@ -154,7 +167,7 @@ class TimeOfDayTest < Minitest::Test
|
|
154
167
|
tod2 = TimeOfDay.new(13, 0)
|
155
168
|
assert_equal(-1, tod1 <=> tod2)
|
156
169
|
assert_equal 1, tod2 <=> tod1
|
157
|
-
assert_equal 0, tod1 <=> tod1
|
170
|
+
assert_equal 0, tod1 <=> tod1
|
158
171
|
end
|
159
172
|
|
160
173
|
def test_strftime
|
@@ -201,4 +214,19 @@ class TimeOfDayTest < Minitest::Test
|
|
201
214
|
tod = TimeOfDay.new(12, 13)
|
202
215
|
assert_equal '"12:13:00"', tod.to_json('foo')
|
203
216
|
end
|
217
|
+
|
218
|
+
def test_eql?
|
219
|
+
a = TimeOfDay.new(10, 11, 12)
|
220
|
+
b = TimeOfDay.new(10, 11, 12)
|
221
|
+
assert a.eql?(b)
|
222
|
+
assert_equal a.hash, b.hash
|
223
|
+
hashmap = {}
|
224
|
+
hashmap[a] = 'foo'
|
225
|
+
hashmap[b] = 'bar'
|
226
|
+
assert_equal hashmap, TimeOfDay.new(10, 11, 12) => 'bar'
|
227
|
+
end
|
228
|
+
|
229
|
+
def test_inspect
|
230
|
+
assert_equal '#<TimeOfDay hour=10, minute=11, second=12>', TimeOfDay.new(10, 11, 12).inspect
|
231
|
+
end
|
204
232
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-time
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Uwe Kubosch
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '5.1'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '7'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '5.1'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '7'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: pg
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,7 @@ dependencies:
|
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
62
|
+
name: rake
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - ">="
|
@@ -73,7 +73,7 @@ dependencies:
|
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
76
|
+
name: rubocop
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - ">="
|
@@ -87,7 +87,7 @@ dependencies:
|
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
|
-
name: rubocop
|
90
|
+
name: rubocop-performance
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
93
|
- - ">="
|
@@ -101,7 +101,7 @@ dependencies:
|
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
|
-
name: rubocop-
|
104
|
+
name: rubocop-rails
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - ">="
|
@@ -115,7 +115,7 @@ dependencies:
|
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
|
-
name: rubocop-
|
118
|
+
name: rubocop-rake
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
121
|
- - ">="
|
@@ -150,6 +150,7 @@ executables: []
|
|
150
150
|
extensions: []
|
151
151
|
extra_rdoc_files: []
|
152
152
|
files:
|
153
|
+
- ".github/workflows/test.yml"
|
153
154
|
- ".gitignore"
|
154
155
|
- ".rubocop.yml"
|
155
156
|
- ".rubocop_todo.yml"
|
@@ -161,11 +162,9 @@ files:
|
|
161
162
|
- Rakefile
|
162
163
|
- activerecord-time.gemspec
|
163
164
|
- gemfiles/ar51.gemfile
|
164
|
-
- gemfiles/ar51.gemfile.lock
|
165
165
|
- gemfiles/ar52.gemfile
|
166
|
-
- gemfiles/ar52.gemfile.lock
|
167
166
|
- gemfiles/ar60.gemfile
|
168
|
-
- gemfiles/
|
167
|
+
- gemfiles/ar61.gemfile
|
169
168
|
- gemfiles/common.gemfile
|
170
169
|
- lib/activerecord-time.rb
|
171
170
|
- lib/activerecord-time/extension.rb
|
@@ -181,7 +180,7 @@ homepage: https://github.com/donv/activerecord-time
|
|
181
180
|
licenses:
|
182
181
|
- MIT
|
183
182
|
metadata: {}
|
184
|
-
post_install_message:
|
183
|
+
post_install_message:
|
185
184
|
rdoc_options: []
|
186
185
|
require_paths:
|
187
186
|
- lib
|
@@ -196,8 +195,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
196
195
|
- !ruby/object:Gem::Version
|
197
196
|
version: '0'
|
198
197
|
requirements: []
|
199
|
-
rubygems_version: 3.
|
200
|
-
signing_key:
|
198
|
+
rubygems_version: 3.2.32
|
199
|
+
signing_key:
|
201
200
|
specification_version: 4
|
202
201
|
summary: A handler for storing TimeOfDay objects in ActiveRecord objects as sql time
|
203
202
|
values.
|
data/gemfiles/ar51.gemfile.lock
DELETED
@@ -1,75 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: https://rubygems.org/
|
3
|
-
specs:
|
4
|
-
activemodel (5.1.7)
|
5
|
-
activesupport (= 5.1.7)
|
6
|
-
activerecord (5.1.7)
|
7
|
-
activemodel (= 5.1.7)
|
8
|
-
activesupport (= 5.1.7)
|
9
|
-
arel (~> 8.0)
|
10
|
-
activerecord-jdbc-adapter (51.4-java)
|
11
|
-
activerecord (~> 5.1.0)
|
12
|
-
activerecord-jdbcderby-adapter (0.8.2)
|
13
|
-
activerecord-jdbc-adapter (>= 0.8.2)
|
14
|
-
jdbc-derby (>= 10.3.2.1)
|
15
|
-
activerecord-jdbcpostgresql-adapter (51.4-java)
|
16
|
-
activerecord-jdbc-adapter (= 51.4)
|
17
|
-
jdbc-postgres (>= 9.4, < 43)
|
18
|
-
activerecord-jdbcsqlite3-adapter (51.4-java)
|
19
|
-
activerecord-jdbc-adapter (= 51.4)
|
20
|
-
jdbc-sqlite3 (~> 3.8, < 3.30)
|
21
|
-
activesupport (5.1.7)
|
22
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
23
|
-
i18n (>= 0.7, < 2)
|
24
|
-
minitest (~> 5.1)
|
25
|
-
tzinfo (~> 1.1)
|
26
|
-
ansi (1.5.0)
|
27
|
-
arel (8.0.0)
|
28
|
-
builder (3.2.3)
|
29
|
-
concurrent-ruby (1.1.5)
|
30
|
-
docile (1.3.2)
|
31
|
-
i18n (1.7.0)
|
32
|
-
concurrent-ruby (~> 1.0)
|
33
|
-
jdbc-derby (10.12.1.1)
|
34
|
-
jdbc-postgres (42.2.6)
|
35
|
-
jdbc-sqlite3 (3.28.0)
|
36
|
-
json (2.2.0)
|
37
|
-
json (2.2.0-java)
|
38
|
-
minitest (5.12.2)
|
39
|
-
minitest-reporters (1.4.1)
|
40
|
-
ansi
|
41
|
-
builder
|
42
|
-
minitest (>= 5.0)
|
43
|
-
ruby-progressbar
|
44
|
-
pg (0.21.0)
|
45
|
-
rake (13.0.0)
|
46
|
-
ruby-progressbar (1.10.1)
|
47
|
-
simplecov (0.17.1)
|
48
|
-
docile (~> 1.1)
|
49
|
-
json (>= 1.8, < 3)
|
50
|
-
simplecov-html (~> 0.10.0)
|
51
|
-
simplecov-html (0.10.2)
|
52
|
-
sqlite3 (1.4.1)
|
53
|
-
thread_safe (0.3.6)
|
54
|
-
thread_safe (0.3.6-java)
|
55
|
-
tzinfo (1.2.5)
|
56
|
-
thread_safe (~> 0.1)
|
57
|
-
|
58
|
-
PLATFORMS
|
59
|
-
java
|
60
|
-
ruby
|
61
|
-
|
62
|
-
DEPENDENCIES
|
63
|
-
activerecord (~> 5.1.1)
|
64
|
-
activerecord-jdbc-adapter
|
65
|
-
activerecord-jdbcderby-adapter
|
66
|
-
activerecord-jdbcpostgresql-adapter
|
67
|
-
activerecord-jdbcsqlite3-adapter
|
68
|
-
minitest-reporters
|
69
|
-
pg (< 1)
|
70
|
-
rake
|
71
|
-
simplecov
|
72
|
-
sqlite3
|
73
|
-
|
74
|
-
BUNDLED WITH
|
75
|
-
1.17.2
|
data/gemfiles/ar52.gemfile.lock
DELETED
@@ -1,75 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: https://rubygems.org/
|
3
|
-
specs:
|
4
|
-
activemodel (5.2.3)
|
5
|
-
activesupport (= 5.2.3)
|
6
|
-
activerecord (5.2.3)
|
7
|
-
activemodel (= 5.2.3)
|
8
|
-
activesupport (= 5.2.3)
|
9
|
-
arel (>= 9.0)
|
10
|
-
activerecord-jdbc-adapter (52.3-java)
|
11
|
-
activerecord (~> 5.2.0)
|
12
|
-
activerecord-jdbcderby-adapter (0.8.2)
|
13
|
-
activerecord-jdbc-adapter (>= 0.8.2)
|
14
|
-
jdbc-derby (>= 10.3.2.1)
|
15
|
-
activerecord-jdbcpostgresql-adapter (52.3-java)
|
16
|
-
activerecord-jdbc-adapter (= 52.3)
|
17
|
-
jdbc-postgres (>= 9.4, < 43)
|
18
|
-
activerecord-jdbcsqlite3-adapter (52.3-java)
|
19
|
-
activerecord-jdbc-adapter (= 52.3)
|
20
|
-
jdbc-sqlite3 (~> 3.8, < 3.30)
|
21
|
-
activesupport (5.2.3)
|
22
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
23
|
-
i18n (>= 0.7, < 2)
|
24
|
-
minitest (~> 5.1)
|
25
|
-
tzinfo (~> 1.1)
|
26
|
-
ansi (1.5.0)
|
27
|
-
arel (9.0.0)
|
28
|
-
builder (3.2.3)
|
29
|
-
concurrent-ruby (1.1.5)
|
30
|
-
docile (1.3.2)
|
31
|
-
i18n (1.7.0)
|
32
|
-
concurrent-ruby (~> 1.0)
|
33
|
-
jdbc-derby (10.12.1.1)
|
34
|
-
jdbc-postgres (42.2.6)
|
35
|
-
jdbc-sqlite3 (3.28.0)
|
36
|
-
json (2.2.0)
|
37
|
-
json (2.2.0-java)
|
38
|
-
minitest (5.12.2)
|
39
|
-
minitest-reporters (1.4.1)
|
40
|
-
ansi
|
41
|
-
builder
|
42
|
-
minitest (>= 5.0)
|
43
|
-
ruby-progressbar
|
44
|
-
pg (0.21.0)
|
45
|
-
rake (13.0.0)
|
46
|
-
ruby-progressbar (1.10.1)
|
47
|
-
simplecov (0.17.1)
|
48
|
-
docile (~> 1.1)
|
49
|
-
json (>= 1.8, < 3)
|
50
|
-
simplecov-html (~> 0.10.0)
|
51
|
-
simplecov-html (0.10.2)
|
52
|
-
sqlite3 (1.4.1)
|
53
|
-
thread_safe (0.3.6)
|
54
|
-
thread_safe (0.3.6-java)
|
55
|
-
tzinfo (1.2.5)
|
56
|
-
thread_safe (~> 0.1)
|
57
|
-
|
58
|
-
PLATFORMS
|
59
|
-
java
|
60
|
-
ruby
|
61
|
-
|
62
|
-
DEPENDENCIES
|
63
|
-
activerecord (~> 5.2.0)
|
64
|
-
activerecord-jdbc-adapter
|
65
|
-
activerecord-jdbcderby-adapter
|
66
|
-
activerecord-jdbcpostgresql-adapter
|
67
|
-
activerecord-jdbcsqlite3-adapter
|
68
|
-
minitest-reporters
|
69
|
-
pg (< 1)
|
70
|
-
rake
|
71
|
-
simplecov
|
72
|
-
sqlite3
|
73
|
-
|
74
|
-
BUNDLED WITH
|
75
|
-
1.17.2
|
data/gemfiles/ar60.gemfile.lock
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: https://rubygems.org/
|
3
|
-
specs:
|
4
|
-
activemodel (6.0.2.1)
|
5
|
-
activesupport (= 6.0.2.1)
|
6
|
-
activerecord (6.0.2.1)
|
7
|
-
activemodel (= 6.0.2.1)
|
8
|
-
activesupport (= 6.0.2.1)
|
9
|
-
activesupport (6.0.2.1)
|
10
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
11
|
-
i18n (>= 0.7, < 2)
|
12
|
-
minitest (~> 5.1)
|
13
|
-
tzinfo (~> 1.1)
|
14
|
-
zeitwerk (~> 2.2)
|
15
|
-
ansi (1.5.0)
|
16
|
-
builder (3.2.4)
|
17
|
-
concurrent-ruby (1.1.5)
|
18
|
-
docile (1.3.2)
|
19
|
-
i18n (1.7.0)
|
20
|
-
concurrent-ruby (~> 1.0)
|
21
|
-
json (2.3.0)
|
22
|
-
minitest (5.13.0)
|
23
|
-
minitest-reporters (1.4.2)
|
24
|
-
ansi
|
25
|
-
builder
|
26
|
-
minitest (>= 5.0)
|
27
|
-
ruby-progressbar
|
28
|
-
pg (0.21.0)
|
29
|
-
rake (13.0.1)
|
30
|
-
ruby-progressbar (1.10.1)
|
31
|
-
simplecov (0.17.1)
|
32
|
-
docile (~> 1.1)
|
33
|
-
json (>= 1.8, < 3)
|
34
|
-
simplecov-html (~> 0.10.0)
|
35
|
-
simplecov-html (0.10.2)
|
36
|
-
sqlite3 (1.4.2)
|
37
|
-
thread_safe (0.3.6)
|
38
|
-
tzinfo (1.2.6)
|
39
|
-
thread_safe (~> 0.1)
|
40
|
-
zeitwerk (2.2.2)
|
41
|
-
|
42
|
-
PLATFORMS
|
43
|
-
ruby
|
44
|
-
|
45
|
-
DEPENDENCIES
|
46
|
-
activerecord (~> 6.0.0)
|
47
|
-
activerecord-jdbc-adapter
|
48
|
-
activerecord-jdbcderby-adapter
|
49
|
-
activerecord-jdbcpostgresql-adapter
|
50
|
-
activerecord-jdbcsqlite3-adapter
|
51
|
-
minitest-reporters
|
52
|
-
pg (< 1)
|
53
|
-
rake
|
54
|
-
simplecov
|
55
|
-
sqlite3
|
56
|
-
|
57
|
-
BUNDLED WITH
|
58
|
-
1.17.2
|