sinatra-unit 0.1.0 → 0.1.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.
Files changed (4) hide show
  1. data/History.txt +5 -0
  2. data/Rakefile +1 -1
  3. data/lib/sinatra/unit.rb +7 -6
  4. metadata +7 -7
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ === 0.1.1 / 2013-04-26
2
+ * 1 minor enhancement
3
+
4
+ * Sinatra 1.4.2 compatibilty
5
+
1
6
  === 0.1.0 / 2013-01-14
2
7
 
3
8
  * 1 major enhancement
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ Hoe.plugin :isolate
7
7
  # Hoe.plugin :rubyforge
8
8
 
9
9
  Hoe.spec "sinatra-unit" do
10
- dependency 'sinatra', '~> 1.3.3'
10
+ dependency 'sinatra', '~> 1.4.2'
11
11
 
12
12
  developer "Jonathan Mason", "jonathan.e.mason@gmail.com"
13
13
 
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.0'
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
- class << self
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
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: 29
28
+ hash: 3
29
29
  segments:
30
30
  - 1
31
- - 3
32
- - 3
33
- version: 1.3.3
31
+ - 4
32
+ - 2
33
+ version: 1.4.2
34
34
  type: :runtime
35
35
  version_requirements: *id001
36
36
  - !ruby/object:Gem::Dependency