capistrano-multiconfig 0.0.2 → 0.0.3

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.
@@ -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 = "0.0.2"
6
+ s.version = "0.0.3"
7
7
  s.authors = ["Andriy Yanko"]
8
8
  s.email = ["andriy.yanko@gmail.com"]
9
9
  s.homepage = "https://github.com/railsware/multiconfig"
@@ -39,12 +39,12 @@ Capistrano::Configuration.instance.load do
39
39
  desc "Load #{config_name} configuration"
40
40
  task(task_name) do
41
41
  # set configuration name as :config_name variable
42
- self.set(:config_name, config_name)
42
+ top.set(:config_name, config_name)
43
43
 
44
44
  # recursively load configurations
45
45
  segments.size.times do |i|
46
46
  path = ([config_root] + segments[0..i]).join('/') + '.rb'
47
- self.load(path) if File.exists?(path)
47
+ top.load(:file => path) if File.exists?(path)
48
48
  end
49
49
  end
50
50
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-multiconfig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-12-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
16
- requirement: &10692900 !ruby/object:Gem::Requirement
16
+ requirement: &11345740 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 2.5.5
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *10692900
24
+ version_requirements: *11345740
25
25
  description: ! "\nMulticonfig extension is similar to [multistage](https://github.com/capistrano/capistrano-ext)
26
26
  extenstion.\nBut it's not only about 'stage' configurations. It's about any configuration
27
27
  that you may need.\nExtension recursively builds configuration list from configuration