capistrano-figaro-yml 1.0.1 → 1.0.2

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: 4126e47bbb175d43a85357870e707ae72aabe88c
4
- data.tar.gz: d36052e97c6700bf4823ccc41ed9cc66fe360953
3
+ metadata.gz: 6a11fee86fe0c76596b7893a75ba20087d915428
4
+ data.tar.gz: fd70e223f1eb5c30c3fea2bf94e27e1e939a8956
5
5
  SHA512:
6
- metadata.gz: 4403dda48b75e7d5c4212b7602b5c71877dd205d885b49a36b37c01bcad98c81374d4ab364235f9091a0a76c84c835077b9b8f9f8a91bfc5904a96e3fac7168b
7
- data.tar.gz: 28b8f712b016d7b863e37f93b64064f5559e0c1d85671113ab8d65d532680026822c82bca62c451e891cfd291d8018fcc91640de8aecc14dc19f695dce9b7d7e
6
+ metadata.gz: 9eff7abe514ac640ce13a37468aa54d56b80dda2a7a06fb7fdae25ec6233ae43a4ef7fd3b03a326e30b1d0278f1d86e43055c57b07d96484d2e908c15794f454
7
+ data.tar.gz: 2af237f3b0a9de17c1d40c323863ccbe353f8020dbf75049e4c17fd19cc7e068f396a1077d53f9dd32df39cf87af98b784d7aa2deab40b2940cbb61e6338b519
@@ -0,0 +1 @@
1
+ *.gem
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ### v1.0.2, 2015-04-24
4
+
5
+ - Fixed Keys that are not defined inside a specific environment are also export
6
+
7
+ by @jameslafa
8
+
3
9
  ### v1.0.1, 2015-01-24
4
- - started the project
5
- - first working version
10
+
11
+ - Started the project
12
+ - First working version
data/README.md CHANGED
@@ -8,7 +8,7 @@ Add this to `Gemfile`:
8
8
 
9
9
  group :development do
10
10
  gem 'capistrano', '~> 3.3.0'
11
- gem 'capistrano-figaro-yml', '~> 1.0.1'
11
+ gem 'capistrano-figaro-yml', '~> 1.0.2'
12
12
  end
13
13
 
14
14
  And then:
@@ -26,5 +26,5 @@ Gem::Specification.new do |gem|
26
26
  gem.add_runtime_dependency 'capistrano', '~> 3.1'
27
27
  gem.add_runtime_dependency 'sshkit', '~> 1.2', '>= 1.2.0'
28
28
 
29
- gem.add_development_dependency 'rake', '~> 0'
29
+ gem.add_development_dependency 'rake', '>= 0'
30
30
  end
@@ -6,7 +6,15 @@ module Capistrano
6
6
 
7
7
  def local_figaro_yml(env)
8
8
  @local_figaro_yml ||= YAML.load_file(figaro_yml_local_path)
9
- @local_figaro_yml[env]
9
+ local_figaro = {}
10
+
11
+ @local_figaro_yml.each do |key, value|
12
+ if key == env or !value.is_a?(Hash)
13
+ local_figaro[key] = @local_figaro_yml[key]
14
+ end
15
+ end
16
+
17
+ local_figaro
10
18
  end
11
19
 
12
20
  def figaro_yml_env
@@ -14,7 +22,7 @@ module Capistrano
14
22
  end
15
23
 
16
24
  def figaro_yml_content
17
- { figaro_yml_env => local_figaro_yml(figaro_yml_env) }.to_yaml
25
+ local_figaro_yml(figaro_yml_env).to_yaml
18
26
  end
19
27
 
20
28
  # error helpers
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module FigaroYml
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-figaro-yml
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chia-Hui Chou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-24 00:00:00.000000000 Z
11
+ date: 2015-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -48,14 +48,14 @@ dependencies:
48
48
  name: rake
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - "~>"
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
61
  description: |
@@ -68,6 +68,7 @@ executables: []
68
68
  extensions: []
69
69
  extra_rdoc_files: []
70
70
  files:
71
+ - ".gitignore"
71
72
  - CHANGELOG.md
72
73
  - Gemfile
73
74
  - LICENSE.md
@@ -100,9 +101,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
101
  version: '0'
101
102
  requirements: []
102
103
  rubyforge_project:
103
- rubygems_version: 2.4.5
104
+ rubygems_version: 2.4.3
104
105
  signing_key:
105
106
  specification_version: 4
106
107
  summary: Capistrano tasks for automating figaro `application.yml` file handling for
107
108
  Rails 4+ apps.
108
109
  test_files: []
110
+ has_rdoc: