sinatra-namespace 0.6.0 → 0.6.1
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/lib/sinatra/namespace.rb +1 -0
- data/sinatra-namespace.gemspec +2 -2
- data/spec/sinatra/namespace_spec.rb +4 -0
- metadata +4 -4
data/lib/sinatra/namespace.rb
CHANGED
data/sinatra-namespace.gemspec
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
Gem::Specification.new do |s|
|
|
2
2
|
# Get the facts.
|
|
3
3
|
s.name = "sinatra-namespace"
|
|
4
|
-
s.version = "0.6.
|
|
4
|
+
s.version = "0.6.1"
|
|
5
5
|
s.description = "Adds namespaces to Sinatra, allows namespaces to have local helpers."
|
|
6
6
|
|
|
7
7
|
# Dependencies
|
|
@@ -3,6 +3,10 @@ require File.expand_path("../../spec_helper", __FILE__)
|
|
|
3
3
|
describe Sinatra::Namespace do
|
|
4
4
|
it_should_behave_like 'sinatra'
|
|
5
5
|
|
|
6
|
+
it "should delegate namespace" do
|
|
7
|
+
Sinatra::Delegator.private_instance_methods.map(&:to_s).should include("namespace")
|
|
8
|
+
end
|
|
9
|
+
|
|
6
10
|
[:get, :head, :post, :put, :delete].each do |verb|
|
|
7
11
|
describe "HTTP #{verb.to_s.upcase}" do
|
|
8
12
|
before :each do
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sinatra-namespace
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 5
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 6
|
|
9
|
-
-
|
|
10
|
-
version: 0.6.
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.6.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Konstantin Haase
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-
|
|
18
|
+
date: 2010-11-03 00:00:00 +01:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|