capistrano3-env 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 524b3c098df722042a4254e332e1e580a14f9afa
4
- data.tar.gz: 4a33aedb2d3bec236f04d56e49a23747fdff036c
3
+ metadata.gz: f524cdfe79d4a71c21591cfa615abeb0d4e44b3f
4
+ data.tar.gz: a495073f3424f6613c69712f4adc99e4140802eb
5
5
  SHA512:
6
- metadata.gz: b8abba5f21ff0fba8616ef595a3189ff2b7c7f58f70a690d8cb0231f48250940f50ad90062e61dffc69c70eab08b121dd03a0f35bf09d423c331776ade0e76ce
7
- data.tar.gz: 175e55a0cc994bd71856e2e78e75d3ec155816fb0ad338f6024f50a76bdfe3bbcec0d93466f053ff54949d6b83b150ed5dd59be0589a645a47a26c8ab096ac07
6
+ metadata.gz: 4e93c9dcaa5bc28feced5eb44b4a8a94b5ffcf3d19f3cde32de7a9c9448bbfcaf8e51b3b52d27a69111d12a6414565fe46c612578011b2383fdbad9766c4ca1a
7
+ data.tar.gz: 96ae97373b923c72fe4c5d6afabc7869b2394877287852ba8af3bf9728a10695771617a3724e21bb2b817a6ba8a555a9e6d95985b7380d6416af41815dfd7568
data/README.md CHANGED
@@ -1,10 +1,14 @@
1
- # Capistrano 3 Configuration Management
1
+ # Capistrano 3 Env Management
2
+
3
+ Small Capistrano utility that allows easy management of app-specific
4
+ environment variables (currently supporting [dotenv](https://github.com/bkeepers/dotenv) only)
5
+
2
6
 
3
7
  ## Installation
4
8
 
5
9
  Add the gem to your Gemfile
6
10
 
7
- gem 'capistrano-doenv', '~> 0.1.0'
11
+ gem 'capistrano3-env', '~> 0.1.0'
8
12
 
9
13
  Run `bundle` to update your `Gemfile.lock`
10
14
  Add the following to your `Capfile`:
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "capistrano3-env"
7
- gem.version = '0.1.0'
7
+ gem.version = '0.1.1'
8
8
  gem.authors = ["Miguel Palhas"]
9
9
  gem.email = ["mpalhas@gmail.com"]
10
10
  gem.description = %q{Environment variables management for Capistrano 3}
@@ -77,7 +77,10 @@ module Capistrano
77
77
  end
78
78
 
79
79
  def hashify(string)
80
- Hash[string.split("\n").map {|val| val.split(/:|\n/).map(&:strip) }]
80
+ values = string.split("\n").map do |line|
81
+ line.split(/:|\n/, 2).map(&:strip)
82
+ end
83
+ Hash[values]
81
84
  end
82
85
 
83
86
  def stringify(values)
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano3-env
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Palhas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-01 00:00:00.000000000 Z
11
+ date: 2014-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.1'
27
27
  description: Environment variables management for Capistrano 3
@@ -32,7 +32,7 @@ executables:
32
32
  extensions: []
33
33
  extra_rdoc_files: []
34
34
  files:
35
- - .gitignore
35
+ - ".gitignore"
36
36
  - Gemfile
37
37
  - LICENSE
38
38
  - README.md
@@ -52,19 +52,18 @@ require_paths:
52
52
  - lib
53
53
  required_ruby_version: !ruby/object:Gem::Requirement
54
54
  requirements:
55
- - - '>='
55
+ - - ">="
56
56
  - !ruby/object:Gem::Version
57
57
  version: '0'
58
58
  required_rubygems_version: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - '>='
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  requirements: []
64
64
  rubyforge_project:
65
- rubygems_version: 2.1.11
65
+ rubygems_version: 2.2.2
66
66
  signing_key:
67
67
  specification_version: 4
68
68
  summary: Environment variables management for Capistrano 3
69
69
  test_files: []
70
- has_rdoc: