kensa 2.4.0 → 2.4.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6bd5a8c0b91e4524d6a66b5af6ec5d42b4ef122
4
- data.tar.gz: 8af7e4859a3fe3012e207c9c1d66ca955f3e25b6
3
+ metadata.gz: 424bac12c4b70a8e8f776772316d36efc64133b0
4
+ data.tar.gz: 8de7ab586edeb88aebb7abb123931873afce9e35
5
5
  SHA512:
6
- metadata.gz: 977f9c56e16400080e6362e0fe5a2033dc88d758e387af51bc093e01d85355c867d61d7f5cd94275dc95ecce820a0f7725d7cbd58eb346a85a531fa2f4be0e59
7
- data.tar.gz: 1ccd90fb57eabf01271819aa48fcdff21f1c79fc5e7f54331328ec4de3ac81e51581938bb6d1d2e040d7ca01bc2d530488e9866cde6902deb228feef3a37895a
6
+ metadata.gz: 0645e2c7eef203214ed4e12cf2c5a9b9614e2bcbf67889bb918b9a84b143f1dacdca05413ff074dfb52298bc787fff435d87c6077b40d22ad444bd032410c3fd
7
+ data.tar.gz: f1331413b816701e309c832dc3875d039cd797099c3259cc7767c4cd25f839b4f5435ad15a83dc141b131159e94e204eba71e9444982c687895ccc01436d1231
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kensa (2.4.0)
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.23)
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.5)
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.0)
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.3.5)
68
+ tins (1.6.0)
69
69
  unf (0.1.4)
70
70
  unf_ext
71
- unf_ext (0.0.6)
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
@@ -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
- data["api"]["regions"].is_a?(Array)
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? "us"
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 }
@@ -28,7 +28,7 @@ module Heroku
28
28
  manifest.write
29
29
  screen.message "Initialized new addon manifest in #{filename}\n"
30
30
  if @options[:foreman]
31
- screen.message "Initialized new .env file for foreman\n"
31
+ screen.message "Initialized new .env file\n"
32
32
  end
33
33
  end
34
34
 
@@ -3,7 +3,7 @@ require 'securerandom'
3
3
  module Heroku
4
4
  module Kensa
5
5
  class Manifest
6
- REGIONS = %w(us eu)
6
+ REGIONS = %w(us eu *)
7
7
 
8
8
  def initialize(options = {})
9
9
  @method = options.fetch(:method, 'post').to_sym
@@ -1,5 +1,5 @@
1
1
  module Heroku
2
2
  module Kensa
3
- VERSION = '2.4.0'
3
+ VERSION = '2.4.1'
4
4
  end
5
5
  end
@@ -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.0
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-06-02 00:00:00.000000000 Z
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