-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade minimum required Ruby to v3.1.2
I am considering this the correct minimum Ruby because it is the Ruby which is available in Debian 12 (bookworm), which is current in January 2025. * https://www.debian.org/releases/ * https://packages.debian.org/bookworm/ruby/ Most critically this drops support for v2.2, allowing use of the standard library Bundler (i.e 2.x) and using the latests Rubocop. Some rubocop refactoring, such as: * remove the bundler dependency, becuase it is built in now * add required Rubygems MFA to the gemspec Github Action script and CI updates: * drop the unsupported Rubies and added 3.1, 3.2, 3.4 * add simplecov JSON and lcov reporting * switch ubuntu and macos to latest versions * remove ruby version specification from the `coverage` step, because it should use the default/minimum Ruby specified in the `.ruby-version` * remove the bundler version specification * update action/checkout step to v4 * add Yardoc support * add bundle:outdate Rake task
- Loading branch information
Showing
12 changed files
with
101 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
require: rubocop-rspec | ||
|
||
AllCops: | ||
Exclude: | ||
- 'vendor/**/*' | ||
- 'rspec-timecop.gemspec' | ||
- 'lib/rspec/timecop/version.rb' | ||
NewCops: enable | ||
|
||
Gemspec/DevelopmentDependencies: | ||
EnforcedStyle: gemspec | ||
|
||
Metrics/MethodLength: | ||
Max: 20 | ||
|
||
Documentation: | ||
RSpec/EmptyExampleGroup: | ||
Enabled: false | ||
|
||
# Because of the way that blocks are used in RSpecs can end up being long when | ||
# example groups are nested or many examples are checked. | ||
# A similar pattern exists in the DSL for gemspec files. | ||
Metrics/BlockLength: | ||
Exclude: | ||
- '*.gemspec' | ||
- 'spec/**/*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,19 +5,19 @@ | |
:why: | ||
:versions: [] | ||
:when: 2018-06-13 15:20:17.351348000 Z | ||
- - :whitelist | ||
- - :permit | ||
- Apache 2.0 | ||
- :who: Andrew Sullivan Cant <[email protected]> | ||
:why: SugarCRM's primary approved open source license | ||
:versions: [] | ||
:when: 2018-06-18 19:28:33.314061000 Z | ||
- - :whitelist | ||
- - :permit | ||
- MIT | ||
- :who: Andrew Sullivan Cant <[email protected]> | ||
:why: SugarCRM's secondary approved open source license | ||
:versions: [] | ||
:when: 2018-06-13 15:18:36.240771000 Z | ||
- - :whitelist | ||
- - :permit | ||
- BSD | ||
- :who: Andrew Sullivan Cant <[email protected]> | ||
:why: SugarCRM's secondary approved open source license | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# -*- encoding: utf-8 -*- | ||
# frozen_string_literal: true | ||
|
||
require 'rspec/core' | ||
require 'timecop' | ||
require 'rspec/timecop/version' | ||
require 'rspec/timecop/helpers' | ||
|
||
module RSpec | ||
module Timecop | ||
# Your code goes here... | ||
module Timecop # rubocop:disable Style/Documentation | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# -*- encoding: utf-8 -*- | ||
# frozen_string_literal: true | ||
|
||
module RSpec | ||
module Timecop | ||
VERSION = '0.3.0' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# -*- encoding: utf-8 -*- | ||
lib = File.expand_path('../lib', __FILE__) | ||
# frozen_string_literal: true | ||
|
||
lib = File.expand_path('lib', __dir__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'rspec/timecop/version' | ||
|
||
|
@@ -8,27 +9,33 @@ Gem::Specification.new do |spec| | |
spec.version = RSpec::Timecop::VERSION | ||
spec.authors = ['Andrew Sullivan Cant'] | ||
spec.email = ['[email protected]'] | ||
spec.summary = %q{RSpec extension to control time.} | ||
spec.description = %q{Provides helper methods for using Timecop in RSpec examples.} | ||
spec.summary = 'RSpec extension to control time.' | ||
spec.description = 'Provides helper methods for using Timecop in RSpec examples.' | ||
spec.homepage = 'http://github.com/sugarcrm/rspec-timecop' | ||
spec.license = 'MIT' | ||
|
||
spec.files = `git ls-files -z`.split("\x0") | ||
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } | ||
spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) | ||
spec.require_paths = ['lib'] | ||
|
||
spec.add_runtime_dependency 'rspec-core', '>= 2.99.0' | ||
spec.add_runtime_dependency 'timecop', '~> 0.8.0' | ||
spec.add_development_dependency 'rubocop', '>= 0.30.0' | ||
spec.add_development_dependency 'bundler', '~> 1.7' | ||
spec.add_development_dependency 'rake', '~> 10.0' | ||
spec.add_development_dependency 'rspec', '~> 2.99.0' | ||
spec.required_ruby_version = '>= 3.1.2' | ||
|
||
spec.metadata['rubygems_mfa_required'] = 'true' | ||
|
||
spec.add_dependency 'rspec-core', '>= 2.99.0' | ||
spec.add_dependency 'timecop', '~> 0.8' | ||
|
||
spec.add_development_dependency 'rake', '~> 12.2' | ||
spec.add_development_dependency 'rspec', '~> 3.0' | ||
|
||
# Dependencies whose APIs we do not really depend upon, and can be upgraded | ||
# without limiting. | ||
spec.add_development_dependency 'bundler-audit' | ||
spec.add_development_dependency 'license_finder' | ||
spec.add_development_dependency 'rubocop' | ||
spec.add_development_dependency 'rubocop-rspec' | ||
spec.add_development_dependency 'simplecov' | ||
spec.add_development_dependency 'simplecov-lcov' | ||
spec.add_development_dependency 'yard' | ||
spec.add_development_dependency 'yardstick' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters