dotenv-deployment 0.0.2 → 0.2.0

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: e4f4b2ff79bb5abcadd19b7d832807eda6828384
4
- data.tar.gz: c6e471aa20d735898ca3064a2cdecb7af7f6457c
3
+ metadata.gz: 88bee744057b4126515cc84bdcd57dc7fee5f752
4
+ data.tar.gz: 45a70dd8b0e4d2cc79174a8771ea0c3f3ba97f67
5
5
  SHA512:
6
- metadata.gz: 888db081a409d26f199cb8f777689d7b4a9d3c08baf338a61dd22709afc05b1d3bf2dfeae52dee38bc10a1f94d1f2100bbb46b3bbb0e6a53cabff093a736a0b9
7
- data.tar.gz: 37f81a9cc3f44f7466b3b94773b29248e8f01a33e740926ae2627ebbb054cbd28a1cf3003e680bcc26eec2dd43b9ea61747c15839e238c2d10fb5e6cf1baa62d
6
+ metadata.gz: 59cf17b89379fd91f3f1f88190c4f2279c5f3d2d78007c7499bb65a73fd611c5a172ed26118fdb732e263d10aff0045b72b4ba88c8ac73b9a1921bc378d39cc6
7
+ data.tar.gz: db4e61ae26a8b0e5f57d7366c42a6670a18e47a4fc7a195024408fb4824ffbba8c212d7677b10c7f0e54dcd17e1a09737b70b30152ed473c380e727e71d0092b
data/Changelog.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.0 - Oct 3, 2014
4
+
5
+ * Declare dependency on dotenv ~>1.0
6
+
7
+ * Fix ruby warnings [#12](https://github.com/bkeepers/dotenv-deployment/pull/12)
8
+
9
+ * Capistrano 2: fix `set :dotenv_role` ([#15](https://github.com/bkeepers/dotenv-deployment/pull/15))
10
+
11
+ [Full Changelog](https://github.com/bkeepers/dotenv/compare/v0.0.2...v0.0.3)
12
+
3
13
  ## 0.0.2 - Apr 22, 2014
4
14
 
5
15
  * Fix syntax errors after extracting from `dotenv`
data/README.md CHANGED
@@ -21,7 +21,7 @@ And then execute:
21
21
 
22
22
  ## Multiple Environments
23
23
 
24
- By default `.env` will be loaded when `dotenv-deployment` is required. It will not override existing environment variables.
24
+ By default `.env` will be loaded when `dotenv/deployment` is required. It will not override existing environment variables.
25
25
 
26
26
  If you're using Rails or `ENV['RACK_ENV']` is set, an environment-specific file (like `.env.production`) will be loaded and override any existing variables. In a Rails project, `config/*.env` and `config/*.env.#{environment}` will also be loaded.
27
27
 
@@ -41,7 +41,7 @@ It will symlink the `.env` located in `/path/to/shared` in the new release.
41
41
 
42
42
  ### Capistrano 3
43
43
 
44
- Just add `.env` to the list of linked files, for example:
44
+ This gem is not needed; Capistrano 3 has a baked-in mechanism for symlinking files. Just add `.env` to the list of linked files, for example:
45
45
 
46
46
  ```ruby
47
47
  set :linked_files, %w{config/database.yml .env}
@@ -17,6 +17,8 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ["lib"]
19
19
 
20
+ spec.add_dependency "dotenv", "~>1.0"
21
+
20
22
  spec.add_development_dependency "bundler", "~> 1.5"
21
23
  spec.add_development_dependency "rake"
22
24
  end
@@ -1,7 +1,7 @@
1
1
  Capistrano::Configuration.instance(:must_exist).load do
2
2
  _cset(:dotenv_path){ "#{shared_path}/.env" }
3
3
 
4
- symlink_args = (role = fetch(:dotenv_role, nil) ? {:roles => role} : {})
4
+ symlink_args = (role = fetch(:dotenv_role, nil)) ? {:roles => role} : {}
5
5
 
6
6
  namespace :dotenv do
7
7
  desc "Symlink shared .env to current release"
@@ -1,5 +1,5 @@
1
1
  module Dotenv
2
2
  module Deployment
3
- VERSION = "0.0.2"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -2,11 +2,11 @@ require "dotenv"
2
2
  require "dotenv/deployment/version"
3
3
 
4
4
  # Load defaults from .env or *.env in config
5
- Dotenv.load '.env'
6
- Dotenv.load *Dir.glob("#{Rails.root}/config/**/*.env") if defined?(Rails)
5
+ Dotenv.load('.env')
6
+ Dotenv.load(*Dir.glob("#{Rails.root}/config/**/*.env")) if defined?(Rails)
7
7
 
8
8
  # Override any existing variables if an environment-specific file exists
9
9
  if environment = ENV['RACK_ENV'] || (defined?(Rails) && Rails.env)
10
- Dotenv.overload ".env.#{environment}"
11
- Dotenv.overload *Dir.glob("#{Rails.root}/config/**/*.env.#{environment}") if defined?(Rails)
10
+ Dotenv.overload(".env.#{environment}")
11
+ Dotenv.overload(*Dir.glob("#{Rails.root}/config/**/*.env.#{environment}")) if defined?(Rails)
12
12
  end
metadata CHANGED
@@ -1,41 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dotenv-deployment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Keepers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-22 00:00:00.000000000 Z
11
+ date: 2014-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: dotenv
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
- - - ~>
31
+ - - "~>"
18
32
  - !ruby/object:Gem::Version
19
33
  version: '1.5'
20
34
  type: :development
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
- - - ~>
38
+ - - "~>"
25
39
  - !ruby/object:Gem::Version
26
40
  version: '1.5'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - '>='
45
+ - - ">="
32
46
  - !ruby/object:Gem::Version
33
47
  version: '0'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - '>='
52
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
41
55
  description:
@@ -45,7 +59,7 @@ executables: []
45
59
  extensions: []
46
60
  extra_rdoc_files: []
47
61
  files:
48
- - .gitignore
62
+ - ".gitignore"
49
63
  - Changelog.md
50
64
  - Gemfile
51
65
  - LICENSE.txt
@@ -66,19 +80,18 @@ require_paths:
66
80
  - lib
67
81
  required_ruby_version: !ruby/object:Gem::Requirement
68
82
  requirements:
69
- - - '>='
83
+ - - ">="
70
84
  - !ruby/object:Gem::Version
71
85
  version: '0'
72
86
  required_rubygems_version: !ruby/object:Gem::Requirement
73
87
  requirements:
74
- - - '>='
88
+ - - ">="
75
89
  - !ruby/object:Gem::Version
76
90
  version: '0'
77
91
  requirements: []
78
92
  rubyforge_project:
79
- rubygems_version: 2.0.3
93
+ rubygems_version: 2.2.2
80
94
  signing_key:
81
95
  specification_version: 4
82
96
  summary: Deployment concerns for dotenv
83
97
  test_files: []
84
- has_rdoc: