Skip to content
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

Gemspec clean up #280

Merged
merged 6 commits into from
Mar 7, 2024
Merged

Gemspec clean up #280

merged 6 commits into from
Mar 7, 2024

Conversation

orien
Copy link
Contributor

@orien orien commented Feb 27, 2024

A small clean up of the gemspec and gemfile.

@@ -1,24 +1,23 @@
require 'rbconfig'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rbconfig doesn't appear to be used. Let's remove the require statement.

source 'https://rubygems.org'
gemspec

group :development do
gem 'yard', '~> 0.9'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move yard into the docs group below.

Comment on lines +6 to +7
gem 'standard', '~> 1.21'
gem 'webrick', '~> 1.7'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move standard and webrick dependency declaration over from the gemspec file to be grouped here with the other development dependencies.

Comment on lines -11 to +14
gem 'rspec', '~> 3.0', '>= 3.6.0'
gem 'rspec-its', '~> 1.2'
gem 'rack', '~> 2.0'
gem 'rack-test', '~> 0.7'
gem 'rspec', '~> 3.0', '>= 3.6.0'
gem 'rspec-its', '~> 1.2'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's sort dependencies in alphabetical order.

platform :mri_19, :mri_20 do
gem 'redcarpet', '~> 3.4'
end
gem 'redcarpet', '~> 3.4', platform: :ruby
Copy link
Contributor Author

@orien orien Feb 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use the ruby platform to cover MRI version 3.x as well.

$:.push File.expand_path('../lib', __FILE__)
require 'webmachine/version'
require_relative 'lib/webmachine/version'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A small simplification.

@@ -15,6 +14,7 @@ Gem::Specification.new do |gem|
gem.email = ['[email protected]']
gem.license = 'Apache-2.0'

gem.metadata['allowed_push_host'] = 'https://rubygems.org'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specify where the gem package should be pushed upon release.

Comment on lines -27 to +30
gem.add_runtime_dependency('i18n', ['>= 0.4.0'])
gem.add_runtime_dependency('multi_json')
gem.add_runtime_dependency('as-notifications', ['>= 1.0.2', '< 2.0'])
gem.add_runtime_dependency('base64')
gem.add_runtime_dependency('i18n', ['>= 0.4.0'])
gem.add_runtime_dependency('multi_json')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alphabetical order.

Comment on lines -32 to -33
gem.add_development_dependency('webrick', ['~> 1.7.0'])
gem.add_development_dependency('standard', ['~> 1.21'])
Copy link
Contributor Author

@orien orien Feb 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to the gemfile for consistency.

@orien orien marked this pull request as ready for review February 27, 2024 03:55
@orien
Copy link
Contributor Author

orien commented Mar 7, 2024

@seancribbs perhaps this PR has slipped through the cracks.

@seancribbs seancribbs merged commit 8added2 into master Mar 7, 2024
14 checks passed
@orien orien deleted the gemspec-update branch March 7, 2024 19:51
@orien
Copy link
Contributor Author

orien commented Mar 8, 2024

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants