optitron 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,15 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- optitron (0.3.0)
4
+ optitron (0.3.1)
5
5
  callsite (~> 0.0.4)
6
- method-args (~> 0.1.0)
6
+ parameters_extra (~> 0.2.0)
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
11
  callsite (0.0.4)
12
- method-args (0.1.0)
12
+ parameters_extra (0.2.0)
13
13
  ruby2ruby (~> 1.2.4)
14
14
  ruby_parser (~> 2.0)
15
15
  sexp_processor (~> 3.0.4)
@@ -29,8 +29,8 @@ PLATFORMS
29
29
  DEPENDENCIES
30
30
  bundler (~> 1.0.0)
31
31
  callsite (~> 0.0.4)
32
- method-args (~> 0.1.0)
33
32
  optitron!
33
+ parameters_extra (~> 0.2.0)
34
34
  phocus
35
35
  rake
36
36
  rspec
@@ -1,5 +1,5 @@
1
1
  require 'callsite'
2
- require 'method_args'
2
+ require 'parameters_extra'
3
3
 
4
4
  class Optitron
5
5
 
@@ -45,7 +45,7 @@ class Optitron
45
45
  end
46
46
 
47
47
  def desc(desc)
48
- MethodArgs.register(Callsite.parse(caller.first).filename)
48
+ ParametersExtra.register(Callsite.parse(caller.first).filename)
49
49
  @last_desc = desc
50
50
  end
51
51
 
@@ -73,7 +73,7 @@ class Optitron
73
73
  optitron_dsl.root.cmd(cmd_name, cmd_desc) do
74
74
  opts.each { |o| opt *o }
75
75
  puts "!!! #{cmd_name.inspect}" if method.nil?
76
- method.args.each do |arg|
76
+ method.parameters_extra.each do |arg|
77
77
  possible_arg_type = arg.name.to_s[/_(string|hash|array|numeric|int|float)$/, 1]
78
78
  arg_name = if possible_arg_type && (arg_types.nil? || !arg_types.first)
79
79
  possible_arg_type = possible_arg_type.to_sym
@@ -1,3 +1,3 @@
1
1
  class Optitron
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
data/optitron.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.rubyforge_project = "optitron"
17
17
 
18
18
  s.add_dependency "callsite", "~> 0.0.4"
19
- s.add_dependency "method-args", "~> 0.1.0"
19
+ s.add_dependency "parameters_extra", "~> 0.2.0"
20
20
  s.add_development_dependency "bundler", "~> 1.0.0"
21
21
  s.add_development_dependency "rake"
22
22
  s.add_development_dependency "rspec"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: optitron
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 1
10
- version: 0.3.1
9
+ - 2
10
+ version: 0.3.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joshua Hull
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-09 00:00:00 -08:00
18
+ date: 2011-01-24 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -35,19 +35,19 @@ dependencies:
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
38
- name: method-args
38
+ name: parameters_extra
39
39
  prerelease: false
40
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- hash: 27
45
+ hash: 23
46
46
  segments:
47
47
  - 0
48
- - 1
48
+ - 2
49
49
  - 0
50
- version: 0.1.0
50
+ version: 0.2.0
51
51
  type: :runtime
52
52
  version_requirements: *id002
53
53
  - !ruby/object:Gem::Dependency