sinatra-named-routes 0.1.1 → 0.1.2
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.
- data/Gemfile +1 -1
- data/Gemfile.lock +2 -2
- data/lib/sinatra/route_parser.rb +1 -1
- data/lib/sinatra/version.rb +1 -1
- data/spec/route_parser_spec.rb +6 -0
- metadata +10 -5
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/lib/sinatra/route_parser.rb
CHANGED
data/lib/sinatra/version.rb
CHANGED
data/spec/route_parser_spec.rb
CHANGED
@@ -20,6 +20,12 @@ describe Sinatra::NamedRoutes::Route do
|
|
20
20
|
url.should eql '/hello/cristian.json'
|
21
21
|
end
|
22
22
|
|
23
|
+
it 'supports paths with hypens' do
|
24
|
+
route = Sinatra::NamedRoutes::Route.new('/mostly-uncontrollable-hypens')
|
25
|
+
url = route.build
|
26
|
+
url.should eql '/mostly-uncontrollable-hypens'
|
27
|
+
end
|
28
|
+
|
23
29
|
it 'throws exception if required splats are missing' do
|
24
30
|
expect do
|
25
31
|
route = Sinatra::NamedRoutes::Route.new('/hello/*.*')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-named-routes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-10-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sinatra
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,12 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
25
30
|
description: Allows the use of named routes in Sinatra applications.
|
26
31
|
email:
|
27
32
|
- contact@cristianhampus.se
|
@@ -63,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
68
|
version: '0'
|
64
69
|
requirements: []
|
65
70
|
rubyforge_project: sinatra-named-routes
|
66
|
-
rubygems_version: 1.8.
|
71
|
+
rubygems_version: 1.8.25
|
67
72
|
signing_key:
|
68
73
|
specification_version: 3
|
69
74
|
summary: Named Routes for Sinatra
|