restrack 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ module RESTRack
8
8
  @request.prepare
9
9
  RESTRack.log.debug "{#{@request.request_id}} Retrieving Output"
10
10
  @body = @request.active_controller.call
11
- @status = body.blank? ? 200 : 204
11
+ @status = body.blank? ? 204 : 200
12
12
  RESTRack.log.debug "(#{@request.request_id}) HTTP200OK '#{@request.mime_type.to_s}' response data:\n" + @body.inspect
13
13
  RESTRack.request_log.info "(#{@request.request_id}) HTTP200OK"
14
14
  rescue Exception => exception
@@ -1,3 +1,3 @@
1
1
  module RESTRack
2
- VERSION = "1.5.0"
2
+ VERSION = "1.5.1"
3
3
  end
@@ -50,7 +50,7 @@ class SampleApp::TestResourceRequest < Test::Unit::TestCase
50
50
  assert_nothing_raised do
51
51
  output = @ws.call(env)
52
52
  end
53
- assert_equal 204, output[0]
53
+ assert_equal 200, output[0]
54
54
 
55
55
  RESTRack::CONFIG[:ROOT_RESOURCE_ACCEPT] = []
56
56
  env = Rack::MockRequest.env_for('/foo_bar/144', {
@@ -60,7 +60,7 @@ class SampleApp::TestResourceRequest < Test::Unit::TestCase
60
60
  assert_nothing_raised do
61
61
  output = @ws.call(env)
62
62
  end
63
- assert_equal 204, output[0]
63
+ assert_equal 200, output[0]
64
64
 
65
65
  RESTRack::CONFIG[:ROOT_RESOURCE_ACCEPT] = nil
66
66
  env = Rack::MockRequest.env_for('/foo_bar/144', {
@@ -70,7 +70,7 @@ class SampleApp::TestResourceRequest < Test::Unit::TestCase
70
70
  assert_nothing_raised do
71
71
  output = @ws.call(env)
72
72
  end
73
- assert_equal 204, output[0]
73
+ assert_equal 200, output[0]
74
74
 
75
75
  RESTRack::CONFIG[:ROOT_RESOURCE_ACCEPT] = [ 'foo_bar' ]
76
76
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restrack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-16 00:00:00.000000000 Z
12
+ date: 2012-05-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack