sliver 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/sliver/path.rb +1 -1
- data/sliver.gemspec +1 -1
- data/spec/acceptance/class_api_spec.rb +14 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62e18bf6b83082bb11e2c86ee25a98175a3ba17f
|
4
|
+
data.tar.gz: 8fcf8e7c3821264435e5ca43e72956ca33e83235
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fd5f69b2bd489c67e9c2b424b9cc4cf892af72362931f04b63dc117566f2732630b09179c1cafbae73a49db88bc95d9c6ec75922e66fdf9055a0b3eccf00fa2
|
7
|
+
data.tar.gz: d6def9714ba4c73d2a59716ef0be3251cf28d139f678ea9fd7bbd83e843f7dd6e76a11f366625449e58f55744ea2ce649ec0444ee71d4ad9b2c1d4e17eb35cf6
|
data/README.md
CHANGED
data/lib/sliver/path.rb
CHANGED
data/sliver.gemspec
CHANGED
@@ -179,6 +179,20 @@ describe 'Class-based Sliver API' do
|
|
179
179
|
expect(last_response.body).to eq('10')
|
180
180
|
end
|
181
181
|
|
182
|
+
it 'handles path parameters with full stops' do
|
183
|
+
get '/my/10.1'
|
184
|
+
|
185
|
+
expect(last_response.status).to eq(200)
|
186
|
+
expect(last_response.body).to eq('10.1')
|
187
|
+
end
|
188
|
+
|
189
|
+
it 'handles path parameters with pluses' do
|
190
|
+
get '/my/10+1'
|
191
|
+
|
192
|
+
expect(last_response.status).to eq(200)
|
193
|
+
expect(last_response.body).to eq('10+1')
|
194
|
+
end
|
195
|
+
|
182
196
|
it 'handles multiple path parameter markers' do
|
183
197
|
get '/my/10/foo'
|
184
198
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sliver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pat Allan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|