sinatra-unit 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/Rakefile +1 -1
- data/lib/sinatra/unit.rb +7 -6
- metadata +7 -7
data/History.txt
CHANGED
data/Rakefile
CHANGED
data/lib/sinatra/unit.rb
CHANGED
@@ -2,7 +2,7 @@ require 'ostruct'
|
|
2
2
|
|
3
3
|
module Sinatra
|
4
4
|
class Unit
|
5
|
-
VERSION = '0.1.
|
5
|
+
VERSION = '0.1.1'
|
6
6
|
|
7
7
|
class UnknownRouteError < StandardError
|
8
8
|
attr_accessor :method, :path, :params
|
@@ -89,16 +89,17 @@ module Sinatra
|
|
89
89
|
# Sinatra makes new do a bunch of stuff with rack middleware wrappers
|
90
90
|
# that are useful if you're actually running the app, but provides
|
91
91
|
# new! for regular instantiation. I'm just re-standardizing names
|
92
|
-
|
93
|
-
alias new_with_rack_wrappers new
|
94
|
-
end
|
95
|
-
|
96
|
-
def self.new
|
92
|
+
def self.new_sinatra_unit
|
97
93
|
app = new!
|
98
94
|
app.env ||= {}
|
99
95
|
app.response = Sinatra::Response.new
|
100
96
|
app
|
101
97
|
end
|
102
98
|
|
99
|
+
class << self
|
100
|
+
alias new_with_rack_wrappers new
|
101
|
+
alias new new_sinatra_unit
|
102
|
+
end
|
103
|
+
|
103
104
|
end
|
104
105
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-unit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jonathan Mason
|
@@ -25,12 +25,12 @@ dependencies:
|
|
25
25
|
requirements:
|
26
26
|
- - ~>
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
hash:
|
28
|
+
hash: 3
|
29
29
|
segments:
|
30
30
|
- 1
|
31
|
-
-
|
32
|
-
-
|
33
|
-
version: 1.
|
31
|
+
- 4
|
32
|
+
- 2
|
33
|
+
version: 1.4.2
|
34
34
|
type: :runtime
|
35
35
|
version_requirements: *id001
|
36
36
|
- !ruby/object:Gem::Dependency
|