Skip to content

Commit e69d32a

Browse files
committed
Display Time-likes with more precision
Specifically, include subseconds in the inspected version of the time-like to match the absolute maximum precision you can use when defining a Time. This means that the following two Times will no longer appear as though they are the same time when diffed: Time.at(1620017167711.0 / 1000) Time.local(2021, 5, 2, 22, 46, 7, 710_999)
1 parent 5f3bf06 commit e69d32a

22 files changed

+214
-43
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
66

77
gem "appraisal"
88
gem "childprocess"
9+
gem "climate_control"
910
gem "pry-byebug", platform: :mri
1011
gem "pry-nav", platform: :jruby
1112
gem "rake"

gemfiles/no_rails_rspec_gte_3_10.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ source "https://rubygems.org"
44

55
gem "appraisal"
66
gem "childprocess"
7+
gem "climate_control"
78
gem "pry-byebug", platform: :mri
89
gem "pry-nav", platform: :jruby
910
gem "rake"

gemfiles/no_rails_rspec_gte_3_10.gemfile.lock

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ GEM
1717
attr_extras (6.2.4)
1818
byebug (11.1.3)
1919
childprocess (4.0.0)
20+
climate_control (1.0.0)
2021
coderay (1.1.3)
2122
diff-lcs (1.4.4)
2223
method_source (1.0.0)
@@ -71,6 +72,7 @@ PLATFORMS
7172
DEPENDENCIES
7273
appraisal
7374
childprocess
75+
climate_control
7476
pry-byebug
7577
pry-nav
7678
rake
@@ -80,4 +82,4 @@ DEPENDENCIES
8082
warnings_logger
8183

8284
BUNDLED WITH
83-
2.1.4
85+
2.2.16

gemfiles/no_rails_rspec_lt_3_10.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ source "https://rubygems.org"
44

55
gem "appraisal"
66
gem "childprocess"
7+
gem "climate_control"
78
gem "pry-byebug", platform: :mri
89
gem "pry-nav", platform: :jruby
910
gem "rake"

gemfiles/no_rails_rspec_lt_3_10.gemfile.lock

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ GEM
1717
attr_extras (6.2.4)
1818
byebug (11.1.3)
1919
childprocess (4.0.0)
20+
climate_control (1.0.0)
2021
coderay (1.1.3)
2122
diff-lcs (1.4.4)
2223
method_source (1.0.0)
@@ -71,6 +72,7 @@ PLATFORMS
7172
DEPENDENCIES
7273
appraisal
7374
childprocess
75+
climate_control
7476
pry-byebug
7577
pry-nav
7678
rake
@@ -80,4 +82,4 @@ DEPENDENCIES
8082
warnings_logger
8183

8284
BUNDLED WITH
83-
2.1.4
85+
2.2.16

gemfiles/rails_5_0_rspec_gte_3_10.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ source "https://rubygems.org"
44

55
gem "appraisal"
66
gem "childprocess"
7+
gem "climate_control"
78
gem "pry-byebug", platform: :mri
89
gem "pry-nav", platform: :jruby
910
gem "rake"

gemfiles/rails_5_0_rspec_lt_3_10.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ source "https://rubygems.org"
44

55
gem "appraisal"
66
gem "childprocess"
7+
gem "climate_control"
78
gem "pry-byebug", platform: :mri
89
gem "pry-nav", platform: :jruby
910
gem "rake"

gemfiles/rails_5_1_rspec_gte_3_10.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ source "https://rubygems.org"
44

55
gem "appraisal"
66
gem "childprocess"
7+
gem "climate_control"
78
gem "pry-byebug", platform: :mri
89
gem "pry-nav", platform: :jruby
910
gem "rake"

gemfiles/rails_5_1_rspec_lt_3_10.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ source "https://rubygems.org"
44

55
gem "appraisal"
66
gem "childprocess"
7+
gem "climate_control"
78
gem "pry-byebug", platform: :mri
89
gem "pry-nav", platform: :jruby
910
gem "rake"

gemfiles/rails_5_2_rspec_gte_3_10.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ source "https://rubygems.org"
44

55
gem "appraisal"
66
gem "childprocess"
7+
gem "climate_control"
78
gem "pry-byebug", platform: :mri
89
gem "pry-nav", platform: :jruby
910
gem "rake"

0 commit comments

Comments
 (0)