sinatra-switch 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,7 +19,7 @@ module Sinatra
19
19
  end
20
20
 
21
21
  if result.include? off_message
22
- status 400
22
+ status 503
23
23
  else
24
24
  status 200
25
25
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "sinatra-switch"
3
- s.version = "0.0.5"
3
+ s.version = "0.0.6"
4
4
  s.date = "2014-10-28"
5
5
  s.summary = "Set and retrieve an arbitrary switch."
6
6
  s.description = "Set and retrieve an arbitrary switch flag via get and post."
@@ -42,9 +42,9 @@ class SinatraSwitchTest < Test::Unit::TestCase
42
42
  def test_it_can_be_set_to_off
43
43
  @session.post "/switch/light/off"
44
44
  assert_equal @session.last_response.status, 200
45
-
45
+
46
46
  @session.get "/switch/light"
47
- assert_equal @session.last_response.status, 400
47
+ assert_equal @session.last_response.status, 503
48
48
  assert_include @session.last_response.body, "light is OFF"
49
49
  end
50
50
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-switch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -52,7 +52,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
52
52
  version: '0'
53
53
  segments:
54
54
  - 0
55
- hash: 2074841067721576988
55
+ hash: -1229471035886497454
56
56
  required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  none: false
58
58
  requirements: