gin 1.0.0 → 1.0.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/History.rdoc +5 -0
- data/lib/gin.rb +1 -1
- data/lib/gin/controller.rb +5 -0
- data/test/test_controller.rb +1 -1
- metadata +2 -2
data/History.rdoc
CHANGED
data/lib/gin.rb
CHANGED
data/lib/gin/controller.rb
CHANGED
@@ -139,6 +139,11 @@ class Gin::Controller
|
|
139
139
|
# halt 302, {'Location' => 'http://example.com'}, "You are being redirected"
|
140
140
|
|
141
141
|
def halt *resp
|
142
|
+
if @app.development?
|
143
|
+
line = caller.find{|l| !l.start_with?(Gin::LIB_DIR) && !l.include?("/ruby/gems/")}
|
144
|
+
logger << "[HALT] #{line}\n" if line
|
145
|
+
end
|
146
|
+
|
142
147
|
resp = resp.first if resp.length == 1
|
143
148
|
throw :halt, resp
|
144
149
|
end
|
data/test/test_controller.rb
CHANGED
@@ -69,7 +69,7 @@ class ControllerTest < Test::Unit::TestCase
|
|
69
69
|
def setup
|
70
70
|
MockApp.instance_variable_set("@environment", nil)
|
71
71
|
MockApp.instance_variable_set("@asset_host", nil)
|
72
|
-
@app = MockApp.new
|
72
|
+
@app = MockApp.new Logger.new(StringIO.new)
|
73
73
|
@ctrl = BarController.new(@app, rack_env)
|
74
74
|
end
|
75
75
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -150,7 +150,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
150
150
|
version: '0'
|
151
151
|
segments:
|
152
152
|
- 0
|
153
|
-
hash:
|
153
|
+
hash: 1873485601668633173
|
154
154
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
155
|
none: false
|
156
156
|
requirements:
|