ananke 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -127,7 +127,7 @@ module Sinatra
127
127
  :remove_empty => resource_remove_empty
128
128
  }
129
129
  block_params = block.parameters.collect {|p| p[1]}
130
- path = "#{path}/:#{block_params[0]}" if [:get,:put,:delete].include?(type) && block_params.length == 1 && path != ":#{block_params[0]}"
130
+ path = "#{path}/:#{block_params[0]}" if [:get,:put,:delete].include?(type) && block_params.length >= 1 && path != ":#{block_params[0]}"
131
131
  method(type).call "/#{resource_name}/#{path}", options, do
132
132
  inject_app(res[:classes])
133
133
  input_params = collect_input_params(params, &block)
@@ -175,4 +175,4 @@ end
175
175
 
176
176
  include DSL
177
177
  #Defaults
178
- Sinatra::Ananke.resource_module=nil
178
+ Sinatra::Ananke.resource_module=nil
@@ -1,3 +1,3 @@
1
1
  module Ananke
2
- VERSION = "2.0.1"
3
- end
2
+ VERSION = "2.0.2"
3
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ananke
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.0.1
5
+ version: 2.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Andries Coetzee
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-09-14 00:00:00 Z
13
+ date: 2011-09-15 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: colored