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 CHANGED
@@ -1 +1 @@
1
- 0.8.6
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 = args.collect{ |arg| arg[1..-1] }
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
- function_args += body_args.map { |a| a.downcase.gsub(/[^a-z0-9_]/, '_').sub(/^\d+/, '') }
50
+ body_args.each { |arg| function_args << "arg#{function_args.size}" }
50
51
 
51
52
  query_args = get_function_args options, :query
52
- function_args += query_args.map { |a| a.downcase.gsub(/[^a-z0-9_]/, '_').sub(/^\d+/, '') }
53
+ query_args.each { |arg| function_args << "arg#{function_args.size}" }
53
54
 
54
55
  method = options[:method]
55
56
  if method.nil?
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "sessionm-resthome"
8
- s.version = "0.8.6"
8
+ s.version = "0.8.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Doug Youch"]
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.6
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: -1705619725440315722
204
+ hash: -473799339293932283
205
205
  required_rubygems_version: !ruby/object:Gem::Requirement
206
206
  none: false
207
207
  requirements: