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 CHANGED
@@ -1,7 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 1.9.2
4
- - 1.9.3
4
+ # - 1.9.3 not supported because of the ruby-debug19 mess
5
5
  - jruby-19mode # JRuby in 1.9 mode
6
6
  # uncomment this line if your project needs to run something other than `rake`:
7
7
  script: bundle exec rspec spec
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
- s.add_development_dependency 'ruby-debug19'
44
- s.add_development_dependency 'ruby-debug-base19'
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")
@@ -1,3 +1,3 @@
1
1
  class Applix
2
- VERSION = '0.4.6'
2
+ VERSION = '0.4.7'
3
3
  end
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
- date: 2012-03-26 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: rspec
16
- requirement: &70293147170860 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :development
23
- prerelease: false
24
- version_requirements: *70293147170860
25
- - !ruby/object:Gem::Dependency
26
- name: rspec-mocks
27
- requirement: &70293147169080 !ruby/object:Gem::Requirement
28
- none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: '0'
33
- type: :development
34
- prerelease: false
35
- version_requirements: *70293147169080
36
- - !ruby/object:Gem::Dependency
37
- name: guard
38
- requirement: &70293147163700 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
44
- type: :development
45
- prerelease: false
46
- version_requirements: *70293147163700
47
- - !ruby/object:Gem::Dependency
48
- name: guard-rspec
49
- requirement: &70293147160220 !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- type: :development
56
- prerelease: false
57
- version_requirements: *70293147160220
58
- - !ruby/object:Gem::Dependency
59
- name: growl
60
- requirement: &70293147159280 !ruby/object:Gem::Requirement
61
- none: false
62
- requirements:
63
- - - ! '>='
64
- - !ruby/object:Gem::Version
65
- version: '0'
66
- type: :development
67
- prerelease: false
68
- version_requirements: *70293147159280
69
- - !ruby/object:Gem::Dependency
70
- name: ruby-debug19
71
- requirement: &70293147158340 !ruby/object:Gem::Requirement
72
- none: false
73
- requirements:
74
- - - ! '>='
75
- - !ruby/object:Gem::Version
76
- version: '0'
77
- type: :development
78
- prerelease: false
79
- version_requirements: *70293147158340
80
- - !ruby/object:Gem::Dependency
81
- name: ruby-debug-base19
82
- requirement: &70293147157600 !ruby/object:Gem::Requirement
83
- none: false
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
- files:
111
- - .autotest
112
- - .document
113
- - .gitignore
114
- - .rspec
115
- - .travis.yml
116
- - Gemfile
117
- - Guardfile
118
- - LICENSE
119
- - README.mkd
120
- - Rakefile
121
- - applix.gemspec
122
- - lib/applix.rb
123
- - lib/applix/hash.rb
124
- - lib/applix/oattr.rb
125
- - lib/applix/version.rb
126
- - spec/applix_spec.rb
127
- - spec/oattr_spec.rb
128
- - spec/spec_helper.rb
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
- require_paths:
134
- - lib
135
- required_ruby_version: !ruby/object:Gem::Requirement
114
+
115
+ require_paths:
116
+ - lib
117
+ required_ruby_version: !ruby/object:Gem::Requirement
136
118
  none: false
137
- requirements:
138
- - - ! '>='
139
- - !ruby/object:Gem::Version
140
- version: '0'
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
- - !ruby/object:Gem::Version
146
- version: '0'
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