kensa 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -6
- data/lib/heroku/kensa/check.rb +4 -3
- data/lib/heroku/kensa/client.rb +1 -1
- data/lib/heroku/kensa/manifest.rb +1 -1
- data/lib/heroku/kensa/version.rb +1 -1
- data/test/manifest_check_test.rb +5 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 424bac12c4b70a8e8f776772316d36efc64133b0
|
4
|
+
data.tar.gz: 8de7ab586edeb88aebb7abb123931873afce9e35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0645e2c7eef203214ed4e12cf2c5a9b9614e2bcbf67889bb918b9a84b143f1dacdca05413ff074dfb52298bc787fff435d87c6077b40d22ad444bd032410c3fd
|
7
|
+
data.tar.gz: f1331413b816701e309c832dc3875d039cd797099c3259cc7767c4cd25f839b4f5435ad15a83dc141b131159e94e204eba71e9444982c687895ccc01436d1231
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
kensa (2.4.
|
4
|
+
kensa (2.4.1)
|
5
5
|
launchy (~> 2.2.0)
|
6
6
|
mechanize (~> 2.6.0)
|
7
7
|
netrc (~> 0.10.3)
|
@@ -16,7 +16,7 @@ GEM
|
|
16
16
|
rack-test
|
17
17
|
coderay (1.0.8)
|
18
18
|
contest (0.1.3)
|
19
|
-
domain_name (0.5.
|
19
|
+
domain_name (0.5.24)
|
20
20
|
unf (>= 0.0.5, < 1.0.0)
|
21
21
|
fakefs (0.4.2)
|
22
22
|
launchy (2.2.0)
|
@@ -35,7 +35,7 @@ GEM
|
|
35
35
|
net-http-digest_auth (1.4)
|
36
36
|
net-http-persistent (2.9.4)
|
37
37
|
netrc (0.10.3)
|
38
|
-
nokogiri (1.6.
|
38
|
+
nokogiri (1.6.6.2)
|
39
39
|
mini_portile (~> 0.6.0)
|
40
40
|
ntlm-http (0.1.1)
|
41
41
|
power_assert (0.2.2)
|
@@ -59,16 +59,16 @@ GEM
|
|
59
59
|
rack-protection (~> 1.4)
|
60
60
|
tilt (~> 1.3, >= 1.3.4)
|
61
61
|
slop (3.4.3)
|
62
|
-
term-ansicolor (1.3.
|
62
|
+
term-ansicolor (1.3.2)
|
63
63
|
tins (~> 1.0)
|
64
64
|
test-unit (3.0.9)
|
65
65
|
power_assert
|
66
66
|
tilt (1.3.6)
|
67
67
|
timecop (0.6.1)
|
68
|
-
tins (1.
|
68
|
+
tins (1.6.0)
|
69
69
|
unf (0.1.4)
|
70
70
|
unf_ext
|
71
|
-
unf_ext (0.0.
|
71
|
+
unf_ext (0.0.7.1)
|
72
72
|
webrobots (0.1.1)
|
73
73
|
|
74
74
|
PLATFORMS
|
@@ -85,3 +85,6 @@ DEPENDENCIES
|
|
85
85
|
sinatra (~> 1.4.2)
|
86
86
|
test-unit
|
87
87
|
timecop (~> 0.6.1)
|
88
|
+
|
89
|
+
BUNDLED WITH
|
90
|
+
1.10.6
|
data/lib/heroku/kensa/check.rb
CHANGED
@@ -99,11 +99,12 @@ module Heroku
|
|
99
99
|
data["api"].is_a?(Hash)
|
100
100
|
end
|
101
101
|
check "has a list of regions" do
|
102
|
-
data["api"].has_key?("regions")
|
103
|
-
|
102
|
+
data["api"].has_key?("regions") &&
|
103
|
+
data["api"]["regions"].is_a?(Array)
|
104
104
|
end
|
105
105
|
check "contains at least the US region" do
|
106
|
-
data["api"]["regions"].include?
|
106
|
+
data["api"]["regions"].include?("us") ||
|
107
|
+
data["api"]["regions"].include?("*")
|
107
108
|
end
|
108
109
|
check "contains only valid region names" do
|
109
110
|
data["api"]["regions"].all? { |reg| Manifest::REGIONS.include? reg }
|
data/lib/heroku/kensa/client.rb
CHANGED
data/lib/heroku/kensa/version.rb
CHANGED
data/test/manifest_check_test.rb
CHANGED
@@ -50,6 +50,11 @@ class ManifestCheckTest < Test::Unit::TestCase
|
|
50
50
|
assert_invalid
|
51
51
|
end
|
52
52
|
|
53
|
+
test "api allows just wildcard region name" do
|
54
|
+
@data["api"]["regions"] = ["*"]
|
55
|
+
assert_valid
|
56
|
+
end
|
57
|
+
|
53
58
|
test "api has a password" do
|
54
59
|
@data["api"].delete("password")
|
55
60
|
assert_invalid
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kensa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blake Mizerany
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2015-
|
16
|
+
date: 2015-08-28 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: launchy
|
@@ -283,7 +283,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
283
283
|
version: '0'
|
284
284
|
requirements: []
|
285
285
|
rubyforge_project:
|
286
|
-
rubygems_version: 2.4.5
|
286
|
+
rubygems_version: 2.4.5.1
|
287
287
|
signing_key:
|
288
288
|
specification_version: 4
|
289
289
|
summary: Tool to help Heroku add-on providers integrating their services
|