sessionm-resthome 0.8.6 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/resthome.rb +4 -3
- data/sessionm-resthome.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.7
|
data/lib/resthome.rb
CHANGED
@@ -43,13 +43,14 @@ class RESTHome
|
|
43
43
|
def self.route(name, path, options={}, &block)
|
44
44
|
args = path.scan /:[a-z_]+/
|
45
45
|
path = "#{@path_prefix.join if @path_prefix}#{path}"
|
46
|
-
function_args =
|
46
|
+
function_args = []
|
47
|
+
args.each_with_index{ |arg| function_args << "arg#{function_args.size}" }
|
47
48
|
|
48
49
|
body_args = get_function_args options, :body
|
49
|
-
|
50
|
+
body_args.each { |arg| function_args << "arg#{function_args.size}" }
|
50
51
|
|
51
52
|
query_args = get_function_args options, :query
|
52
|
-
|
53
|
+
query_args.each { |arg| function_args << "arg#{function_args.size}" }
|
53
54
|
|
54
55
|
method = options[:method]
|
55
56
|
if method.nil?
|
data/sessionm-resthome.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sessionm-resthome
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -201,7 +201,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
201
201
|
version: '0'
|
202
202
|
segments:
|
203
203
|
- 0
|
204
|
-
hash: -
|
204
|
+
hash: -473799339293932283
|
205
205
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
206
206
|
none: false
|
207
207
|
requirements:
|