heroku-api 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ 0.3.1 07/20/2012
2
+ ================
3
+
4
+ fix bug in maintenance mocks not being reset after app delet
5
+
1
6
  0.3.0 07/20/2012
2
7
  ================
3
8
 
@@ -12,6 +12,7 @@ module Heroku
12
12
  mock_data[:collaborators].delete(app)
13
13
  mock_data[:config_vars].delete(app)
14
14
  mock_data[:domains].delete(app)
15
+ mock_data[:maintenance_mode].delete(app)
15
16
  mock_data[:ps].delete(app)
16
17
  mock_data[:releases].delete(app)
17
18
  {
@@ -1,5 +1,5 @@
1
1
  module Heroku
2
2
  class API
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
@@ -44,6 +44,12 @@ class TestApps < MiniTest::Unit::TestCase
44
44
 
45
45
  assert_equal(200, response.status)
46
46
  assert_equal({'maintenance' => false}, response.body)
47
+
48
+ heroku.post_app_maintenance(app_data['name'], '1')
49
+ response = heroku.get_app_maintenance(app_data['name'])
50
+
51
+ assert_equal(200, response.status)
52
+ assert_equal({'maintenance' => true}, response.body)
47
53
  end
48
54
  end
49
55
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-07-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: excon
16
- requirement: &70155015136000 !ruby/object:Gem::Requirement
16
+ requirement: &70353003020620 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.15.4
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70155015136000
24
+ version_requirements: *70353003020620
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: minitest
27
- requirement: &70155015135020 !ruby/object:Gem::Requirement
27
+ requirement: &70353003019420 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70155015135020
35
+ version_requirements: *70353003019420
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &70155015134300 !ruby/object:Gem::Requirement
38
+ requirement: &70353003016440 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70155015134300
46
+ version_requirements: *70353003016440
47
47
  description: Ruby Client for the Heroku API
48
48
  email:
49
49
  - wesley@heroku.com
@@ -121,7 +121,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  segments:
123
123
  - 0
124
- hash: -2807830283804152461
124
+ hash: -2286072111782090869
125
125
  required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  none: false
127
127
  requirements:
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  segments:
132
132
  - 0
133
- hash: -2807830283804152461
133
+ hash: -2286072111782090869
134
134
  requirements: []
135
135
  rubyforge_project:
136
136
  rubygems_version: 1.8.15