main 5.3.2 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/main.rb +1 -2
- data/lib/main/parameter.rb +1 -1
- data/main.gemspec +1 -3
- data/test/main_test.rb +14 -0
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDNiMzU0MjNhZDhjYTJhMzY0OGRlYTZjZWJiNDcwMTFkNjkzNDNlYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTkxZDc1ODQ2ZWQ5NzliYWNjZGY2ZTFkNzU3NDI5ZDYwNDY4Mjk1Zg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTg3NjY5NTJmOWE0N2QwYjAyOGY4ODgzNWM3NTVkNDYwZDM0YzNkYmViNmRm
|
10
|
+
ZjMxMWE4ZGViNjg5ZGY0ZWRmYmRkZDE4NzFkMjg3YzY5ZWQzZjBhYjRlYjIz
|
11
|
+
NmFiMTJjZDY5ZmEzNmFjOWE3MGU4ZjljZjgzYjhlYTVkYTVlNmQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmE1MWU1MmE3MDhiMzhiN2EzZGMxNTEyYjYyZjhiMzRlMWEwNTNkOWIxYWE1
|
14
|
+
NzJmODkyNDE3MDY0MmJlOWJiZmFkODhjMmEyYWRjNmM1YTQ4NjY5MmI1MDJh
|
15
|
+
YjEzMTFlMTU1MTRjNjM3MjY5ODNmNzZkZjdiZDczODVjNDdkMzY=
|
data/lib/main.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Main
|
2
2
|
# top level constants
|
3
3
|
#
|
4
|
-
Main::VERSION = '
|
4
|
+
Main::VERSION = '6.0.0' unless
|
5
5
|
defined? Main::VERSION
|
6
6
|
def Main.version() Main::VERSION end
|
7
7
|
|
@@ -26,7 +26,6 @@ module Main
|
|
26
26
|
'fattr' => [ 'fattr' , '>= 2.2.0' ] ,
|
27
27
|
'arrayfields' => [ 'arrayfields' , '>= 4.7.4' ] ,
|
28
28
|
'map' => [ 'map' , '>= 5.1.0' ] ,
|
29
|
-
'pry' => [ 'pry' , '>= 0.9' ] ,
|
30
29
|
}
|
31
30
|
end
|
32
31
|
|
data/lib/main/parameter.rb
CHANGED
data/main.gemspec
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
Gem::Specification::new do |spec|
|
5
5
|
spec.name = "main"
|
6
|
-
spec.version = "
|
6
|
+
spec.version = "6.0.0"
|
7
7
|
spec.platform = Gem::Platform::RUBY
|
8
8
|
spec.summary = "main"
|
9
9
|
spec.description = "a class factory and dsl for generating command line programs real quick"
|
@@ -64,8 +64,6 @@ Gem::Specification::new do |spec|
|
|
64
64
|
|
65
65
|
spec.add_dependency(*["map", ">= 5.1.0"])
|
66
66
|
|
67
|
-
spec.add_dependency(*["pry", ">= 0.9"])
|
68
|
-
|
69
67
|
|
70
68
|
spec.extensions.push(*[])
|
71
69
|
|
data/test/main_test.rb
CHANGED
@@ -935,6 +935,20 @@ class T < Test::Unit::TestCase
|
|
935
935
|
assert( logger.class==Main::Logger, "setting logger did not work" )
|
936
936
|
assert( logger.device==STDERR, "setting logger did not work" )
|
937
937
|
end
|
938
|
+
|
939
|
+
# argv with a '--' behavior
|
940
|
+
#
|
941
|
+
def test_0800
|
942
|
+
a = nil
|
943
|
+
assert_nothing_raised{
|
944
|
+
main(%w[arg --foo=42 -- --bar]){
|
945
|
+
argument('arg')
|
946
|
+
option('--foo=foo')
|
947
|
+
define_method('run'){ a = @argv }
|
948
|
+
}
|
949
|
+
}
|
950
|
+
assert a == ["--", "--bar"]
|
951
|
+
end
|
938
952
|
end
|
939
953
|
|
940
954
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: main
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ara T. Howard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chronic
|
@@ -66,20 +66,6 @@ dependencies:
|
|
66
66
|
- - ! '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 5.1.0
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: pry
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ! '>='
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0.9'
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ! '>='
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0.9'
|
83
69
|
description: a class factory and dsl for generating command line programs real quick
|
84
70
|
email: ara.t.howard@gmail.com
|
85
71
|
executables: []
|