do no modify frozen class. v6.2.1

master
ahoward 6 years ago
parent f2dd3c98e1
commit 9133795315
  1. 1
      LICENSE
  2. 6
      Rakefile
  3. 10
      lib/main.rb
  4. 4
      lib/main/stdext.rb
  5. 15
      main.gemspec
  6. BIN
      pkg/main-6.2.1.gem

@ -1 +0,0 @@
same as Ruby's

@ -4,7 +4,7 @@ This.email = "ara.t.howard@gmail.com"
This.homepage = "https://github.com/ahoward/#{ This.lib }"
task :license do
open('LICENSE', 'w'){|fd| fd.puts "same as ruby's"}
open('LICENSE', 'w'){|fd| fd.puts "Ruby"}
end
task :default do
@ -93,7 +93,7 @@ task :gemspec do
test_files = "test/#{ lib }.rb" if File.file?("test/#{ lib }.rb")
summary = object.respond_to?(:summary) ? object.summary : "summary: #{ lib } kicks the ass"
description = object.respond_to?(:description) ? object.description : "description: #{ lib } kicks the ass"
license = object.respond_to?(:license) ? object.license : "same as ruby's"
license = object.respond_to?(:license) ? object.license : "Ruby"
if This.extensions.nil?
This.extensions = []
@ -297,7 +297,7 @@ BEGIN {
# discover full path to this ruby executable
#
c = Config::CONFIG
c = RbConfig::CONFIG
bindir = c["bindir"] || c['BINDIR']
ruby_install_name = c['ruby_install_name'] || c['RUBY_INSTALL_NAME'] || 'ruby'
ruby_ext = c['EXEEXT'] || ''

@ -1,7 +1,7 @@
module Main
# top level constants
#
Main::VERSION = '6.2.0' unless
Main::VERSION = '6.2.1' unless
defined? Main::VERSION
def Main.version() Main::VERSION end
@ -22,10 +22,10 @@ module Main
#
def Main.dependencies
{
'chronic' => [ 'chronic' , '>= 0.6.2' ] ,
'fattr' => [ 'fattr' , '>= 2.2.0' ] ,
'arrayfields' => [ 'arrayfields' , '>= 4.7.4' ] ,
'map' => [ 'map' , '>= 6.1.0' ] ,
'chronic' => [ 'chronic', '~> 0.6', '>= 0.6.2' ] ,
'fattr' => [ 'fattr', '~> 2.2', '>= 2.2.0' ] ,
'arrayfields' => [ 'arrayfields', '~> 4.7', '>= 4.7.4' ] ,
'map' => [ 'map', '~> 6.1', '>= 6.1.0' ] ,
}
end

@ -14,7 +14,7 @@ private
def abort(message = nil)
if message
message = message.to_s
message.singleton_class{ fattr 'abort' => true }
message.singleton_class{ fattr 'abort' => true } unless message.frozen?
STDERR.puts message
end
exit 1
@ -27,7 +27,7 @@ module Process
def abort(message = nil)
if message
message = message.to_s
message.singleton_class{ fattr 'abort' => true }
message.singleton_class{ fattr 'abort' => true } unless message.frozen?
STDERR.puts message
end
exit 1

@ -3,15 +3,14 @@
Gem::Specification::new do |spec|
spec.name = "main"
spec.version = "6.2.0"
spec.version = "6.2.1"
spec.platform = Gem::Platform::RUBY
spec.summary = "main"
spec.description = "a class factory and dsl for generating command line programs real quick"
spec.license = "same as ruby's"
spec.license = "Ruby"
spec.files =
["LICENSE",
"README",
["README",
"README.erb",
"Rakefile",
"TODO",
@ -57,13 +56,13 @@ Gem::Specification::new do |spec|
spec.test_files = nil
spec.add_dependency(*["chronic", ">= 0.6.2"])
spec.add_dependency(*["chronic", "~> 0.6", ">= 0.6.2"])
spec.add_dependency(*["fattr", ">= 2.2.0"])
spec.add_dependency(*["fattr", "~> 2.2", ">= 2.2.0"])
spec.add_dependency(*["arrayfields", ">= 4.7.4"])
spec.add_dependency(*["arrayfields", "~> 4.7", ">= 4.7.4"])
spec.add_dependency(*["map", ">= 6.1.0"])
spec.add_dependency(*["map", "~> 6.1", ">= 6.1.0"])
spec.extensions.push(*[])

Binary file not shown.
Loading…
Cancel
Save