capistrano-multiconfig 3.0.7 → 3.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +7 -0
- data/README.md +2 -0
- data/capistrano-multiconfig.gemspec +1 -1
- data/fixtures/config/two_files_with_same_prefix/qa.rb +0 -0
- data/fixtures/config/two_files_with_same_prefix/qa1.rb +0 -0
- data/lib/capistrano/multiconfig/dsl.rb +1 -1
- data/spec/integration_spec.rb +11 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f547696f37449532e2c786a2f5c1992624b0943
|
4
|
+
data.tar.gz: 7c294f17db04edf6859d381311f5d54ef158abc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5006febe55e441a0de09db5bdc708fbed546af1cfbb5dda3fa29fad344c4ab471f8c20314593a77a8639f5f1b4266e17cb69ec92a9ed0437a05b2a3c94bb9446
|
7
|
+
data.tar.gz: ad4000cbcaffaa0c0d4fd962a79a18cc81e5f4e6c978d4ad0bc82e9a3bdb2a7a7b5a266f06d996ef1f361df569f7880478de0dbde48dc7b00f1df76c6142b629
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "capistrano-multiconfig"
|
6
|
-
s.version = "3.0.
|
6
|
+
s.version = "3.0.8"
|
7
7
|
s.authors = ["Andriy Yanko"]
|
8
8
|
s.email = ["andriy.yanko@gmail.com"]
|
9
9
|
s.homepage = "https://github.com/railsware/capistrano-multiconfig"
|
File without changes
|
File without changes
|
@@ -39,7 +39,7 @@ module Capistrano
|
|
39
39
|
file.slice(stages_root.size + 1 .. -4).tr('/', ':')
|
40
40
|
}.tap { |paths|
|
41
41
|
paths.reject! { |path|
|
42
|
-
paths.any? { |another| another != path && another.start_with?(path) }
|
42
|
+
paths.any? { |another| another != path && another.start_with?(path + ':') }
|
43
43
|
}
|
44
44
|
}.sort
|
45
45
|
end
|
data/spec/integration_spec.rb
CHANGED
@@ -26,6 +26,17 @@ TEXT
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
+
context "two files with same prefix root" do
|
30
|
+
let(:stages_root) { 'config/two_files_with_same_prefix' }
|
31
|
+
|
32
|
+
it "should display configurations" do
|
33
|
+
subject.should == <<-TEXT
|
34
|
+
cap qa # Load qa configuration
|
35
|
+
cap qa1 # Load qa1 configuration
|
36
|
+
TEXT
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
29
40
|
context "root with nested directory and two files inside" do
|
30
41
|
let(:stages_root) { 'config/nested' }
|
31
42
|
it {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-multiconfig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andriy Yanko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -36,6 +36,7 @@ extensions: []
|
|
36
36
|
extra_rdoc_files: []
|
37
37
|
files:
|
38
38
|
- .gitignore
|
39
|
+
- .travis.yml
|
39
40
|
- Gemfile
|
40
41
|
- LICENSE
|
41
42
|
- README.md
|
@@ -68,6 +69,8 @@ files:
|
|
68
69
|
- fixtures/config/third_level_nested/app/wiki/qa.rb
|
69
70
|
- fixtures/config/two_files/production.rb
|
70
71
|
- fixtures/config/two_files/staging.rb
|
72
|
+
- fixtures/config/two_files_with_same_prefix/qa.rb
|
73
|
+
- fixtures/config/two_files_with_same_prefix/qa1.rb
|
71
74
|
- fixtures/config/two_nested/api/production.rb
|
72
75
|
- fixtures/config/two_nested/api/staging.rb
|
73
76
|
- fixtures/config/two_nested/app/production.rb
|