diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..eca690e --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +3.0.5 diff --git a/Gemfile.lock b/Gemfile.lock index 09b6de6..424b257 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -7,27 +7,27 @@ GEM remote: https://rubygems.org/ specs: diff-lcs (1.5.0) - docile (1.3.4) + docile (1.4.0) eventmachine (1.2.7) - rspec (3.11.0) - rspec-core (~> 3.11.0) - rspec-expectations (~> 3.11.0) - rspec-mocks (~> 3.11.0) - rspec-core (3.11.0) - rspec-support (~> 3.11.0) - rspec-expectations (3.11.0) + rspec (3.12.0) + rspec-core (~> 3.12.0) + rspec-expectations (~> 3.12.0) + rspec-mocks (~> 3.12.0) + rspec-core (3.12.1) + rspec-support (~> 3.12.0) + rspec-expectations (3.12.2) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-mocks (3.11.1) + rspec-support (~> 3.12.0) + rspec-mocks (3.12.3) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-support (3.11.0) - simplecov (0.21.2) + rspec-support (~> 3.12.0) + rspec-support (3.12.0) + simplecov (0.22.0) docile (~> 1.1) simplecov-html (~> 0.11) simplecov_json_formatter (~> 0.1) simplecov-html (0.12.3) - simplecov_json_formatter (0.1.2) + simplecov_json_formatter (0.1.4) PLATFORMS ruby @@ -39,4 +39,4 @@ DEPENDENCIES simplecov BUNDLED WITH - 1.16.2 + 2.2.33 diff --git a/rethinkdb.gemspec b/rethinkdb.gemspec index 41d7b14..b0a6fea 100644 --- a/rethinkdb.gemspec +++ b/rethinkdb.gemspec @@ -9,7 +9,7 @@ Gem::Specification.new do |s| s.license = 'Apache-2.0' s.files = Dir['lib/*.rb'] - s.required_ruby_version = '>= 1.9.0' + s.required_ruby_version = '>= 2.7.7' s.add_development_dependency 'rspec' s.add_development_dependency 'simplecov' diff --git a/spec/unit/rpp_spec.rb b/spec/unit/rpp_spec.rb index b83cd3e..c72a1f4 100644 --- a/spec/unit/rpp_spec.rb +++ b/spec/unit/rpp_spec.rb @@ -39,7 +39,7 @@ context 'with correct params' do let(:time) { Time.now } - let(:zone) { Time.now.isdst ? '+02:00' : '+01:00' } + let(:zone) { time.utc_offset } let(:params) { pt_hash.merge('timezone' => zone, 'epoch_time' => time.to_i)} let(:q) { double("q") }