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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da80597acf1e7f3985692907fc68837eb3b09c6e
4
- data.tar.gz: baa9d71c96ea62f058e5ab5e7352df7a5ed2681d
3
+ metadata.gz: 3f547696f37449532e2c786a2f5c1992624b0943
4
+ data.tar.gz: 7c294f17db04edf6859d381311f5d54ef158abc0
5
5
  SHA512:
6
- metadata.gz: a0f1acac60adff18de43bfdca2b89c3d0f003415a4a914a0797ac2c2b9e20aec8936b71c7720e2e6a1383b03c9e0e398b43ab1162301a949f966c852049e6677
7
- data.tar.gz: 617559b28ec7181913c225a84eedf7eb217dd1de4acdb7a0aab58ec19fea17e1b2fc3c53a259fa7b88299b9ff771fc701b73eaa8534968c91fdb355d7c265cb3
6
+ metadata.gz: 5006febe55e441a0de09db5bdc708fbed546af1cfbb5dda3fa29fad344c4ab471f8c20314593a77a8639f5f1b4266e17cb69ec92a9ed0437a05b2a3c94bb9446
7
+ data.tar.gz: ad4000cbcaffaa0c0d4fd962a79a18cc81e5f4e6c978d4ad0bc82e9a3bdb2a7a7b5a266f06d996ef1f361df569f7880478de0dbde48dc7b00f1df76c6142b629
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.1.0
5
+ cache: bundler
6
+ script:
7
+ - bundle exec rspec
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # capistrano-multiconfig
2
2
 
3
+ [![Build Status](https://travis-ci.org/railsware/capistrano-multiconfig.png)](https://travis-ci.org/railsware/capistrano-multiconfig)
4
+
3
5
  ## Description
4
6
 
5
7
  Capistrano extension that allows to use multiple configurations.
@@ -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.7"
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
@@ -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.7
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: 2013-11-07 00:00:00.000000000 Z
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