sinatra-namespace 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -152,5 +152,6 @@ module Sinatra
152
152
  end
153
153
  end
154
154
 
155
+ Delegator.delegate :namespace
155
156
  register Namespace
156
157
  end
@@ -1,7 +1,7 @@
1
- SPEC = Gem::Specification.new do |s|
1
+ Gem::Specification.new do |s|
2
2
  # Get the facts.
3
3
  s.name = "sinatra-namespace"
4
- s.version = "0.6.0"
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: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 0
10
- version: 0.6.0
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-10-30 00:00:00 +02:00
18
+ date: 2010-11-03 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency