-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert "Drop MRI 1.8.7-2.2 support (#158)" #250
base: main
Are you sure you want to change the base?
Changes from 10 commits
9860cb9
14f36cd
79a6de1
2d022fc
df41df2
1a5b85d
a19e707
e1673bc
4ec2725
594690d
386ddb6
7a2ec8e
f722561
12002da
df71fbb
5fcfb43
975ded0
46d71e6
c07c0c9
1ceb8ab
8bffc9d
f3595ab
f582740
1579ad0
a524ead
df2a1e9
0a02c86
be18441
198a324
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--format progress | ||
--color | ||
--require spec_helper | ||
pboling marked this conversation as resolved.
Show resolved
Hide resolved
|
||
--warnings |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
inherit_gem: | ||
rubocop-lts: config/rubygem_rspec.yml | ||
|
||
RSpec/ExampleLength: | ||
Enabled: false | ||
|
||
RSpec/MultipleExpectations: | ||
Enabled: false | ||
|
||
RSpec/DescribeClass: | ||
Enabled: false | ||
|
||
# TODO: We would need to implement Mutexes in order to make violations thread safe. | ||
# But even then they would still trigger the violation. | ||
# See: https://coderscat.com/ruby-change-current-working-directory/ | ||
ThreadSafety/DirChdir: | ||
Enabled: false |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
`ruby 3.4.2 | ||
ruby 3.3.7 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# These gems are locked for Ruby 1.8.7 compatibility | ||
gem "i18n", "~> 0.6.0" | ||
gem "activesupport", "~> 3.2.21" | ||
gem "rake", "~> 10.5" | ||
gem "rack", "~> 1.6.5" | ||
gem "benchmark", "~> 0.3" # Removed from Std Lib in Ruby 3.5 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# These gems are locked for Ruby 1.9 & 2.0 compatibility | ||
gem "activesupport", "~> 4.2.7" | ||
gem "rack", "~> 1.6.5" | ||
gem "benchmark", "~> 0.3" # Removed from Std Lib in Ruby 3.5 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# These gems are locked for Ruby 2.1 compatibility | ||
gem "activesupport", "~> 4.2.7" | ||
gem "rack", "~> 1.6.5" | ||
gem "benchmark", "~> 0.4" # Removed from Std Lib in Ruby 3.5 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,51 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative "lib/appraisal/version" | ||
# TODO: Switch to require_relative once support for Ruby < 2 is dropped. | ||
# require_relative "lib/appraisal/version" | ||
|
||
$:.push(File.expand_path("lib", __dir__)) | ||
require "appraisal/version" | ||
|
||
Gem::Specification.new do |s| | ||
s.name = "appraisal" | ||
s.version = Appraisal::VERSION.dup | ||
s.platform = Gem::Platform::RUBY | ||
s.authors = ["Joe Ferris", "Prem Sichanugrist"] | ||
s.email = ["[email protected]", "[email protected]"] | ||
s.homepage = "http://github.com/thoughtbot/appraisal" | ||
s.summary = "Find out what your Ruby gems are worth" | ||
s.name = "appraisal" | ||
s.version = Appraisal::VERSION.dup | ||
s.platform = Gem::Platform::RUBY | ||
s.authors = ["Joe Ferris", "Prem Sichanugrist"] | ||
s.email = ["[email protected]", "[email protected]"] | ||
s.homepage = "http://github.com/thoughtbot/appraisal" | ||
s.summary = "Find out what your Ruby gems are worth" | ||
s.description = 'Appraisal integrates with bundler and rake to test your library against different versions of dependencies in repeatable scenarios called "appraisals."' | ||
s.license = "MIT" | ||
s.license = "MIT" | ||
|
||
# specify which files should be added to the gem when it is released. | ||
s.files = Dir[ | ||
# Splats (keep alphabetical) | ||
"lib/**/*.rb", | ||
] | ||
|
||
# automatically included with gem package, no need to list twice (i.e. do not list in files above). | ||
s.extra_rdoc_files = Dir[ | ||
# Files (keep alphabetical) | ||
"CONTRIBUTING.md", | ||
"MIT-LICENSE", | ||
"README.md", | ||
"SECURITY.md", | ||
] | ||
|
||
# bin/ is scripts, in any available language, for development of this specific gem | ||
# exe/ is for ruby scripts that will ship with this gem to be used by other tools | ||
s.bindir = "exe" | ||
# files listed are relative paths from bindir above. | ||
s.executables = [ | ||
"appraisal", | ||
] | ||
|
||
s.files = `git ls-files`.split("\n") | ||
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") | ||
s.executables = `git ls-files -- exe/*`.split("\n").map { |f| File.basename(f) } | ||
s.bindir = "exe" | ||
s.required_ruby_version = ">= 1.8.7" | ||
|
||
s.required_ruby_version = ">= 2.3.0" | ||
s.add_runtime_dependency("bundler", ">= 1.17.3") # Last version supporting Ruby 1.8.7 | ||
s.add_runtime_dependency("rake", ">= 10") # Last version supporting Ruby 1.8.7 | ||
s.add_runtime_dependency("thor", ">= 0.14.0") | ||
|
||
s.add_dependency("rake") | ||
s.add_dependency("bundler") | ||
s.add_dependency("thor", ">= 0.14.0") | ||
s.add_development_dependency("activesupport", ">= 3.2.21") | ||
s.add_development_dependency("rspec", "~> 3.0") | ||
end |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No need to lint this file : it is generated and about to disappear rubygems/rubygems#8345 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 the complication is the linting is automated when running the default rake task now, and violations will clog up the new lint lockfile. This will encourage us to get rid of files we don't use! |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,5 @@ begin | |
Appraisal::CLI.start | ||
rescue Appraisal::AppraisalsNotFound => e | ||
puts e.message | ||
exit 127 | ||
exit(127) | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# frozen_string_literal: true | ||
|
||
# We run rubocop on the latest version of Ruby, | ||
# but in support of the oldest supported version of Ruby | ||
|
||
gem "rubocop-lts", "~> 0.1", ">= 0.1.1" # Style and Linting support for Ruby >= 1.8 | ||
gem "rubocop-packaging", "~> 0.5", ">= 0.5.2" | ||
gem "rubocop-rspec", "~> 3.2" | ||
gem "standard", ">= 1.35.1", "!= 1.41.1", "!= 1.42.0" | ||
|
||
# Std Lib extractions | ||
gem "benchmark", "~> 0.4" # Removed from Std Lib in Ruby 3.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should add EOL Rubies in
matrix:ruby
above?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, that's my next task.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding them one by one now...