optionalargument 0.0.3.2 → 0.0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 632b7594a127e53fc2183b9b5ec7658c1985d2e2
4
+ data.tar.gz: 5f196a7d0f8e6ec7e858d41554bea8b3e7462362
5
+ SHA512:
6
+ metadata.gz: 6f9c641b0ca99abed973cbb30beb9b44b35181f683a4e7413d91135fdedf1d3bd0aa3c5218890aaeec7970fdda9e4c22cf1570dbc38a3e7a8485f6b8e782edb3
7
+ data.tar.gz: d61e84f59d055da6c8e18f9100ab4ffb6b2c241530c76185fbc642872db40fac7adad13403af76e186ac254267a722d44ad0d2eef6b663fdcd45ffa113f7f39f
data/.travis.yml CHANGED
@@ -1,16 +1,20 @@
1
1
  language: ruby
2
+
2
3
  rvm:
3
4
  - ruby-head
5
+ - 2.0.0
4
6
  - 1.9.3
5
7
  - 1.9.2
6
- - rbx-19mode
8
+ - rbx-nightly-19mode
7
9
  - jruby-head
10
+ - jruby-19mode
8
11
 
9
12
  matrix:
10
13
  allow_failures:
11
- - rvm: rbx-19mode
14
+ - rvm: ruby-head
15
+ - rvm: rbx-nightly-19mode
12
16
  - rvm: jruby-head
17
+ - rvm: jruby-19mode
13
18
 
14
19
  before_install:
15
- - gem install bundler
16
-
20
+ - gem install bundler
data/README.md CHANGED
@@ -1,6 +1,9 @@
1
1
  optionalargument
2
2
  =================
3
3
 
4
+ [![Build Status](https://secure.travis-ci.org/kachick/optionalargument.png)](http://travis-ci.org/kachick/optionalargument)
5
+ [![Gem Version](https://badge.fury.io/rb/optionalargument.png)](http://badge.fury.io/rb/optionalargument)
6
+
4
7
  Description
5
8
  -----------
6
9
 
@@ -83,21 +86,14 @@ Requirements
83
86
  -------------
84
87
 
85
88
  * Ruby - [1.9.2 or later](http://travis-ci.org/#!/kachick/optionalargument)
86
- * keyvalidatable - [0.0.5](https://github.com/kachick/keyvalidatable)
87
- * validation - [0.0.3](https://github.com/kachick/validation)
88
89
 
89
90
  Install
90
91
  -------
91
92
 
92
93
  ```bash
93
- $ gem install optionalargument
94
+ gem install optionalargument
94
95
  ```
95
96
 
96
- Build Status
97
- -------------
98
-
99
- [![Build Status](https://secure.travis-ci.org/kachick/optionalargument.png)](http://travis-ci.org/kachick/optionalargument)
100
-
101
97
  Link
102
98
  ----
103
99
 
@@ -112,5 +108,4 @@ License
112
108
 
113
109
  The MIT X11 License
114
110
  Copyright (c) 2012 Kenichi Kamiya
115
- See MIT-LICENSE for further details.
116
-
111
+ See MIT-LICENSE for further details.
data/Rakefile CHANGED
@@ -7,4 +7,5 @@ task default: [:test]
7
7
 
8
8
  Rake::TestTask.new do |tt|
9
9
  tt.verbose = true
10
+ tt.warning = true
10
11
  end
data/example/README.rb CHANGED
@@ -48,4 +48,4 @@ OPTARG.parse x: 5 #=> pass : 5 is sufficient for 3..5
48
48
  #OPTARG.parse x: 6 #=> error: 6 is deficient for 3..5
49
49
  #OPTARG.parse y: 5 #=> error: 5 is deficient for Float
50
50
  OPTARG.parse y: 5.0 #=> pass : 5.0 is sufficient for 3..5 and Float
51
- OPTARG.parse(z: '1').z #=> 1.0 : casted under adjuster
51
+ OPTARG.parse(z: '1').z #=> 1.0 : casted under adjuster
@@ -2,4 +2,4 @@
2
2
 
3
3
  require_relative 'optionalargument/errors'
4
4
  require_relative 'optionalargument/store'
5
- require_relative 'optionalargument/singleton_class'
5
+ require_relative 'optionalargument/singleton_class'
@@ -3,4 +3,4 @@ module OptionalArgument
3
3
  class MalformedOptionsError < TypeError; end
4
4
  class KeyConflictError < MalformedOptionsError; end
5
5
 
6
- end
6
+ end
@@ -16,4 +16,4 @@ module OptionalArgument
16
16
 
17
17
  end
18
18
 
19
- end
19
+ end
@@ -77,4 +77,4 @@ module OptionalArgument
77
77
 
78
78
  end
79
79
 
80
- end
80
+ end
@@ -307,4 +307,4 @@ module OptionalArgument; class Store
307
307
 
308
308
  end
309
309
 
310
- end; end
310
+ end; end
@@ -1,24 +1,29 @@
1
1
  Gem::Specification.new do |gem|
2
- gem.authors = ['Kenichi Kamiya']
3
- gem.email = ['kachick1+ruby@gmail.com']
4
- gem.summary = %q{Flexible and easy deal hash arguments.}
5
- gem.description = gem.summary.dup
6
- gem.homepage = 'https://github.com/kachick/optionalargument'
2
+ # specific
7
3
 
8
- gem.files = `git ls-files`.split($\)
9
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
10
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
4
+ gem.description = %q{Flexible and easy deal hash arguments.}
5
+
6
+ gem.summary = gem.description.dup
7
+ gem.homepage = 'http://kachick.github.com/optionalargument/'
8
+ gem.license = 'MIT'
11
9
  gem.name = 'optionalargument'
12
- gem.require_paths = ['lib']
13
- gem.version = '0.0.3.2'
10
+ gem.version = '0.0.3.3'
14
11
 
15
12
  gem.required_ruby_version = '>= 1.9.2'
16
13
 
17
14
  gem.add_runtime_dependency 'keyvalidatable', '~> 0.0.5'
18
- gem.add_runtime_dependency 'validation', '~> 0.0.3'
15
+ gem.add_runtime_dependency 'validation', '~> 0.0.5'
19
16
 
20
- gem.add_development_dependency 'yard', '~> 0.8'
21
- gem.add_development_dependency 'rake'
22
- gem.add_development_dependency 'bundler'
23
- end
17
+ gem.add_development_dependency 'yard', '>= 0.8.6.1', '< 2'
18
+ gem.add_development_dependency 'rake', '>= 10', '< 20'
19
+ gem.add_development_dependency 'bundler', '>= 1.3.5', '< 2'
24
20
 
21
+ # common
22
+
23
+ gem.authors = ['Kenichi Kamiya']
24
+ gem.email = ['kachick1+ruby@gmail.com']
25
+ gem.files = `git ls-files`.split($\)
26
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
27
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
28
+ gem.require_paths = ['lib']
29
+ end
data/test/helper.rb CHANGED
@@ -1,5 +1,3 @@
1
1
  require 'test/unit'
2
2
 
3
- $VERBOSE = true
4
-
5
- require_relative '../lib/optionalargument'
3
+ require_relative '../lib/optionalargument'
@@ -319,4 +319,4 @@ class Test_OptionalArgument_ValidateValues < Test::Unit::TestCase
319
319
  assert_same :FOO, oarg.fetch_by_with_cond_adj_default
320
320
  end
321
321
 
322
- end
322
+ end
metadata CHANGED
@@ -1,71 +1,103 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: optionalargument
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3.2
5
- prerelease:
4
+ version: 0.0.3.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Kenichi Kamiya
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-10-22 00:00:00.000000000 Z
11
+ date: 2013-05-31 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: keyvalidatable
16
- requirement: &15213880 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.0.5
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *15213880
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 0.0.5
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: validation
27
- requirement: &15213420 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - ~>
31
32
  - !ruby/object:Gem::Version
32
- version: 0.0.3
33
+ version: 0.0.5
33
34
  type: :runtime
34
35
  prerelease: false
35
- version_requirements: *15213420
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 0.0.5
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: yard
38
- requirement: &15237460 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ~>
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: 0.8.6.1
48
+ - - <
42
49
  - !ruby/object:Gem::Version
43
- version: '0.8'
50
+ version: '2'
44
51
  type: :development
45
52
  prerelease: false
46
- version_requirements: *15237460
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - '>='
56
+ - !ruby/object:Gem::Version
57
+ version: 0.8.6.1
58
+ - - <
59
+ - !ruby/object:Gem::Version
60
+ version: '2'
47
61
  - !ruby/object:Gem::Dependency
48
62
  name: rake
49
- requirement: &15236700 !ruby/object:Gem::Requirement
50
- none: false
63
+ requirement: !ruby/object:Gem::Requirement
51
64
  requirements:
52
- - - ! '>='
65
+ - - '>='
53
66
  - !ruby/object:Gem::Version
54
- version: '0'
67
+ version: '10'
68
+ - - <
69
+ - !ruby/object:Gem::Version
70
+ version: '20'
55
71
  type: :development
56
72
  prerelease: false
57
- version_requirements: *15236700
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '10'
78
+ - - <
79
+ - !ruby/object:Gem::Version
80
+ version: '20'
58
81
  - !ruby/object:Gem::Dependency
59
82
  name: bundler
60
- requirement: &15236000 !ruby/object:Gem::Requirement
61
- none: false
83
+ requirement: !ruby/object:Gem::Requirement
62
84
  requirements:
63
- - - ! '>='
85
+ - - '>='
86
+ - !ruby/object:Gem::Version
87
+ version: 1.3.5
88
+ - - <
64
89
  - !ruby/object:Gem::Version
65
- version: '0'
90
+ version: '2'
66
91
  type: :development
67
92
  prerelease: false
68
- version_requirements: *15236000
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - '>='
96
+ - !ruby/object:Gem::Version
97
+ version: 1.3.5
98
+ - - <
99
+ - !ruby/object:Gem::Version
100
+ version: '2'
69
101
  description: Flexible and easy deal hash arguments.
70
102
  email:
71
103
  - kachick1+ruby@gmail.com
@@ -89,29 +121,29 @@ files:
89
121
  - optionalargument.gemspec
90
122
  - test/helper.rb
91
123
  - test/test_optionalargument.rb
92
- homepage: https://github.com/kachick/optionalargument
93
- licenses: []
124
+ homepage: http://kachick.github.com/optionalargument/
125
+ licenses:
126
+ - MIT
127
+ metadata: {}
94
128
  post_install_message:
95
129
  rdoc_options: []
96
130
  require_paths:
97
131
  - lib
98
132
  required_ruby_version: !ruby/object:Gem::Requirement
99
- none: false
100
133
  requirements:
101
- - - ! '>='
134
+ - - '>='
102
135
  - !ruby/object:Gem::Version
103
136
  version: 1.9.2
104
137
  required_rubygems_version: !ruby/object:Gem::Requirement
105
- none: false
106
138
  requirements:
107
- - - ! '>='
139
+ - - '>='
108
140
  - !ruby/object:Gem::Version
109
141
  version: '0'
110
142
  requirements: []
111
143
  rubyforge_project:
112
- rubygems_version: 1.8.11
144
+ rubygems_version: 2.0.2
113
145
  signing_key:
114
- specification_version: 3
146
+ specification_version: 4
115
147
  summary: Flexible and easy deal hash arguments.
116
148
  test_files:
117
149
  - test/helper.rb