apiary 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ PATH
4
4
  apiary (0.0.4)
5
5
  callsite
6
6
  http_router
7
- method-args
7
+ parameters_extra (~> 0.2.0)
8
8
  rack
9
9
  thin
10
10
  thin_async
@@ -22,11 +22,11 @@ GEM
22
22
  http_router (0.5.0)
23
23
  rack (>= 1.0.0)
24
24
  url_mount (~> 0.2.1)
25
- method-args (0.1.0)
25
+ minitest (2.0.2)
26
+ parameters_extra (0.2.0)
26
27
  ruby2ruby (~> 1.2.4)
27
28
  ruby_parser (~> 2.0)
28
29
  sexp_processor (~> 3.0.4)
29
- minitest (2.0.2)
30
30
  rack (1.2.1)
31
31
  rake (0.8.7)
32
32
  ruby2ruby (1.2.5)
@@ -52,8 +52,8 @@ DEPENDENCIES
52
52
  callsite
53
53
  em-http-request
54
54
  http_router
55
- method-args
56
55
  minitest (~> 2.0.0)
56
+ parameters_extra (~> 0.2.0)
57
57
  rack
58
58
  rake
59
59
  thin
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.require_paths = ["lib"]
21
21
 
22
22
  s.add_dependency 'callsite'
23
- s.add_dependency 'method-args'
23
+ s.add_dependency 'parameters_extra', "~> 0.2.0"
24
24
  s.add_dependency 'thin'
25
25
  s.add_dependency 'http_router'
26
26
  s.add_dependency 'rack'
@@ -1,4 +1,4 @@
1
- require 'method_args'
1
+ require 'parameters_extra'
2
2
  require 'callsite'
3
3
  require 'http_router'
4
4
  require 'thin'
@@ -35,7 +35,7 @@ module Apiary
35
35
 
36
36
  def method_added(m)
37
37
  if @http_method
38
- MethodArgs.register(Callsite.parse(caller.first).filename)
38
+ ParametersExtra.register(Callsite.parse(caller.first).filename)
39
39
  @cmds ||= []
40
40
  @cmds << ApiMethod.new(m, @http_method, @path, @async)
41
41
  @http_method, @path, @async = nil, nil, nil
@@ -43,7 +43,7 @@ module Apiary
43
43
  end
44
44
 
45
45
  def default_path(m)
46
- instance_method(m).args.inject(m.to_s) do |path, arg|
46
+ instance_method(m).parameters_extra.inject(m.to_s) do |path, arg|
47
47
  path << case arg.type
48
48
  when :required then "/:#{arg.name}"
49
49
  when :optional then "/(:#{arg.name})"
@@ -1,3 +1,3 @@
1
1
  module Apiary
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apiary
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
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-18 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
@@ -33,17 +33,19 @@ dependencies:
33
33
  type: :runtime
34
34
  version_requirements: *id001
35
35
  - !ruby/object:Gem::Dependency
36
- name: method-args
36
+ name: parameters_extra
37
37
  prerelease: false
38
38
  requirement: &id002 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
- - - ">="
41
+ - - ~>
42
42
  - !ruby/object:Gem::Version
43
- hash: 3
43
+ hash: 23
44
44
  segments:
45
45
  - 0
46
- version: "0"
46
+ - 2
47
+ - 0
48
+ version: 0.2.0
47
49
  type: :runtime
48
50
  version_requirements: *id002
49
51
  - !ruby/object:Gem::Dependency