-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
28 additions
and
84 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' | ||
|
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,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" | ||
|
@@ -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 |