activerecord-time 0.9.1 → 0.10.0

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: 1781c77fcede237162e8b40d1cc433949057589a
4
- data.tar.gz: dd414db6a61ec791341b2962ced3f28cd6350ef3
3
+ metadata.gz: bb73fdd2a7c5845d78356726dec7ad5bb409f126
4
+ data.tar.gz: 0dd121fcaed131f643cea91d87eea7bec18f16fe
5
5
  SHA512:
6
- metadata.gz: 88a442ce253cdf4db906aca06158d56989b761f250f10384a0ef848d67eebad22a5644f770b883d7122ec922cd44f0f17be4dc3382558acfd179abd776405de5
7
- data.tar.gz: dc6dc0cb9ed159695d2d0427c69173b7dd4bb70895a9697b3fd4d98076613b886fb68a5949de4068f1ec4f500cda9cf14255c3939e859521007b7899b794e08b
6
+ metadata.gz: 741598116825db6bf8c4595debb4eb899f635bdfc501819caa7c5b95c4f56d12d9f44435b8dd755f4c1225806547fb7259f147e19d0bdc53e6051e99d4aada5d
7
+ data.tar.gz: a25a3ce75ef5b8a3b4013d44889069aad4d15707a88e222da309bcc98d6fdc49cc867c7038d2d1a3533d71a5097b121d62f692fb97470307ccbef363d2ba78be
data/.rubocop.yml CHANGED
@@ -1,23 +1,59 @@
1
1
  inherit_from: .rubocop_todo.yml
2
2
 
3
3
  AllCops:
4
- TargetRubyVersion: 2.1
4
+ TargetRubyVersion: 2.2
5
5
  DisplayCopNames: true
6
6
  DisplayStyleGuide: true
7
7
  Include:
8
8
  - '**/Gemfile'
9
9
  - '**/Rakefile'
10
+
11
+ Layout/AlignParameters:
12
+ EnforcedStyle: with_fixed_indentation
13
+ IndentationWidth: 4
14
+
15
+ Layout/FirstParameterIndentation:
16
+ EnforcedStyle: consistent
17
+ IndentationWidth: 4
18
+
19
+ Layout/IndentArray:
20
+ EnforcedStyle: consistent
21
+
22
+ Layout/IndentHash:
23
+ EnforcedStyle: consistent
24
+
25
+ Layout/IndentAssignment:
26
+ IndentationWidth: 4
27
+
28
+ Layout/MultilineMethodCallIndentation:
29
+ EnforcedStyle: indented
30
+ IndentationWidth: 4
31
+
32
+ Layout/MultilineOperationIndentation:
33
+ EnforcedStyle: indented
34
+ IndentationWidth: 4
35
+
36
+ Metrics/BlockLength:
37
+ Exclude:
38
+ - '*.gemspec'
39
+
40
+ Metrics/LineLength:
41
+ Max: 107
42
+ AllowHeredoc: true
43
+ AllowURI: true
44
+ IgnoreCopDirectives: true
45
+
46
+ Naming/FileName:
10
47
  Exclude:
11
- - 'gemfiles/vendor/**/*'
48
+ - 'activerecord-time.gemspec'
49
+ - 'lib/activerecord-time.rb'
12
50
 
13
51
  Rails:
14
52
  Enabled: true
15
53
 
16
- Rails/ApplicationRecord:
17
- Enabled: false
18
-
19
- Security/YAMLLoad:
20
- Enabled: false
54
+ Security/Eval:
55
+ Exclude:
56
+ - 'gemfiles/*.gemfile'
21
57
 
22
58
  Style/Documentation:
23
59
  Enabled: false
@@ -25,19 +61,20 @@ Style/Documentation:
25
61
  Style/Encoding:
26
62
  Enabled: true
27
63
 
28
- Style/FileName:
29
- Exclude:
30
- - 'activerecord-time.gemspec'
31
- - 'lib/activerecord-time.rb'
32
-
33
64
  Style/FormatString:
34
65
  EnforcedStyle: percent
35
66
 
36
67
  Style/NumericPredicate:
37
68
  Enabled: false
38
69
 
39
- Style/ParallelAssignment:
40
- Enabled: false
70
+ Style/RescueStandardError:
71
+ EnforcedStyle: implicit
41
72
 
42
73
  Style/SafeNavigation:
43
74
  ConvertCodeThatCanStartToReturnNil: true
75
+
76
+ Style/TrailingCommaInArrayLiteral:
77
+ EnforcedStyleForMultiline: comma
78
+
79
+ Style/TrailingCommaInHashLiteral:
80
+ EnforcedStyleForMultiline: comma
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2016-12-23 10:29:47 +0100 using RuboCop version 0.46.0.
3
+ # on 2018-05-03 15:54:21 +0200 using RuboCop version 0.55.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
@@ -10,10 +10,9 @@
10
10
  Metrics/AbcSize:
11
11
  Max: 34
12
12
 
13
- # Offense count: 2
14
- # Configuration parameters: CountComments.
13
+ # Offense count: 4
15
14
  Metrics/BlockLength:
16
- Max: 39
15
+ Max: 26
17
16
 
18
17
  # Offense count: 1
19
18
  # Configuration parameters: CountComments.
@@ -24,13 +23,21 @@ Metrics/ClassLength:
24
23
  Metrics/CyclomaticComplexity:
25
24
  Max: 7
26
25
 
27
- # Offense count: 11
28
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
29
- # URISchemes: http, https
30
- Metrics/LineLength:
31
- Max: 114
32
-
33
- # Offense count: 1
26
+ # Offense count: 2
34
27
  # Configuration parameters: CountComments.
35
28
  Metrics/MethodLength:
36
29
  Max: 16
30
+
31
+ # Offense count: 2
32
+ # Cop supports --auto-correct.
33
+ Rails/ActiveRecordAliases:
34
+ Exclude:
35
+ - 'test/time_of_day_test.rb'
36
+
37
+ # Offense count: 3
38
+ # Cop supports --auto-correct.
39
+ Security/YAMLLoad:
40
+ Exclude:
41
+ - 'matrix_test.rb'
42
+ - 'test/test_helper.rb'
43
+ - 'test/time_of_day_test.rb'
data/.travis.yml CHANGED
@@ -4,26 +4,38 @@ jdk:
4
4
  - oraclejdk8
5
5
  before_install: gem query -i -n ^bundler$ >/dev/null || gem install bundler
6
6
  rvm:
7
- - ruby-2.4.1
8
- - jruby-9.1.12.0
9
- - ruby-2.3.4
10
- - ruby-2.2.7
7
+ # - ruby-2.5.1
8
+ - ruby-2.4.4
9
+ - jruby-9.1.17.0
10
+ - ruby-2.3.7
11
+ - ruby-2.2.10
11
12
  - ruby-head
12
13
  - jruby-head
13
14
  gemfile:
15
+ - gemfiles/ar52.gemfile
14
16
  - gemfiles/ar51.gemfile
15
17
  - gemfiles/ar50.gemfile
16
18
  - gemfiles/ar42.gemfile
17
- - gemfiles/ar32.gemfile
18
19
  env:
19
20
  - JRUBY_OPTS="--dev --debug" ADAPTER="postgresql"
20
21
  - JRUBY_OPTS="--dev --debug" ADAPTER="derby"
21
22
  - JRUBY_OPTS="--dev --debug" ADAPTER="sqlite3"
22
23
  matrix:
23
- exclude:
24
+ allow_failures:
24
25
  - rvm: ruby-head
25
26
  gemfile: gemfiles/ar42.gemfile
26
- - rvm: ruby-head
27
- gemfile: gemfiles/ar32.gemfile
28
- - rvm: ruby-2.4.1
29
- gemfile: gemfiles/ar32.gemfile
27
+ - rvm: jruby-9.1.17.0
28
+ gemfile: gemfiles/ar52.gemfile
29
+ - rvm: jruby-9.1.17.0
30
+ gemfile: gemfiles/ar51.gemfile
31
+ - rvm: jruby-9.1.17.0
32
+ gemfile: gemfiles/ar50.gemfile
33
+ - rvm: jruby-9.1.17.0
34
+ gemfile: gemfiles/ar42.gemfile
35
+ exclude:
36
+ - rvm: ruby-2.4.4
37
+ env: JRUBY_OPTS="--dev --debug" ADAPTER="derby"
38
+ - rvm: ruby-2.3.7
39
+ env: JRUBY_OPTS="--dev --debug" ADAPTER="derby"
40
+ - rvm: ruby-2.2.10
41
+ env: JRUBY_OPTS="--dev --debug" ADAPTER="derby"
data/README.md CHANGED
@@ -9,13 +9,11 @@ them in fixtures.
9
9
 
10
10
  Also adds JSON encode/decode.
11
11
 
12
- The gem supports MRI and JRuby at Ruby language level 2.1.9 and later. Other
13
- Ruby implementations may work.
12
+ The gem supports MRI and JRuby at Ruby 2.2 language level and later.
13
+ Other Ruby implementations may work.
14
14
 
15
15
  ActiveRecord 3.2 and later supported.
16
16
 
17
- Ruby 2.1.9 to 2.4.0 supported, including JRuby.
18
-
19
17
 
20
18
  ## Installation
21
19
 
@@ -1,4 +1,4 @@
1
- lib = File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path('lib', __dir__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
  require 'activerecord-time/version'
4
4
 
@@ -11,14 +11,14 @@ Gem::Specification.new do |gem|
11
11
  gem.summary = 'A handler for storing TimeOfDay objects in ActiveRecord objects as sql time values.'
12
12
  gem.homepage = 'https://github.com/donv/activerecord-time'
13
13
  gem.license = 'MIT'
14
- gem.required_ruby_version = '>= 2.1'
14
+ gem.required_ruby_version = '>= 2.2'
15
15
 
16
16
  gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
17
17
  gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
18
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
19
  gem.require_paths = %w[lib]
20
20
 
21
- gem.add_runtime_dependency 'activerecord', '>=3.2.21', '<5.2'
21
+ gem.add_runtime_dependency 'activerecord', '>=4.2', '<6'
22
22
 
23
23
  if defined? JRUBY_VERSION
24
24
  gem.add_development_dependency 'activerecord-jdbcpostgresql-adapter'
@@ -1,22 +1,25 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- activemodel (4.2.8)
5
- activesupport (= 4.2.8)
4
+ activemodel (4.2.10)
5
+ activesupport (= 4.2.10)
6
6
  builder (~> 3.1)
7
- activerecord (4.2.8)
8
- activemodel (= 4.2.8)
9
- activesupport (= 4.2.8)
7
+ activerecord (4.2.10)
8
+ activemodel (= 4.2.10)
9
+ activesupport (= 4.2.10)
10
10
  arel (~> 6.0)
11
- activerecord-jdbc-adapter (1.3.23)
12
- activerecord (>= 2.2, < 5.0)
13
- activerecord-jdbcpostgresql-adapter (1.3.23)
14
- activerecord-jdbc-adapter (~> 1.3.23)
15
- jdbc-postgres (>= 9.1)
16
- activerecord-jdbcsqlite3-adapter (1.3.23)
17
- activerecord-jdbc-adapter (~> 1.3.23)
18
- jdbc-sqlite3 (>= 3.7.2, < 3.9)
19
- activesupport (4.2.8)
11
+ activerecord-jdbc-adapter (50.0)
12
+ activerecord (>= 2.2)
13
+ activerecord-jdbcderby-adapter (0.8.2)
14
+ activerecord-jdbc-adapter (>= 0.8.2)
15
+ jdbc-derby (>= 10.3.2.1)
16
+ activerecord-jdbcpostgresql-adapter (50.0)
17
+ activerecord-jdbc-adapter (~> 50.0)
18
+ jdbc-postgres (>= 9.4, < 43)
19
+ activerecord-jdbcsqlite3-adapter (50.0)
20
+ activerecord-jdbc-adapter (~> 50.0)
21
+ jdbc-sqlite3 (~> 3.8, < 3.30)
22
+ activesupport (4.2.10)
20
23
  i18n (~> 0.7)
21
24
  minitest (~> 5.1)
22
25
  thread_safe (~> 0.3, >= 0.3.4)
@@ -24,30 +27,34 @@ GEM
24
27
  ansi (1.5.0)
25
28
  arel (6.0.4)
26
29
  builder (3.2.3)
27
- docile (1.1.5)
28
- i18n (0.8.4)
29
- jdbc-postgres (9.4.1206)
30
- jdbc-sqlite3 (3.8.11.2)
30
+ concurrent-ruby (1.0.5)
31
+ concurrent-ruby (1.0.5-java)
32
+ docile (1.3.0)
33
+ i18n (0.9.5)
34
+ concurrent-ruby (~> 1.0)
35
+ jdbc-derby (10.12.1.1)
36
+ jdbc-postgres (42.1.4)
37
+ jdbc-sqlite3 (3.20.1)
31
38
  json (2.1.0)
32
39
  json (2.1.0-java)
33
- minitest (5.10.2)
34
- minitest-reporters (1.1.14)
40
+ minitest (5.10.3)
41
+ minitest-reporters (1.2.0)
35
42
  ansi
36
43
  builder
37
44
  minitest (>= 5.0)
38
45
  ruby-progressbar
39
46
  pg (0.21.0)
40
- rake (12.0.0)
41
- ruby-progressbar (1.8.1)
42
- simplecov (0.14.1)
43
- docile (~> 1.1.0)
47
+ rake (12.3.1)
48
+ ruby-progressbar (1.9.0)
49
+ simplecov (0.16.1)
50
+ docile (~> 1.1)
44
51
  json (>= 1.8, < 3)
45
52
  simplecov-html (~> 0.10.0)
46
- simplecov-html (0.10.1)
53
+ simplecov-html (0.10.2)
47
54
  sqlite3 (1.3.13)
48
55
  thread_safe (0.3.6)
49
56
  thread_safe (0.3.6-java)
50
- tzinfo (1.2.3)
57
+ tzinfo (1.2.5)
51
58
  thread_safe (~> 0.1)
52
59
 
53
60
  PLATFORMS
@@ -57,13 +64,14 @@ PLATFORMS
57
64
  DEPENDENCIES
58
65
  activerecord (~> 4.2.3)
59
66
  activerecord-jdbc-adapter
67
+ activerecord-jdbcderby-adapter
60
68
  activerecord-jdbcpostgresql-adapter
61
69
  activerecord-jdbcsqlite3-adapter
62
70
  minitest-reporters
63
- pg
71
+ pg (< 1)
64
72
  rake
65
73
  simplecov
66
74
  sqlite3
67
75
 
68
76
  BUNDLED WITH
69
- 1.15.1
77
+ 1.16.1
@@ -1,4 +1,3 @@
1
- RAILS_5 = true
2
1
  eval File.read("#{File.dirname __FILE__}/common.gemfile")
3
2
 
4
3
  gem 'activerecord', '~>5.0.1'
@@ -1,31 +1,26 @@
1
- GIT
2
- remote: https://github.com/jruby/activerecord-jdbc-adapter.git
3
- revision: cf8e845f3341f02dbdef5d770b47fddbbb84c7ab
4
- branch: rails-5
5
- specs:
6
- activerecord-jdbc-adapter (5.0.pre1)
7
- activerecord (>= 2.2)
8
- activerecord-jdbcpostgresql-adapter (5.0.pre1)
9
- activerecord-jdbc-adapter (~> 5.0.pre1)
10
- jdbc-postgres (>= 9.1)
11
- activerecord-jdbcsqlite3-adapter (5.0.pre1)
12
- activerecord-jdbc-adapter (~> 5.0.pre1)
13
- jdbc-sqlite3 (>= 3.7.2, < 3.9)
14
- jdbc-postgres (9.3.1102)
15
- jdbc-sqlite3 (3.7.2.1)
16
-
17
1
  GEM
18
2
  remote: https://rubygems.org/
19
3
  specs:
20
- activemodel (5.0.4)
21
- activesupport (= 5.0.4)
22
- activerecord (5.0.4)
23
- activemodel (= 5.0.4)
24
- activesupport (= 5.0.4)
4
+ activemodel (5.0.7)
5
+ activesupport (= 5.0.7)
6
+ activerecord (5.0.7)
7
+ activemodel (= 5.0.7)
8
+ activesupport (= 5.0.7)
25
9
  arel (~> 7.0)
26
- activesupport (5.0.4)
10
+ activerecord-jdbc-adapter (50.0)
11
+ activerecord (>= 2.2)
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 (50.0)
16
+ activerecord-jdbc-adapter (~> 50.0)
17
+ jdbc-postgres (>= 9.4, < 43)
18
+ activerecord-jdbcsqlite3-adapter (50.0)
19
+ activerecord-jdbc-adapter (~> 50.0)
20
+ jdbc-sqlite3 (~> 3.8, < 3.30)
21
+ activesupport (5.0.7)
27
22
  concurrent-ruby (~> 1.0, >= 1.0.2)
28
- i18n (~> 0.7)
23
+ i18n (>= 0.7, < 2)
29
24
  minitest (~> 5.1)
30
25
  tzinfo (~> 1.1)
31
26
  ansi (1.5.0)
@@ -33,28 +28,32 @@ GEM
33
28
  builder (3.2.3)
34
29
  concurrent-ruby (1.0.5)
35
30
  concurrent-ruby (1.0.5-java)
36
- docile (1.1.5)
37
- i18n (0.8.4)
31
+ docile (1.3.0)
32
+ i18n (1.0.1)
33
+ concurrent-ruby (~> 1.0)
34
+ jdbc-derby (10.12.1.1)
35
+ jdbc-postgres (42.1.4)
36
+ jdbc-sqlite3 (3.20.1)
38
37
  json (2.1.0)
39
38
  json (2.1.0-java)
40
- minitest (5.10.2)
41
- minitest-reporters (1.1.14)
39
+ minitest (5.10.3)
40
+ minitest-reporters (1.2.0)
42
41
  ansi
43
42
  builder
44
43
  minitest (>= 5.0)
45
44
  ruby-progressbar
46
45
  pg (0.21.0)
47
- rake (12.0.0)
48
- ruby-progressbar (1.8.1)
49
- simplecov (0.14.1)
50
- docile (~> 1.1.0)
46
+ rake (12.3.1)
47
+ ruby-progressbar (1.9.0)
48
+ simplecov (0.16.1)
49
+ docile (~> 1.1)
51
50
  json (>= 1.8, < 3)
52
51
  simplecov-html (~> 0.10.0)
53
- simplecov-html (0.10.1)
52
+ simplecov-html (0.10.2)
54
53
  sqlite3 (1.3.13)
55
54
  thread_safe (0.3.6)
56
55
  thread_safe (0.3.6-java)
57
- tzinfo (1.2.3)
56
+ tzinfo (1.2.5)
58
57
  thread_safe (~> 0.1)
59
58
 
60
59
  PLATFORMS
@@ -63,16 +62,15 @@ PLATFORMS
63
62
 
64
63
  DEPENDENCIES
65
64
  activerecord (~> 5.0.1)
66
- activerecord-jdbc-adapter!
67
- activerecord-jdbcpostgresql-adapter!
68
- activerecord-jdbcsqlite3-adapter!
69
- jdbc-postgres!
70
- jdbc-sqlite3!
65
+ activerecord-jdbc-adapter
66
+ activerecord-jdbcderby-adapter
67
+ activerecord-jdbcpostgresql-adapter
68
+ activerecord-jdbcsqlite3-adapter
71
69
  minitest-reporters
72
- pg
70
+ pg (< 1)
73
71
  rake
74
72
  simplecov
75
73
  sqlite3
76
74
 
77
75
  BUNDLED WITH
78
- 1.15.1
76
+ 1.16.1
@@ -1,31 +1,33 @@
1
1
  GIT
2
2
  remote: https://github.com/jruby/activerecord-jdbc-adapter.git
3
- revision: cf8e845f3341f02dbdef5d770b47fddbbb84c7ab
4
- branch: rails-5
3
+ revision: cfea62ad56141c9e3c5348797028d45b64a193ca
5
4
  specs:
6
- activerecord-jdbc-adapter (5.0.pre1)
7
- activerecord (>= 2.2)
8
- activerecord-jdbcpostgresql-adapter (5.0.pre1)
9
- activerecord-jdbc-adapter (~> 5.0.pre1)
10
- jdbc-postgres (>= 9.1)
11
- activerecord-jdbcsqlite3-adapter (5.0.pre1)
12
- activerecord-jdbc-adapter (~> 5.0.pre1)
13
- jdbc-sqlite3 (>= 3.7.2, < 3.9)
14
- jdbc-postgres (9.3.1102)
15
- jdbc-sqlite3 (3.7.2.1)
5
+ activerecord-jdbc-adapter (51.0-java)
6
+ activerecord (~> 5.1.0)
7
+ activerecord-jdbcderby-adapter (51.0)
8
+ activerecord-jdbc-adapter (~> 51.0)
9
+ jdbc-derby (~> 10.6)
10
+ activerecord-jdbcpostgresql-adapter (51.0)
11
+ activerecord-jdbc-adapter (~> 51.0)
12
+ jdbc-postgres (>= 9.4, < 43)
13
+ activerecord-jdbcsqlite3-adapter (51.0)
14
+ activerecord-jdbc-adapter (~> 51.0)
15
+ jdbc-sqlite3 (~> 3.8, < 3.30)
16
+ jdbc-postgres (42.1.4)
17
+ jdbc-sqlite3 (3.20.1)
16
18
 
17
19
  GEM
18
20
  remote: https://rubygems.org/
19
21
  specs:
20
- activemodel (5.1.1)
21
- activesupport (= 5.1.1)
22
- activerecord (5.1.1)
23
- activemodel (= 5.1.1)
24
- activesupport (= 5.1.1)
22
+ activemodel (5.1.6)
23
+ activesupport (= 5.1.6)
24
+ activerecord (5.1.6)
25
+ activemodel (= 5.1.6)
26
+ activesupport (= 5.1.6)
25
27
  arel (~> 8.0)
26
- activesupport (5.1.1)
28
+ activesupport (5.1.6)
27
29
  concurrent-ruby (~> 1.0, >= 1.0.2)
28
- i18n (~> 0.7)
30
+ i18n (>= 0.7, < 2)
29
31
  minitest (~> 5.1)
30
32
  tzinfo (~> 1.1)
31
33
  ansi (1.5.0)
@@ -33,28 +35,30 @@ GEM
33
35
  builder (3.2.3)
34
36
  concurrent-ruby (1.0.5)
35
37
  concurrent-ruby (1.0.5-java)
36
- docile (1.1.5)
37
- i18n (0.8.4)
38
+ docile (1.3.0)
39
+ i18n (1.0.1)
40
+ concurrent-ruby (~> 1.0)
41
+ jdbc-derby (10.12.1.1)
38
42
  json (2.1.0)
39
43
  json (2.1.0-java)
40
- minitest (5.10.2)
41
- minitest-reporters (1.1.14)
44
+ minitest (5.10.3)
45
+ minitest-reporters (1.2.0)
42
46
  ansi
43
47
  builder
44
48
  minitest (>= 5.0)
45
49
  ruby-progressbar
46
50
  pg (0.21.0)
47
- rake (12.0.0)
48
- ruby-progressbar (1.8.1)
49
- simplecov (0.14.1)
50
- docile (~> 1.1.0)
51
+ rake (12.3.1)
52
+ ruby-progressbar (1.9.0)
53
+ simplecov (0.16.1)
54
+ docile (~> 1.1)
51
55
  json (>= 1.8, < 3)
52
56
  simplecov-html (~> 0.10.0)
53
- simplecov-html (0.10.1)
57
+ simplecov-html (0.10.2)
54
58
  sqlite3 (1.3.13)
55
59
  thread_safe (0.3.6)
56
60
  thread_safe (0.3.6-java)
57
- tzinfo (1.2.3)
61
+ tzinfo (1.2.5)
58
62
  thread_safe (~> 0.1)
59
63
 
60
64
  PLATFORMS
@@ -64,15 +68,16 @@ PLATFORMS
64
68
  DEPENDENCIES
65
69
  activerecord (~> 5.1.1)
66
70
  activerecord-jdbc-adapter!
71
+ activerecord-jdbcderby-adapter!
67
72
  activerecord-jdbcpostgresql-adapter!
68
73
  activerecord-jdbcsqlite3-adapter!
69
74
  jdbc-postgres!
70
75
  jdbc-sqlite3!
71
76
  minitest-reporters
72
- pg
77
+ pg (< 1)
73
78
  rake
74
79
  simplecov
75
80
  sqlite3
76
81
 
77
82
  BUNDLED WITH
78
- 1.15.1
83
+ 1.16.1
@@ -1,3 +1,5 @@
1
+ SKIP_JRUBY = true
2
+
1
3
  eval File.read("#{File.dirname __FILE__}/common.gemfile")
2
4
 
3
- gem 'activerecord', '~>3.2.22'
5
+ gem 'activerecord', '~>5.2.0'
@@ -0,0 +1,58 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ activemodel (5.2.0)
5
+ activesupport (= 5.2.0)
6
+ activerecord (5.2.0)
7
+ activemodel (= 5.2.0)
8
+ activesupport (= 5.2.0)
9
+ arel (>= 9.0)
10
+ activesupport (5.2.0)
11
+ concurrent-ruby (~> 1.0, >= 1.0.2)
12
+ i18n (>= 0.7, < 2)
13
+ minitest (~> 5.1)
14
+ tzinfo (~> 1.1)
15
+ ansi (1.5.0)
16
+ arel (9.0.0)
17
+ builder (3.2.3)
18
+ concurrent-ruby (1.0.5)
19
+ concurrent-ruby (1.0.5-java)
20
+ docile (1.3.0)
21
+ i18n (1.0.1)
22
+ concurrent-ruby (~> 1.0)
23
+ json (2.1.0)
24
+ json (2.1.0-java)
25
+ minitest (5.10.3)
26
+ minitest-reporters (1.2.0)
27
+ ansi
28
+ builder
29
+ minitest (>= 5.0)
30
+ ruby-progressbar
31
+ pg (0.21.0)
32
+ rake (12.3.1)
33
+ ruby-progressbar (1.9.0)
34
+ simplecov (0.16.1)
35
+ docile (~> 1.1)
36
+ json (>= 1.8, < 3)
37
+ simplecov-html (~> 0.10.0)
38
+ simplecov-html (0.10.2)
39
+ sqlite3 (1.3.13)
40
+ thread_safe (0.3.6)
41
+ thread_safe (0.3.6-java)
42
+ tzinfo (1.2.5)
43
+ thread_safe (~> 0.1)
44
+
45
+ PLATFORMS
46
+ java
47
+ ruby
48
+
49
+ DEPENDENCIES
50
+ activerecord (~> 5.2.0)
51
+ minitest-reporters
52
+ pg (< 1)
53
+ rake
54
+ simplecov
55
+ sqlite3
56
+
57
+ BUNDLED WITH
58
+ 1.16.1
@@ -1,25 +1,31 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- platform :jruby do
4
- if defined?(RAILS_5)
5
- git_source(:github) do |repo_name|
6
- repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?('/')
7
- "https://github.com/#{repo_name}.git"
3
+ unless defined?(SKIP_JRUBY)
4
+ platform :jruby do
5
+ if defined?(RAILS_5)
6
+ git_source(:github) do |repo_name|
7
+ repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?('/')
8
+ "https://github.com/#{repo_name}.git"
9
+ end
10
+ gem 'activerecord-jdbc-adapter', github: 'jruby/activerecord-jdbc-adapter'
11
+ gem 'activerecord-jdbcderby-adapter', github: 'jruby/activerecord-jdbc-adapter'
12
+ gem 'activerecord-jdbcpostgresql-adapter', github: 'jruby/activerecord-jdbc-adapter'
13
+ gem 'activerecord-jdbcsqlite3-adapter', github: 'jruby/activerecord-jdbc-adapter'
14
+ gem 'jdbc-postgres', github: 'jruby/activerecord-jdbc-adapter'
15
+ gem 'jdbc-sqlite3', github: 'jruby/activerecord-jdbc-adapter'
16
+ else
17
+ # rubocop: disable Bundler/DuplicatedGem
18
+ gem 'activerecord-jdbc-adapter'
19
+ gem 'activerecord-jdbcderby-adapter'
20
+ gem 'activerecord-jdbcpostgresql-adapter'
21
+ gem 'activerecord-jdbcsqlite3-adapter'
22
+ # rubocop: enable Bundler/DuplicatedGem
8
23
  end
9
- gem 'activerecord-jdbc-adapter', github: 'jruby/activerecord-jdbc-adapter', branch: 'rails-5'
10
- gem 'activerecord-jdbcpostgresql-adapter', github: 'jruby/activerecord-jdbc-adapter', branch: 'rails-5'
11
- gem 'activerecord-jdbcsqlite3-adapter', github: 'jruby/activerecord-jdbc-adapter', branch: 'rails-5'
12
- gem 'jdbc-postgres', github: 'jruby/activerecord-jdbc-adapter', branch: 'rails-5'
13
- gem 'jdbc-sqlite3', github: 'jruby/activerecord-jdbc-adapter', branch: 'rails-5'
14
- else
15
- gem 'activerecord-jdbc-adapter'
16
- gem 'activerecord-jdbcpostgresql-adapter'
17
- gem 'activerecord-jdbcsqlite3-adapter'
18
24
  end
19
25
  end
20
26
 
21
27
  platform :ruby do
22
- gem 'pg'
28
+ gem 'pg', '<1'
23
29
  gem 'sqlite3'
24
30
  end
25
31
 
@@ -1,9 +1,11 @@
1
1
  require 'activerecord-time/version'
2
2
  require 'active_record/version'
3
3
  require 'time_of_day'
4
+ require 'time_of_day/core_ext'
5
+
4
6
  # TODO(uwe): Simplify when we stop supporting ActiveRecord 3.2
5
7
  if ActiveRecord::VERSION::MAJOR < 3 ||
6
- (ActiveRecord::VERSION::MAJOR == 3 && ActiveRecord::VERSION::MINOR < 2)
8
+ (ActiveRecord::VERSION::MAJOR == 3 && ActiveRecord::VERSION::MINOR < 2)
7
9
  raise 'activerecord-time only supports ActiveRecord 3.2.21 or later'
8
10
  # TODO(uwe): Simplify when we stop supporting ActiveRecord 4.0 and 4.1
9
11
  elsif ActiveRecord::VERSION::MAJOR == 3 ||
@@ -26,7 +26,7 @@ module ActiveRecord
26
26
  return value.time_of_day if value.is_a?(::DateTime) || value.is_a?(::Time)
27
27
  return value unless value.is_a?(::String)
28
28
  return if value.empty?
29
- TimeOfDay.parse value
29
+ TimeOfDay._parse(value)
30
30
  end
31
31
  end
32
32
  end
@@ -54,15 +54,18 @@ ActiveRecord::ConnectionAdapters::Column.prepend Activerecord::Time::DummyTime
54
54
  module Arel
55
55
  module Visitors
56
56
  class Visitor
57
+ # rubocop: disable Naming/MethodName
58
+ # TODO(uwe): Simplify when we stop support for AR < 5
57
59
  if Gem::Version.new(Arel::VERSION) >= Gem::Version.new('5.0.0')
58
- def visit_TimeOfDay(o, _a) # rubocop: disable Style/MethodName
59
- "'#{o.to_s(:db)}'"
60
+ def visit_TimeOfDay(object, _collector)
61
+ "'#{object.to_s(:db)}'"
60
62
  end
61
63
  else
62
- def visit_TimeOfDay(o) # rubocop: disable Style/MethodName
63
- "'#{o.to_s(:db)}'"
64
+ def visit_TimeOfDay(object)
65
+ "'#{object.to_s(:db)}'"
64
66
  end
65
67
  end
68
+ # rubocop: enable Naming/MethodName
66
69
  end
67
70
  end
68
71
  end
@@ -1,5 +1,5 @@
1
1
  module Activerecord
2
2
  module Time
3
- VERSION = '0.9.1'.freeze
3
+ VERSION = '0.10.0'.freeze
4
4
  end
5
5
  end
data/lib/time_of_day.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require 'yaml'
2
2
 
3
- # rubocop: disable Rails/TimeZone, Rails/Date
4
3
  class TimeOfDay
5
4
  include Comparable
6
5
 
@@ -12,7 +11,9 @@ class TimeOfDay
12
11
  raise "Invalid hour: #{hour}" unless hour >= 0 && hour <= 23
13
12
  raise "Invalid minute: #{minute}" unless minute >= 0 && minute <= 59
14
13
  raise "Invalid second: #{second}" unless second >= 0 && second <= 59
15
- @hour, @minute, @second = hour, minute, second
14
+ @hour = hour
15
+ @minute = minute
16
+ @second = second
16
17
  end
17
18
 
18
19
  def init_with(coder)
@@ -26,27 +27,34 @@ class TimeOfDay
26
27
  end
27
28
 
28
29
  def self.now
29
- Time.now.time_of_day
30
+ Time.now.time_of_day # rubocop: disable Rails/TimeZone
30
31
  end
31
32
 
32
33
  def self.parse(string)
33
34
  return nil if string.blank?
34
- new(*parse_parts(string))
35
+ tod = _parse(string)
36
+ raise ArgumentError, "Illegal time format: '#{string}'" unless tod
37
+ tod
38
+ end
39
+
40
+ def self._parse(string)
41
+ parts = parse_parts(string)
42
+ return unless parts
43
+ new(*parts)
35
44
  end
36
45
 
37
46
  def self.parse_parts(string)
38
- string = string.strip
39
- raise "Illegal time format: '#{string}'" unless string =~ /^(\d{1,2}):?(\d{2})?(?::(\d{1,2}))?$/
40
- [Regexp.last_match(1).to_i, Regexp.last_match(2).to_i, Regexp.last_match(3).to_i]
47
+ return unless /^(?<hours>\d{1,2}):?(?<minutes>\d{2})?(?::(?<seconds>\d{1,2}))?$/ =~ string.strip
48
+ [hours.to_i, minutes.to_i, seconds.to_i]
41
49
  end
42
50
 
43
51
  def on(date)
44
- Time.local(date.year, date.month, date.day, hour, minute, second)
52
+ Time.local(date.year, date.month, date.day, hour, minute, second) # rubocop: disable Rails/TimeZone
45
53
  end
46
54
 
47
55
  def +(other)
48
56
  raise "Illegal argument: #{other.inspect}" unless other.is_a? Numeric
49
- t = Time.local(0, 1, 1, hour, minute, second)
57
+ t = Time.local(0, 1, 1, hour, minute, second) # rubocop: disable Rails/TimeZone
50
58
  t += other
51
59
  self.class.new(t.hour, t.min, t.sec)
52
60
  end
@@ -69,7 +77,7 @@ class TimeOfDay
69
77
  end
70
78
 
71
79
  def strftime(format)
72
- on(Date.today).strftime(format)
80
+ on(Date.today).strftime(format) # rubocop: disable Rails/Date
73
81
  end
74
82
 
75
83
  def to_s(with_seconds = true)
@@ -90,30 +98,3 @@ class TimeOfDay
90
98
  %("#{self}")
91
99
  end
92
100
  end
93
-
94
- class Time
95
- def time_of_day
96
- TimeOfDay.new(hour, min, sec)
97
- end
98
- end
99
-
100
- class Date
101
- def at(time_of_day)
102
- time_of_day = TimeOfDay.parse(time_of_day) if time_of_day.is_a?(String)
103
- zone = Time.zone || Time
104
- zone.local(year, month, day, time_of_day.hour, time_of_day.minute, time_of_day.second)
105
- end
106
- end
107
-
108
- module Kernel
109
- def TimeOfDay(string_or_int, *ints) # rubocop: disable Style/MethodName
110
- if string_or_int.is_a? String
111
- raise(ArgumentError, 'TimeOfDay() takes a string or multiple integers as arguments') unless ints.empty?
112
- TimeOfDay.parse(string_or_int)
113
- else
114
- TimeOfDay.new(string_or_int, *ints)
115
- end
116
- end
117
- end
118
-
119
- YAML.add_tag 'tag:yaml.org,2002:time', TimeOfDay
@@ -0,0 +1,32 @@
1
+ require 'time_of_day'
2
+
3
+ class Time
4
+ def time_of_day
5
+ TimeOfDay.new(hour, min, sec)
6
+ end
7
+ end
8
+
9
+ class Date
10
+ def at(time_of_day)
11
+ time_of_day = TimeOfDay.parse(time_of_day) if time_of_day.is_a?(String)
12
+ zone = Time.zone || Time
13
+ zone.local(year, month, day, time_of_day.hour, time_of_day.minute, time_of_day.second)
14
+ end
15
+ end
16
+
17
+ module Kernel
18
+ # rubocop: disable Naming/MethodName
19
+ def TimeOfDay(string_or_int, *ints)
20
+ if string_or_int.is_a? String
21
+ unless ints.empty?
22
+ raise(ArgumentError, 'TimeOfDay() takes a string or multiple integers as arguments')
23
+ end
24
+ TimeOfDay.parse(string_or_int)
25
+ else
26
+ TimeOfDay.new(string_or_int, *ints)
27
+ end
28
+ end
29
+ # rubocop: enable Naming/MethodName
30
+ end
31
+
32
+ YAML.add_tag 'tag:yaml.org,2002:time', TimeOfDay
data/matrix_test.rb CHANGED
@@ -5,7 +5,7 @@ system('rubocop --auto-correct') || exit(1)
5
5
  update_gemfiles = ARGV.delete('--update')
6
6
 
7
7
  require 'yaml'
8
- travis = YAML.load(File.read('.travis.yml'))
8
+ travis = YAML.safe_load(File.read('.travis.yml'))
9
9
 
10
10
  def run_script(ruby, env, gemfile)
11
11
  env.scan(/\b(?<key>[A-Z_]+)="(?<value>.+?)"/) do |key, value|
@@ -33,6 +33,8 @@ 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']['allowed_failures'].to_a)
37
+
36
38
  travis['rvm'].each do |ruby|
37
39
  next if ruby =~ /head/ # ruby-install does not support HEAD installation
38
40
  puts '#' * 80
@@ -42,13 +44,16 @@ travis['rvm'].each do |ruby|
42
44
  bundler_gem_check_cmd = "chruby-exec #{ruby} -- gem query -i -n bundler >/dev/null"
43
45
  system "#{bundler_gem_check_cmd} || chruby-exec #{ruby} -- gem install bundler" || exit(1)
44
46
  travis['gemfile'].each do |gemfile|
45
- if (travis['matrix']['exclude'].to_a + travis['matrix']['allowed_failures'].to_a)
46
- .any? { |f| f['rvm'] == ruby && f['gemfile'] == gemfile }
47
- puts 'Skipping known failure.'
48
- next
49
- end
50
47
  use_gemfile(ruby, gemfile, update_gemfiles) do
51
48
  travis['env'].each do |env|
49
+ bad_variant = bad_variants.any? do |f|
50
+ (f['rvm'].nil? || f['rvm'] == ruby) &&
51
+ (f['gemfile'].nil? || f['gemfile'] == gemfile) && (f['env'].nil? || f['env'] == env)
52
+ end
53
+ if bad_variant
54
+ puts 'Skipping known failure.'
55
+ next
56
+ end
52
57
  run_script(ruby, env, gemfile)
53
58
  end
54
59
  end
data/test/database.yml CHANGED
@@ -18,3 +18,11 @@ mysql:
18
18
  :username: rails
19
19
  :password:
20
20
  :database: activerecord-time_test
21
+ derby:
22
+ :adapter: derby
23
+ :driver: org.apache.derby.jdbc.EmbeddedDriver
24
+ :url: jdbc:derby:activerecord-time_test-derby;user=derby;create=true",
25
+ :username: derby
26
+ :pool: 50
27
+ :transaction_isolation: false
28
+ :database: activerecord-time_test-derby
data/test/test_helper.rb CHANGED
@@ -19,19 +19,19 @@ SimpleCov.start
19
19
  FileUtils.rm_rf File.expand_path(':memory:', File.dirname(__FILE__))
20
20
  config = YAML.load(IO.read(File.dirname(__FILE__) + '/database.yml'))
21
21
  ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + '/test.log')
22
- db = ENV['DB'] || 'sqlite3'
23
- if db != 'sqlite3'
24
- ActiveRecord::Base.establish_connection config[db].merge(database: nil)
22
+ adapter = ENV['ADAPTER'] || 'sqlite3'
23
+ if adapter != 'sqlite3'
24
+ ActiveRecord::Base.establish_connection config[adapter].merge(database: nil)
25
25
  begin
26
- ActiveRecord::Base.connection.drop_database config[db][:database]
26
+ ActiveRecord::Base.connection.drop_database config[adapter][:database]
27
27
  rescue => e
28
28
  puts e
29
29
  end
30
30
  begin
31
- ActiveRecord::Base.connection.create_database config[db][:database], charset: 'utf8'
31
+ ActiveRecord::Base.connection.create_database config[adapter][:database], charset: 'utf8'
32
32
  rescue => e
33
33
  puts e
34
34
  end
35
35
  end
36
- ActiveRecord::Base.establish_connection config[db]
36
+ ActiveRecord::Base.establish_connection config[adapter]
37
37
  load(File.dirname(__FILE__) + '/schema.rb') if File.exist?(File.dirname(__FILE__) + '/schema.rb')
@@ -1,6 +1,9 @@
1
1
  require File.expand_path('test_helper', File.dirname(__FILE__))
2
2
 
3
- class Event < ActiveRecord::Base
3
+ class ApplicationRecord < ActiveRecord::Base
4
+ self.abstract_class = true
5
+ end
6
+ class Event < ApplicationRecord
4
7
  end
5
8
 
6
9
  # TODO(uwe): Remove when we stop testing ActiveRecord 4.0
metadata CHANGED
@@ -1,114 +1,114 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-time
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.10.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: 2017-06-27 00:00:00.000000000 Z
11
+ date: 2018-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: activerecord
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 3.2.21
18
+ version: '4.2'
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
- version: '5.2'
23
- type: :runtime
21
+ version: '6'
22
+ name: activerecord
24
23
  prerelease: false
24
+ type: :runtime
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 3.2.21
29
+ version: '4.2'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '5.2'
32
+ version: '6'
33
33
  - !ruby/object:Gem::Dependency
34
- name: pg
35
34
  requirement: !ruby/object:Gem::Requirement
36
35
  requirements:
37
36
  - - ">="
38
37
  - !ruby/object:Gem::Version
39
38
  version: '0'
40
- type: :development
39
+ name: activerecord-jdbcpostgresql-adapter
41
40
  prerelease: false
41
+ type: :development
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
49
48
  requirement: !ruby/object:Gem::Requirement
50
49
  requirements:
51
50
  - - ">="
52
51
  - !ruby/object:Gem::Version
53
52
  version: '0'
54
- type: :development
53
+ name: activerecord-jdbcsqlite3-adapter
55
54
  prerelease: false
55
+ type: :development
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
63
62
  requirement: !ruby/object:Gem::Requirement
64
63
  requirements:
65
64
  - - ">="
66
65
  - !ruby/object:Gem::Version
67
66
  version: '0'
68
- type: :development
67
+ name: minitest-reporters
69
68
  prerelease: false
69
+ type: :development
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
77
76
  requirement: !ruby/object:Gem::Requirement
78
77
  requirements:
79
78
  - - ">="
80
79
  - !ruby/object:Gem::Version
81
80
  version: '0'
82
- type: :development
81
+ name: rake
83
82
  prerelease: false
83
+ type: :development
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
91
90
  requirement: !ruby/object:Gem::Requirement
92
91
  requirements:
93
92
  - - ">="
94
93
  - !ruby/object:Gem::Version
95
94
  version: '0'
96
- type: :development
95
+ name: rubocop
97
96
  prerelease: false
97
+ type: :development
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
105
104
  requirement: !ruby/object:Gem::Requirement
106
105
  requirements:
107
106
  - - ">="
108
107
  - !ruby/object:Gem::Version
109
108
  version: '0'
110
- type: :development
109
+ name: simplecov
111
110
  prerelease: false
111
+ type: :development
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - ">="
@@ -132,14 +132,14 @@ files:
132
132
  - README.md
133
133
  - Rakefile
134
134
  - activerecord-time.gemspec
135
- - gemfiles/ar32.gemfile
136
- - gemfiles/ar32.gemfile.lock
137
135
  - gemfiles/ar42.gemfile
138
136
  - gemfiles/ar42.gemfile.lock
139
137
  - gemfiles/ar50.gemfile
140
138
  - gemfiles/ar50.gemfile.lock
141
139
  - gemfiles/ar51.gemfile
142
140
  - gemfiles/ar51.gemfile.lock
141
+ - gemfiles/ar52.gemfile
142
+ - gemfiles/ar52.gemfile.lock
143
143
  - gemfiles/common.gemfile
144
144
  - lib/activerecord-time.rb
145
145
  - lib/activerecord-time/extension_4_2.rb
@@ -147,6 +147,7 @@ files:
147
147
  - lib/activerecord-time/extension_until_4_1.rb
148
148
  - lib/activerecord-time/version.rb
149
149
  - lib/time_of_day.rb
150
+ - lib/time_of_day/core_ext.rb
150
151
  - matrix_test.rb
151
152
  - test/database.yml
152
153
  - test/schema.rb
@@ -156,7 +157,7 @@ homepage: https://github.com/donv/activerecord-time
156
157
  licenses:
157
158
  - MIT
158
159
  metadata: {}
159
- post_install_message:
160
+ post_install_message:
160
161
  rdoc_options: []
161
162
  require_paths:
162
163
  - lib
@@ -164,16 +165,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
164
165
  requirements:
165
166
  - - ">="
166
167
  - !ruby/object:Gem::Version
167
- version: '2.1'
168
+ version: '2.2'
168
169
  required_rubygems_version: !ruby/object:Gem::Requirement
169
170
  requirements:
170
171
  - - ">="
171
172
  - !ruby/object:Gem::Version
172
173
  version: '0'
173
174
  requirements: []
174
- rubyforge_project:
175
- rubygems_version: 2.6.11
176
- signing_key:
175
+ rubyforge_project:
176
+ rubygems_version: 2.6.14.1
177
+ signing_key:
177
178
  specification_version: 4
178
179
  summary: A handler for storing TimeOfDay objects in ActiveRecord objects as sql time
179
180
  values.
@@ -1,66 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- activemodel (3.2.22.5)
5
- activesupport (= 3.2.22.5)
6
- builder (~> 3.0.0)
7
- activerecord (3.2.22.5)
8
- activemodel (= 3.2.22.5)
9
- activesupport (= 3.2.22.5)
10
- arel (~> 3.0.2)
11
- tzinfo (~> 0.3.29)
12
- activerecord-jdbc-adapter (1.3.23)
13
- activerecord (>= 2.2, < 5.0)
14
- activerecord-jdbcpostgresql-adapter (1.3.23)
15
- activerecord-jdbc-adapter (~> 1.3.23)
16
- jdbc-postgres (>= 9.1)
17
- activerecord-jdbcsqlite3-adapter (1.3.23)
18
- activerecord-jdbc-adapter (~> 1.3.23)
19
- jdbc-sqlite3 (>= 3.7.2, < 3.9)
20
- activesupport (3.2.22.5)
21
- i18n (~> 0.6, >= 0.6.4)
22
- multi_json (~> 1.0)
23
- ansi (1.5.0)
24
- arel (3.0.3)
25
- builder (3.0.4)
26
- docile (1.1.5)
27
- i18n (0.8.4)
28
- jdbc-postgres (9.4.1206)
29
- jdbc-sqlite3 (3.8.11.2)
30
- json (2.1.0)
31
- json (2.1.0-java)
32
- minitest (5.10.2)
33
- minitest-reporters (1.1.14)
34
- ansi
35
- builder
36
- minitest (>= 5.0)
37
- ruby-progressbar
38
- multi_json (1.12.1)
39
- pg (0.21.0)
40
- rake (12.0.0)
41
- ruby-progressbar (1.8.1)
42
- simplecov (0.14.1)
43
- docile (~> 1.1.0)
44
- json (>= 1.8, < 3)
45
- simplecov-html (~> 0.10.0)
46
- simplecov-html (0.10.1)
47
- sqlite3 (1.3.13)
48
- tzinfo (0.3.53)
49
-
50
- PLATFORMS
51
- java
52
- ruby
53
-
54
- DEPENDENCIES
55
- activerecord (~> 3.2.22)
56
- activerecord-jdbc-adapter
57
- activerecord-jdbcpostgresql-adapter
58
- activerecord-jdbcsqlite3-adapter
59
- minitest-reporters
60
- pg
61
- rake
62
- simplecov
63
- sqlite3
64
-
65
- BUNDLED WITH
66
- 1.15.1