-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Use Gemfile
s to manage dev/test dependencies + cleanup
#1949
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9b8b6e3
Manage development dependencies with `Gemfile`s
dentarg 0a8ea48
Remove unnecessary sinatra-contrib dev deps
dentarg 4735681
Remove Gemfile groups, it is all test/dev deps
dentarg 6871ce5
Remove open-ended dependencies in gemspecs
dentarg e3b82c0
Document `yard` dependency
dentarg 10b9b5c
Remove `activesupport` from Gemfile
dentarg 6857f5d
Remove `json` from Gemfile
dentarg 607cb3a
Remove `jar-dependencies` from Gemfile
dentarg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,45 +1,26 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
gemspec | ||
|
||
gem 'rack-protection', path: '../rack-protection' | ||
gem 'sinatra', path: '..' | ||
|
||
gem 'rack-test', github: 'rack/rack-test' | ||
|
||
group :development, :test do | ||
platform :jruby do | ||
gem 'json' | ||
gem 'rdoc' | ||
gem 'therubyrhino' | ||
gem 'jar-dependencies', '= 0.4.1' # Gem::LoadError with jar-dependencies 0.4.2 | ||
end | ||
|
||
platform :jruby, :ruby do | ||
gem 'hamlit', '>= 3' | ||
gem 'liquid' | ||
# Use main until there's a slim release that can be used with Tilt 2.1.0 | ||
# https://github.com/slim-template/slim/pull/910 | ||
gem 'slim', github: 'slim-template/slim' | ||
end | ||
|
||
platform :ruby do | ||
gem 'execjs', '>= 2.0.0' | ||
gem 'nokogiri', '>= 1.13.6' | ||
gem 'redcarpet', '>= 3.5.1' | ||
gem 'yajl-ruby' | ||
end | ||
|
||
gem 'multi_json' | ||
end | ||
gemspec | ||
|
||
rack_version = ENV['rack'].to_s | ||
rack_version = nil if rack_version.empty? || (rack_version == 'stable') | ||
rack_version = { github: 'rack/rack' } if rack_version == 'head' | ||
gem 'rack', rack_version | ||
|
||
tilt_version = ENV['tilt'].to_s | ||
tilt_version = nil if tilt_version.empty? || (tilt_version == 'stable') | ||
tilt_version = { github: 'jeremyevans/tilt' } if tilt_version == 'head' | ||
|
||
gem 'erubi' | ||
gem 'haml' | ||
gem 'hamlit', '>= 3' | ||
gem 'rack', rack_version | ||
gem 'rack-protection', path: '../rack-protection' | ||
gem 'rack-test', github: 'rack/rack-test' | ||
gem 'rake', '>= 12.3.3' | ||
gem 'rspec', '~> 3' | ||
gem 'sinatra', path: '..' | ||
gem 'slim' | ||
gem 'tilt', tilt_version | ||
gem 'yajl-ruby', platforms: [:ruby] # c-ext |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It is still open-ended 😄 (same with
multi_json
in sinatra-contrib)Not sure we need to act, hopefully conservative gems that don't change the API anytime soon (if ever?)