applix 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +1 -1
- data/applix.gemspec +7 -2
- data/lib/applix/version.rb +1 -1
- data/spec/applix_spec.rb +3 -1
- metadata +118 -135
data/.travis.yml
CHANGED
data/applix.gemspec
CHANGED
@@ -40,8 +40,13 @@ Gem::Specification.new do |s|
|
|
40
40
|
s.add_development_dependency 'guard-rspec'
|
41
41
|
s.add_development_dependency 'growl'
|
42
42
|
|
43
|
-
|
44
|
-
|
43
|
+
if RUBY_PLATFORM.match /java/i
|
44
|
+
s.add_development_dependency 'ruby-debug'
|
45
|
+
else
|
46
|
+
RUBY_VERSION.match /1.9.3/ and (raise "no ruby-debug in ruby 1.9.3")
|
47
|
+
s.add_development_dependency 'ruby-debug19'
|
48
|
+
s.add_development_dependency 'ruby-debug-base19'
|
49
|
+
end
|
45
50
|
|
46
51
|
s.files = `git ls-files`.split("\n")
|
47
52
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
data/lib/applix/version.rb
CHANGED
data/spec/applix_spec.rb
CHANGED
@@ -118,6 +118,7 @@ describe Applix do
|
|
118
118
|
it 'runs epilog callback after handle' do
|
119
119
|
t_handle = Applix.main([:func]) do
|
120
120
|
epilog { |rc, *_|
|
121
|
+
sleep 0.1
|
121
122
|
$t_post_handle = Time.now
|
122
123
|
rc
|
123
124
|
}
|
@@ -129,7 +130,8 @@ describe Applix do
|
|
129
130
|
end
|
130
131
|
t_handle.should_not == nil
|
131
132
|
$t_post_handle.should_not == nil
|
132
|
-
(t_handle < $t_post_handle).should == true
|
133
|
+
#(t_handle < $t_post_handle).should == true
|
134
|
+
t_handle.should be < $t_post_handle
|
133
135
|
end
|
134
136
|
|
135
137
|
it 'supports :any as fallback on command lines without matching task' do
|
metadata
CHANGED
@@ -1,156 +1,139 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: applix
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.6
|
3
|
+
version: !ruby/object:Gem::Version
|
5
4
|
prerelease:
|
5
|
+
version: 0.4.7
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
- art+com/dirk luesebrink
|
7
|
+
authors:
|
8
|
+
- art+com/dirk luesebrink
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
requirements:
|
85
|
-
- - ! '>='
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
version: '0'
|
88
|
-
type: :development
|
89
|
-
prerelease: false
|
90
|
-
version_requirements: *70293147157600
|
91
|
-
description: ! "\n ApplixHash#from_argv builds hashes from ARGV like argument vectors\n
|
92
|
-
\ according to following examples: \n \n '-f' -->
|
93
|
-
{ :f => true }\n '--flag' --> { :flag => true }\n '--flag:false'
|
94
|
-
\ --> { :flag => false }\n '--flag=false' --> { :flag =>
|
95
|
-
'false' }\n '--option=value' --> { :option => \"value\" }\n '--int=1'
|
96
|
-
\ --> { :int => \"1\" }\n '--float=2.3' --> { :float
|
97
|
-
\ => \"2.3\" }\n '--float:2.3' --> { :float => 2.3 }\n '--txt=\"foo
|
98
|
-
bar\"' --> { :txt => \"foo bar\" }\n '--txt:'\"foo bar\"'' -->
|
99
|
-
{ :txt => \"foo bar\" }\n '--txt:%w{foo bar}' --> { :txt => [\"foo\",
|
100
|
-
\"bar\"] }\n '--now:Time.now' --> { :now => #<Date: 3588595/2,0,2299161>
|
101
|
-
}\n \n remaining arguments(non flag/options) are inserted as [:arguments,\n
|
102
|
-
\ args], eg:\n Hash.from_argv %w(--foo --bar=loo 123 now)\n becomes
|
103
|
-
\ \n { :foo => true, :bar => 'loo', :arguments => [\"123\", \"now\"] }\n
|
104
|
-
\ "
|
105
|
-
email:
|
106
|
-
- dirk.luesebrink@artcom.de
|
12
|
+
|
13
|
+
date: 2012-03-27 00:00:00 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rspec
|
17
|
+
prerelease: false
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
type: :development
|
25
|
+
version_requirements: *id001
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: rspec-mocks
|
28
|
+
prerelease: false
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: "0"
|
35
|
+
type: :development
|
36
|
+
version_requirements: *id002
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: guard
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: "0"
|
46
|
+
type: :development
|
47
|
+
version_requirements: *id003
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: guard-rspec
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: "0"
|
57
|
+
type: :development
|
58
|
+
version_requirements: *id004
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: growl
|
61
|
+
prerelease: false
|
62
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: "0"
|
68
|
+
type: :development
|
69
|
+
version_requirements: *id005
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: ruby-debug
|
72
|
+
prerelease: false
|
73
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: "0"
|
79
|
+
type: :development
|
80
|
+
version_requirements: *id006
|
81
|
+
description: "\n ApplixHash#from_argv builds hashes from ARGV like argument vectors\n according to following examples: \n \n '-f' --> { :f => true }\n '--flag' --> { :flag => true }\n '--flag:false' --> { :flag => false }\n '--flag=false' --> { :flag => 'false' }\n '--option=value' --> { :option => \"value\" }\n '--int=1' --> { :int => \"1\" }\n '--float=2.3' --> { :float => \"2.3\" }\n '--float:2.3' --> { :float => 2.3 }\n '--txt=\"foo bar\"' --> { :txt => \"foo bar\" }\n '--txt:'\"foo bar\"'' --> { :txt => \"foo bar\" }\n '--txt:%w{foo bar}' --> { :txt => [\"foo\", \"bar\"] }\n '--now:Time.now' --> { :now => #<Date: 3588595/2,0,2299161> }\n \n remaining arguments(non flag/options) are inserted as [:arguments,\n args], eg:\n Hash.from_argv %w(--foo --bar=loo 123 now)\n becomes \n { :foo => true, :bar => 'loo', :arguments => [\"123\", \"now\"] }\n "
|
82
|
+
email:
|
83
|
+
- dirk.luesebrink@artcom.de
|
107
84
|
executables: []
|
85
|
+
|
108
86
|
extensions: []
|
87
|
+
|
109
88
|
extra_rdoc_files: []
|
110
|
-
|
111
|
-
|
112
|
-
- .
|
113
|
-
- .
|
114
|
-
- .
|
115
|
-
- .
|
116
|
-
-
|
117
|
-
-
|
118
|
-
-
|
119
|
-
-
|
120
|
-
-
|
121
|
-
-
|
122
|
-
-
|
123
|
-
- lib/applix
|
124
|
-
- lib/applix/
|
125
|
-
- lib/applix/
|
126
|
-
-
|
127
|
-
- spec/
|
128
|
-
- spec/
|
89
|
+
|
90
|
+
files:
|
91
|
+
- .autotest
|
92
|
+
- .document
|
93
|
+
- .gitignore
|
94
|
+
- .rspec
|
95
|
+
- .travis.yml
|
96
|
+
- Gemfile
|
97
|
+
- Guardfile
|
98
|
+
- LICENSE
|
99
|
+
- README.mkd
|
100
|
+
- Rakefile
|
101
|
+
- applix.gemspec
|
102
|
+
- lib/applix.rb
|
103
|
+
- lib/applix/hash.rb
|
104
|
+
- lib/applix/oattr.rb
|
105
|
+
- lib/applix/version.rb
|
106
|
+
- spec/applix_spec.rb
|
107
|
+
- spec/oattr_spec.rb
|
108
|
+
- spec/spec_helper.rb
|
129
109
|
homepage: http://github.com/crux/applix
|
130
110
|
licenses: []
|
111
|
+
|
131
112
|
post_install_message:
|
132
113
|
rdoc_options: []
|
133
|
-
|
134
|
-
|
135
|
-
|
114
|
+
|
115
|
+
require_paths:
|
116
|
+
- lib
|
117
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
136
118
|
none: false
|
137
|
-
requirements:
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: "0"
|
123
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
124
|
none: false
|
143
|
-
requirements:
|
144
|
-
|
145
|
-
|
146
|
-
|
125
|
+
requirements:
|
126
|
+
- - ">="
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: "0"
|
147
129
|
requirements: []
|
130
|
+
|
148
131
|
rubyforge_project:
|
149
132
|
rubygems_version: 1.8.15
|
150
133
|
signing_key:
|
151
134
|
specification_version: 3
|
152
135
|
summary: extracting typed option hashes from command line arguments
|
153
|
-
test_files:
|
154
|
-
- spec/applix_spec.rb
|
155
|
-
- spec/oattr_spec.rb
|
156
|
-
- spec/spec_helper.rb
|
136
|
+
test_files:
|
137
|
+
- spec/applix_spec.rb
|
138
|
+
- spec/oattr_spec.rb
|
139
|
+
- spec/spec_helper.rb
|