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 +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +9 -2
- data/README.md +1 -1
- data/capistrano-figaro-yml.gemspec +1 -1
- data/lib/capistrano/figaro_yml/helpers.rb +10 -2
- data/lib/capistrano/figaro_yml/version.rb +1 -1
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a11fee86fe0c76596b7893a75ba20087d915428
|
4
|
+
data.tar.gz: fd70e223f1eb5c30c3fea2bf94e27e1e939a8956
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9eff7abe514ac640ce13a37468aa54d56b80dda2a7a06fb7fdae25ec6233ae43a4ef7fd3b03a326e30b1d0278f1d86e43055c57b07d96484d2e908c15794f454
|
7
|
+
data.tar.gz: 2af237f3b0a9de17c1d40c323863ccbe353f8020dbf75049e4c17fd19cc7e068f396a1077d53f9dd32df39cf87af98b784d7aa2deab40b2940cbb61e6338b519
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
*.gem
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
5
|
-
-
|
10
|
+
|
11
|
+
- Started the project
|
12
|
+
- First working version
|
data/README.md
CHANGED
@@ -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
|
-
|
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
|
-
|
25
|
+
local_figaro_yml(figaro_yml_env).to_yaml
|
18
26
|
end
|
19
27
|
|
20
28
|
# error helpers
|
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.
|
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-
|
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.
|
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:
|