Skip to content

Commit

Permalink
Merge pull request #280 from webmachine/gemspec-update
Browse files Browse the repository at this point in the history
Gemspec clean up
  • Loading branch information
seancribbs authored Mar 7, 2024
2 parents 13b6c95 + 0600087 commit 8added2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
13 changes: 6 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
require 'rbconfig'
source 'https://rubygems.org'
gemspec

group :development do
gem 'yard', '~> 0.9'
gem 'rake', '~> 12.0'
gem 'standard', '~> 1.21'
gem 'webrick', '~> 1.7'
end

group :test do
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'
gem 'websocket_parser', '~>1.0'
end

group :docs do
platform :mri_19, :mri_20 do
gem 'redcarpet', '~> 3.4'
end
gem 'redcarpet', '~> 3.4', platform: :ruby
gem 'yard', '~> 0.9'
end

platforms :jruby do
Expand Down
10 changes: 4 additions & 6 deletions webmachine.gemspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
$:.push File.expand_path('../lib', __FILE__)
require 'webmachine/version'
require_relative 'lib/webmachine/version'

Gem::Specification.new do |gem|
gem.name = 'webmachine'
Expand All @@ -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'
gem.metadata['bug_tracker_uri'] = "#{gem.homepage}/issues"
gem.metadata['changelog_uri'] = "#{gem.homepage}/blob/HEAD/CHANGELOG.md"
gem.metadata['documentation_uri'] = "https://www.rubydoc.info/gems/webmachine/#{gem.version}"
Expand All @@ -24,13 +24,11 @@ Gem::Specification.new do |gem|

gem.required_ruby_version = '>= 2.6.0'

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')

gem.add_development_dependency('webrick', ['~> 1.7.0'])
gem.add_development_dependency('standard', ['~> 1.21'])
ignores = File.read('.gitignore').split(/\r?\n/).reject { |f| f =~ /^(#.+|\s*)$/ }.map { |f| Dir[f] }.flatten
gem.files = (Dir['**/*', '.gitignore'] - ignores).reject do |f|
!File.file?(f) || f.start_with?(*%w[. Gemfile RELEASING Rakefile doc/ memory_test pkg/ spec/ vendor/ webmachine.gemspec])
Expand Down

0 comments on commit 8added2

Please sign in to comment.