args_parser 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.1.1 2012-10-10
2
+
3
+ * bugfix (equal style)
4
+
1
5
  === 0.1.0 2012-09-27
2
6
 
3
7
  * fix version error
@@ -9,7 +9,7 @@ module ArgsParser
9
9
  end
10
10
 
11
11
  is_option = /^-+([^-=\s]+)$/
12
- is_param = /^-+([^-=\s]+)=([^=\s]+)$/
12
+ is_param = /^-+([^-=\s]+)=(.+)$/
13
13
  argv.each_with_index do |arg, i|
14
14
  if arg =~ is_option
15
15
  k,v = [arg.scan(is_option)[0][0], true]
data/lib/args_parser.rb CHANGED
@@ -10,5 +10,5 @@ require 'args_parser/validator'
10
10
  require 'args_parser/config'
11
11
 
12
12
  module ArgsParser
13
- VERSION = '0.1.0'
13
+ VERSION = '0.1.1'
14
14
  end
metadata CHANGED
@@ -1,74 +1,80 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: args_parser
3
- version: !ruby/object:Gem::Version
4
- version: 0.1.0
3
+ version: !ruby/object:Gem::Version
4
+ hash: 25
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 1
10
+ version: 0.1.1
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Sho Hashimoto
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-09-27 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: rdoc
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: '3.10'
22
- type: :development
17
+
18
+ date: 2012-10-09 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
23
21
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
22
+ requirement: &id001 !ruby/object:Gem::Requirement
25
23
  none: false
26
- requirements:
24
+ requirements:
27
25
  - - ~>
28
- - !ruby/object:Gem::Version
29
- version: '3.10'
30
- - !ruby/object:Gem::Dependency
31
- name: newgem
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: 1.5.3
26
+ - !ruby/object:Gem::Version
27
+ hash: 19
28
+ segments:
29
+ - 3
30
+ - 10
31
+ version: "3.10"
38
32
  type: :development
33
+ name: rdoc
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
39
36
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
37
+ requirement: &id002 !ruby/object:Gem::Requirement
41
38
  none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ hash: 5
43
+ segments:
44
+ - 1
45
+ - 5
46
+ - 3
45
47
  version: 1.5.3
46
- - !ruby/object:Gem::Dependency
47
- name: hoe
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ~>
52
- - !ruby/object:Gem::Version
53
- version: '3.1'
54
48
  type: :development
49
+ name: newgem
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
55
52
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
53
+ requirement: &id003 !ruby/object:Gem::Requirement
57
54
  none: false
58
- requirements:
55
+ requirements:
59
56
  - - ~>
60
- - !ruby/object:Gem::Version
61
- version: '3.1'
57
+ - !ruby/object:Gem::Version
58
+ hash: 5
59
+ segments:
60
+ - 3
61
+ - 1
62
+ version: "3.1"
63
+ type: :development
64
+ name: hoe
65
+ version_requirements: *id003
62
66
  description: Parse ARGV from command line with DSL.
63
- email:
67
+ email:
64
68
  - hashimoto@shokai.org
65
69
  executables: []
70
+
66
71
  extensions: []
67
- extra_rdoc_files:
72
+
73
+ extra_rdoc_files:
68
74
  - History.txt
69
75
  - Manifest.txt
70
76
  - README.rdoc
71
- files:
77
+ files:
72
78
  - Gemfile
73
79
  - Gemfile.lock
74
80
  - History.txt
@@ -96,34 +102,39 @@ files:
96
102
  - .gemtest
97
103
  homepage: http://shokai.github.com/args_parser
98
104
  licenses: []
105
+
99
106
  post_install_message:
100
- rdoc_options:
107
+ rdoc_options:
101
108
  - --main
102
109
  - README.rdoc
103
- require_paths:
110
+ require_paths:
104
111
  - lib
105
- required_ruby_version: !ruby/object:Gem::Requirement
112
+ required_ruby_version: !ruby/object:Gem::Requirement
106
113
  none: false
107
- requirements:
108
- - - ! '>='
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- segments:
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ hash: 3
118
+ segments:
112
119
  - 0
113
- hash: 3482798538480911656
114
- required_rubygems_version: !ruby/object:Gem::Requirement
120
+ version: "0"
121
+ required_rubygems_version: !ruby/object:Gem::Requirement
115
122
  none: false
116
- requirements:
117
- - - ! '>='
118
- - !ruby/object:Gem::Version
119
- version: '0'
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ hash: 3
127
+ segments:
128
+ - 0
129
+ version: "0"
120
130
  requirements: []
131
+
121
132
  rubyforge_project: args_parser
122
133
  rubygems_version: 1.8.24
123
134
  signing_key:
124
135
  specification_version: 3
125
136
  summary: Parse ARGV from command line with DSL.
126
- test_files:
137
+ test_files:
127
138
  - test/test_args_parser.rb
128
139
  - test/test_args_parser_style_equal.rb
129
140
  - test/test_filter.rb