olek-capistrano-multiconfig 0.0.3.1 → 0.0.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "olek-capistrano-multiconfig"
6
- s.version = "0.0.3.1"
6
+ s.version = "0.0.3.2"
7
7
  s.authors = ["Andriy Yanko"]
8
8
  s.email = ["andriy.yanko@gmail.com"]
9
9
  s.homepage = "https://github.com/railsware/multiconfig"
@@ -5,10 +5,11 @@ Capistrano::Configuration.instance.load do
5
5
  # list of configurations files
6
6
  config_files = Dir["#{config_root}/**/*.rb"]
7
7
 
8
- # remove configuration file if it's part of another configuration
8
+ # remove configuration file if it's top-level file or part of another configuration
9
9
  config_files.reject! do |config_file|
10
10
  config_dir = config_file.gsub(/\.rb$/, '/')
11
- config_files.any? { |file| file[0, config_dir.size] == config_dir }
11
+ config_file.count('/') == (config_root.count('/') + 1) ||
12
+ config_files.any? { |file| file.start_with?(config_dir) }
12
13
  end
13
14
 
14
15
  # build configuration names list
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: olek-capistrano-multiconfig
3
3
  version: !ruby/object:Gem::Version
4
- hash: 65
4
+ hash: 71
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
9
  - 3
10
- - 1
11
- version: 0.0.3.1
10
+ - 2
11
+ version: 0.0.3.2
12
12
  platform: ruby
13
13
  authors:
14
14
  - Andriy Yanko
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-01-24 00:00:00 Z
19
+ date: 2012-01-25 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: capistrano