Skip to content

Commit

Permalink
Drop Jeweler to manage the gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Aug 31, 2022
1 parent 02ad51a commit e20288a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 84 deletions.
14 changes: 1 addition & 13 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,4 @@

source 'http://rubygems.org'

gem 'ruby2ruby', '>= 2.4.0'
gem 'ruby_parser', '>= 3.10.1'
gem 'sexp_processor', '>= 4.10.0'

# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
group :development do
gem 'jeweler'
gem 'rake'
gem 'rdoc', '~> 3.12'
gem 'simplecov'
gem 'test-unit'
end
gemspec
23 changes: 0 additions & 23 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,6 @@ end
end
require 'rake'

require 'jeweler'
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
gem.name = "safemode"
gem.homepage = "https://github.com/svenfuchs/safemode"
gem.license = "MIT"
gem.summary = %Q{A library for safe evaluation of Ruby code based on ParseTree/RubyParser and Ruby2Ruby}
gem.description = %Q{A library for safe evaluation of Ruby code based on RubyParser and Ruby2Ruby. Provides Rails ActionView template handlers for ERB and Haml.}
gem.email = "[email protected]"
gem.authors = [
"Sven Fuchs",
"Peter Cooper",
"Matthias Viehweger",
"Kingsley Hendrickse",
"Ohad Levy",
"Dmitri Dolguikh",
]
gem.files.exclude '.github/workflows/ci.yml'
gem.required_ruby_version = '>= 2.5', '< 4'
# dependencies defined in Gemfile
end
Jeweler::RubygemsDotOrgTasks.new

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
Expand Down
75 changes: 27 additions & 48 deletions safemode.gemspec
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
# stub: safemode 1.3.7 ruby lib
# frozen_string_literal: true

require 'date'

Gem::Specification.new do |s|
s.name = "safemode".freeze
s.version = "1.3.7"
s.date = Date.today

s.summary = "A library for safe evaluation of Ruby code based on ParseTree/RubyParser and Ruby2Ruby"
s.description = "A library for safe evaluation of Ruby code based on RubyParser and Ruby2Ruby. Provides Rails ActionView template handlers for ERB and Haml."
s.homepage = "https://github.com/svenfuchs/safemode"
s.licenses = ["MIT"]

s.authors = [
"Sven Fuchs",
"Peter Cooper",
"Matthias Viehweger",
"Kingsley Hendrickse",
"Ohad Levy",
"Dmitri Dolguikh",
]

s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
s.require_paths = ["lib".freeze]
s.authors = ["Sven Fuchs".freeze, "Peter Cooper".freeze, "Matthias Viehweger".freeze, "Kingsley Hendrickse".freeze, "Ohad Levy".freeze, "Dmitri Dolguikh".freeze]
s.date = "2022-04-26"
s.description = "A library for safe evaluation of Ruby code based on RubyParser and Ruby2Ruby. Provides Rails ActionView template handlers for ERB and Haml.".freeze
s.email = "[email protected]".freeze
s.extra_rdoc_files = [
"LICENSE",
"README.markdown"
Expand Down Expand Up @@ -46,43 +53,15 @@ Gem::Specification.new do |s|
"test/test_safemode_eval.rb",
"test/test_safemode_parser.rb"
]
s.homepage = "https://github.com/svenfuchs/safemode".freeze
s.licenses = ["MIT".freeze]
s.required_ruby_version = Gem::Requirement.new([">= 2.5".freeze, "< 4".freeze])
s.rubygems_version = "2.7.6".freeze
s.summary = "A library for safe evaluation of Ruby code based on ParseTree/RubyParser and Ruby2Ruby".freeze

if s.respond_to? :specification_version then
s.specification_version = 4
s.required_ruby_version = ">= 2.5", "< 4"

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<ruby2ruby>.freeze, [">= 2.4.0"])
s.add_runtime_dependency(%q<ruby_parser>.freeze, [">= 3.10.1"])
s.add_runtime_dependency(%q<sexp_processor>.freeze, [">= 4.10.0"])
s.add_development_dependency(%q<jeweler>.freeze, [">= 0"])
s.add_development_dependency(%q<rake>.freeze, [">= 0"])
s.add_development_dependency(%q<rdoc>.freeze, ["~> 3.12"])
s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
s.add_development_dependency(%q<test-unit>.freeze, [">= 0"])
else
s.add_dependency(%q<ruby2ruby>.freeze, [">= 2.4.0"])
s.add_dependency(%q<ruby_parser>.freeze, [">= 3.10.1"])
s.add_dependency(%q<sexp_processor>.freeze, [">= 4.10.0"])
s.add_dependency(%q<jeweler>.freeze, [">= 0"])
s.add_dependency(%q<rake>.freeze, [">= 0"])
s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
s.add_dependency(%q<test-unit>.freeze, [">= 0"])
end
else
s.add_dependency(%q<ruby2ruby>.freeze, [">= 2.4.0"])
s.add_dependency(%q<ruby_parser>.freeze, [">= 3.10.1"])
s.add_dependency(%q<sexp_processor>.freeze, [">= 4.10.0"])
s.add_dependency(%q<jeweler>.freeze, [">= 0"])
s.add_dependency(%q<rake>.freeze, [">= 0"])
s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
s.add_dependency(%q<test-unit>.freeze, [">= 0"])
end
end
s.add_runtime_dependency "ruby2ruby", ">= 2.4.0"
s.add_runtime_dependency "ruby_parser", ">= 3.10.1"
s.add_runtime_dependency "sexp_processor", ">= 4.10.0"

s.add_development_dependency "rake"
s.add_development_dependency "rdoc"
s.add_development_dependency "simplecov"
s.add_development_dependency "test-unit"
end

0 comments on commit e20288a

Please sign in to comment.