Gemfile updated, Rakefile/gemspec modernized.
This commit is contained in:
parent
8698a3b01d
commit
f27600ce16
18
Gemfile
18
Gemfile
|
@ -1,15 +1,3 @@
|
||||||
source "http://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
gemspec
|
||||||
gem 'ffi-libc'
|
gem "rake", "~> 12"
|
||||||
|
|
||||||
# Add dependencies to develop your gem here.
|
|
||||||
# Include everything needed to run rake, tests, features, etc.
|
|
||||||
group :development do
|
|
||||||
gem "shoulda"
|
|
||||||
gem "yard"
|
|
||||||
gem "redcarpet"
|
|
||||||
gem "rdoc"
|
|
||||||
gem "bundler"
|
|
||||||
gem "jeweler"
|
|
||||||
gem "simplecov"
|
|
||||||
end
|
|
||||||
|
|
78
Gemfile.lock
78
Gemfile.lock
|
@ -1,52 +1,38 @@
|
||||||
GEM
|
PATH
|
||||||
remote: http://rubygems.org/
|
remote: .
|
||||||
specs:
|
specs:
|
||||||
activesupport (3.2.12)
|
timeout-interrupt (0.4.0)
|
||||||
i18n (~> 0.6)
|
ffi-libc
|
||||||
multi_json (~> 1.0)
|
|
||||||
bourne (1.1.2)
|
GEM
|
||||||
mocha (= 0.10.5)
|
remote: https://rubygems.org/
|
||||||
ffi (1.1.0)
|
specs:
|
||||||
ffi-libc (0.0.5)
|
diff-lcs (1.4.4)
|
||||||
ffi (>= 0.6.0, <= 1.1.0)
|
ffi (1.15.4)
|
||||||
git (1.2.5)
|
ffi-libc (0.1.1)
|
||||||
i18n (0.6.4)
|
ffi (~> 1.0)
|
||||||
jeweler (1.8.4)
|
rake (12.3.3)
|
||||||
bundler (~> 1.0)
|
rspec (3.10.0)
|
||||||
git (>= 1.2.5)
|
rspec-core (~> 3.10.0)
|
||||||
rake
|
rspec-expectations (~> 3.10.0)
|
||||||
rdoc
|
rspec-mocks (~> 3.10.0)
|
||||||
json (1.7.7)
|
rspec-core (3.10.1)
|
||||||
metaclass (0.0.1)
|
rspec-support (~> 3.10.0)
|
||||||
mocha (0.10.5)
|
rspec-expectations (3.10.1)
|
||||||
metaclass (~> 0.0.1)
|
diff-lcs (>= 1.2.0, < 2.0)
|
||||||
multi_json (1.6.1)
|
rspec-support (~> 3.10.0)
|
||||||
rake (10.0.3)
|
rspec-mocks (3.10.2)
|
||||||
rdoc (4.0.0)
|
diff-lcs (>= 1.2.0, < 2.0)
|
||||||
json (~> 1.4)
|
rspec-support (~> 3.10.0)
|
||||||
redcarpet (2.2.2)
|
rspec-support (3.10.3)
|
||||||
shoulda (3.3.2)
|
|
||||||
shoulda-context (~> 1.0.1)
|
|
||||||
shoulda-matchers (~> 1.4.1)
|
|
||||||
shoulda-context (1.0.2)
|
|
||||||
shoulda-matchers (1.4.2)
|
|
||||||
activesupport (>= 3.0.0)
|
|
||||||
bourne (~> 1.1.2)
|
|
||||||
simplecov (0.7.1)
|
|
||||||
multi_json (~> 1.0)
|
|
||||||
simplecov-html (~> 0.7.1)
|
|
||||||
simplecov-html (0.7.1)
|
|
||||||
yard (0.8.5.2)
|
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
ruby
|
ruby
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
bundler
|
rake (~> 12)
|
||||||
ffi-libc
|
rspec (~> 3.2)
|
||||||
jeweler
|
timeout-interrupt!
|
||||||
rdoc
|
|
||||||
redcarpet
|
BUNDLED WITH
|
||||||
shoulda
|
2.2.25
|
||||||
simplecov
|
|
||||||
yard
|
|
||||||
|
|
|
@ -67,4 +67,4 @@ And same problem you have with ruby's `Timeout.timeout`.
|
||||||
Copyleft
|
Copyleft
|
||||||
=========
|
=========
|
||||||
|
|
||||||
Copyright (c) 2013 Denis Knauf. See LICENSE.txt for further details.
|
Copyright (c) 2021 Denis Knauf. See LICENSE.txt for further details.
|
||||||
|
|
48
Rakefile
48
Rakefile
|
@ -1,46 +1,2 @@
|
||||||
# encoding: utf-8
|
require "bundler/gem_tasks"
|
||||||
|
task :default => :spec
|
||||||
require 'rubygems'
|
|
||||||
require 'bundler'
|
|
||||||
begin
|
|
||||||
Bundler.setup(:default, :development)
|
|
||||||
rescue Bundler::BundlerError => e
|
|
||||||
$stderr.puts e.message
|
|
||||||
$stderr.puts "Run `bundle install` to install missing gems"
|
|
||||||
exit e.status_code
|
|
||||||
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 = "timeout-interrupt"
|
|
||||||
gem.homepage = "http://github.com/DenisKnauf/ruby-timeout-interrupt"
|
|
||||||
gem.license = "LGPLv3"
|
|
||||||
gem.summary = %Q{"Interrupts systemcalls too."}
|
|
||||||
gem.description = %Q{Timeout-lib, which interrupts everything, also systemcalls. It uses libc-alarm.}
|
|
||||||
gem.email = "Denis.Knauf@gmail.com"
|
|
||||||
gem.authors = ["Denis Knauf"]
|
|
||||||
# dependencies defined in Gemfile
|
|
||||||
end
|
|
||||||
Jeweler::RubygemsDotOrgTasks.new
|
|
||||||
|
|
||||||
require 'rake/testtask'
|
|
||||||
Rake::TestTask.new(:test) do |test|
|
|
||||||
test.libs << 'lib' << 'test'
|
|
||||||
test.pattern = 'test/**/test_*.rb'
|
|
||||||
test.verbose = true
|
|
||||||
end
|
|
||||||
|
|
||||||
#require 'simplecov'
|
|
||||||
#Rcov::RcovTask.new do |test|
|
|
||||||
#test.libs << 'test'
|
|
||||||
#test.pattern = 'test/**/test_*.rb'
|
|
||||||
#test.verbose = true
|
|
||||||
#test.rcov_opts << '--exclude "gems/*"'
|
|
||||||
#end
|
|
||||||
|
|
||||||
task :default => :test
|
|
||||||
|
|
||||||
require 'yard'
|
|
||||||
YARD::Rake::YardocTask.new
|
|
||||||
|
|
|
@ -1,71 +1,30 @@
|
||||||
# Generated by jeweler
|
Gem::Specification.new do |spec|
|
||||||
# DO NOT EDIT THIS FILE DIRECTLY
|
spec.name = "timeout-interrupt"
|
||||||
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
spec.version = "0.4.0"
|
||||||
# -*- encoding: utf-8 -*-
|
|
||||||
|
|
||||||
Gem::Specification.new do |s|
|
spec.authors = ["Denis Knauf"]
|
||||||
s.name = "timeout-interrupt"
|
spec.description = "Timeout-lib, which interrupts everything, also systemcalls. It uses libc-alarm."
|
||||||
s.version = "0.3.0"
|
spec.summary = "\"Interrupts systemcalls too.\""
|
||||||
|
spec.licenses = ["LGPLv3"]
|
||||||
|
|
||||||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
spec.homepage = "https://git.denkn.at/deac/ruby-timeout-interrupt"
|
||||||
s.authors = ["Denis Knauf"]
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.1.0")
|
||||||
s.date = "2013-03-14"
|
|
||||||
s.description = "Timeout-lib, which interrupts everything, also systemcalls. It uses libc-alarm."
|
|
||||||
s.email = "Denis.Knauf@gmail.com"
|
|
||||||
s.extra_rdoc_files = [
|
|
||||||
"LICENSE.txt",
|
|
||||||
"README.md"
|
|
||||||
]
|
|
||||||
s.files = [
|
|
||||||
".document",
|
|
||||||
"Gemfile",
|
|
||||||
"Gemfile.lock",
|
|
||||||
"LICENSE.txt",
|
|
||||||
"README.md",
|
|
||||||
"Rakefile",
|
|
||||||
"VERSION",
|
|
||||||
"lib/timeout_interrupt.rb",
|
|
||||||
"test/helper.rb",
|
|
||||||
"test/test_ruby-timeout-interrupt.rb",
|
|
||||||
"timeout-interrupt.gemspec"
|
|
||||||
]
|
|
||||||
s.homepage = "http://github.com/DenisKnauf/ruby-timeout-interrupt"
|
|
||||||
s.licenses = ["LGPLv3"]
|
|
||||||
s.require_paths = ["lib"]
|
|
||||||
s.rubygems_version = "1.8.11"
|
|
||||||
s.summary = "\"Interrupts systemcalls too.\""
|
|
||||||
|
|
||||||
if s.respond_to? :specification_version then
|
spec.metadata["homepage_uri"] = spec.homepage
|
||||||
s.specification_version = 3
|
spec.metadata["source_code_uri"] = spec.homepage
|
||||||
|
spec.metadata["changelog_uri"] = spec.homepage
|
||||||
|
|
||||||
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
spec.add_development_dependency "rspec", "~> 3.2"
|
||||||
s.add_runtime_dependency(%q<ffi-libc>, [">= 0"])
|
|
||||||
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
# Specify which files should be added to the gem when it is released.
|
||||||
s.add_development_dependency(%q<yard>, [">= 0"])
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
||||||
s.add_development_dependency(%q<redcarpet>, [">= 0"])
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
||||||
s.add_development_dependency(%q<rdoc>, [">= 0"])
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
||||||
s.add_development_dependency(%q<bundler>, [">= 0"])
|
|
||||||
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
|
||||||
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
|
||||||
else
|
|
||||||
s.add_dependency(%q<ffi-libc>, [">= 0"])
|
|
||||||
s.add_dependency(%q<shoulda>, [">= 0"])
|
|
||||||
s.add_dependency(%q<yard>, [">= 0"])
|
|
||||||
s.add_dependency(%q<redcarpet>, [">= 0"])
|
|
||||||
s.add_dependency(%q<rdoc>, [">= 0"])
|
|
||||||
s.add_dependency(%q<bundler>, [">= 0"])
|
|
||||||
s.add_dependency(%q<jeweler>, [">= 0"])
|
|
||||||
s.add_dependency(%q<simplecov>, [">= 0"])
|
|
||||||
end
|
|
||||||
else
|
|
||||||
s.add_dependency(%q<ffi-libc>, [">= 0"])
|
|
||||||
s.add_dependency(%q<shoulda>, [">= 0"])
|
|
||||||
s.add_dependency(%q<yard>, [">= 0"])
|
|
||||||
s.add_dependency(%q<redcarpet>, [">= 0"])
|
|
||||||
s.add_dependency(%q<rdoc>, [">= 0"])
|
|
||||||
s.add_dependency(%q<bundler>, [">= 0"])
|
|
||||||
s.add_dependency(%q<jeweler>, [">= 0"])
|
|
||||||
s.add_dependency(%q<simplecov>, [">= 0"])
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
spec.bindir = "bin"
|
||||||
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
||||||
|
spec.require_paths = ["lib"]
|
||||||
|
spec.require_paths = ["lib"]
|
||||||
|
|
||||||
|
spec.add_runtime_dependency %q<ffi-libc>
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue