rocketio 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 942f43f23ee1bc2f6bb2e18dcf097be9dab83ee4
4
- data.tar.gz: 1b08c4e3b19666272ca2489f514b069d835e79dc
3
+ metadata.gz: b08a3d047446386c8322a859eecef01851b45314
4
+ data.tar.gz: 572adaa3b4168db78a9bf24e3d84f2e2ae6c2811
5
5
  SHA512:
6
- metadata.gz: 3ed0309cf937f7d1828b952ba00781d9aab142f75fb9df192fcb8c17698d9bd0e5d3c9aca341e797de078fcb55f456c9eeccc0101645df61ae926441b974766f
7
- data.tar.gz: 84c5a944dcabaa1150817e7e63a0acbb066e292016c27e69a18a70cfca68f0014206b711d97851afc1aff3f4f25b27e63ad4843af822ac9ebfd090f9cf7175e0
6
+ metadata.gz: 0428c3a14b9a7935c801be7abd6a3c2b52250f3f4f45985df5c6eb871c94d7d7cd6a42f3be208ef9d7263e464c608a0f0ffb58f07088e1ad0cd33f74f61b4900
7
+ data.tar.gz: e3f63dd9de47a05e33397ec0a2af5ff4d7b4f481a686fccbb96e4ff42ca856f2430879317c17d7d669a1d1d82c7f9ca20f4ade645f17f35140595df6e00f419d
@@ -85,7 +85,11 @@ module RocketIO
85
85
  rangemap = self.class.path_params[requested_method] ||
86
86
  raise(StandardError, 'No path_params map found for %s method' % requested_method)
87
87
  indifferent_params(rangemap.each_with_object({}) {|(m,r),o|
88
- o[m] = r.min == r.max ? path_params_array[r.min] : path_params_array[r]
88
+ o[m] = if r.min && r.max
89
+ r.min == r.max ? path_params_array[r.min] : path_params_array[r]
90
+ else
91
+ path_params_array[r]
92
+ end
89
93
  }).freeze
90
94
  end
91
95
  end
@@ -1,3 +1,3 @@
1
1
  module RocketIO
2
- VERSION = '0.0.5'.freeze
2
+ VERSION = '0.0.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocketio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Slee Woo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-18 00:00:00.000000000 Z
11
+ date: 2016-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -210,5 +210,5 @@ rubyforge_project:
210
210
  rubygems_version: 2.4.5.1
211
211
  signing_key:
212
212
  specification_version: 4
213
- summary: '["rocketio-0.0.5", "Simple, fast, scalable web framework for Ruby"]'
213
+ summary: '["rocketio-0.0.6", "Simple, fast, scalable web framework for Ruby"]'
214
214
  test_files: []