vagrant-dotenv 0.1.0.dev → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.gitignore +3 -2
- data/.ruby-version +1 -1
- data/Gemfile +11 -9
- data/Guardfile +7 -0
- data/README.md +1 -1
- data/Rakefile +14 -4
- data/Vagrantfile +5 -0
- data/certs/jbellone.pem +32 -0
- data/lib/vagrant-dotenv.rb +3 -1
- data/lib/vagrant-dotenv/action.rb +12 -8
- data/lib/vagrant-dotenv/action/is_enabled.rb +22 -13
- data/lib/vagrant-dotenv/action/load_environment.rb +21 -18
- data/lib/vagrant-dotenv/action/overload_environment.rb +24 -0
- data/lib/vagrant-dotenv/config.rb +19 -13
- data/lib/vagrant-dotenv/plugin.rb +6 -5
- data/lib/vagrant-dotenv/version.rb +2 -2
- data/spec/spec_helper.rb +15 -0
- data/spec/unit/vagrant-dotenv/action/is_enabled_spec.rb +35 -0
- data/spec/unit/vagrant-dotenv/action/load_environment_spec.rb +11 -0
- data/spec/unit/vagrant-dotenv/action/overload_environment_spec.rb +11 -0
- data/spec/unit/vagrant-dotenv/config_spec.rb +28 -0
- data/vagrant-dotenv.gemspec +5 -2
- metadata +57 -10
- metadata.gz.sig +0 -0
- data/test/test_helper.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62b4b265d658f90dcc41256fa71b4f5251992d07
|
4
|
+
data.tar.gz: 882261b4ec0836c7a2ee47083b41c62b09ef344b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03699ea54c2db9418d5c5d101456b6ca82bd8435ad1bced8d3afcc62b411c4b035469a7295b8f3695863ea6802d58e80693c31fa8bceb64038e9055aa543b298
|
7
|
+
data.tar.gz: 20ac99e83bcf99477ae97ac31fe99bb7c354a22b7a33f4b57fc95f1cfc9fb6ca91ce01969fecb910b6f6753a27796cc37978acda71f3c0695809943e0a49fcff
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
Binary file
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.0
|
1
|
+
2.0.0-p353
|
data/Gemfile
CHANGED
@@ -4,20 +4,22 @@ ruby '2.0.0'
|
|
4
4
|
|
5
5
|
gemspec
|
6
6
|
|
7
|
-
|
8
|
-
gem '
|
9
|
-
gem '
|
7
|
+
group :development, :test do
|
8
|
+
gem 'coveralls', require: false
|
9
|
+
gem 'rake'
|
10
|
+
gem 'rspec', '~> 2.11'
|
11
|
+
gem 'tailor', '~> 1.4'
|
12
|
+
gem 'cane', '~> 2.6'
|
13
|
+
gem 'fakefs', require: false
|
10
14
|
|
11
|
-
|
12
|
-
gem '
|
13
|
-
|
14
|
-
|
15
|
-
group :integration do
|
15
|
+
gem 'guard-rspec'
|
16
|
+
gem 'yard'
|
17
|
+
|
16
18
|
gem 'vagrant', git: 'https://github.com/mitchellh/vagrant',
|
17
19
|
ref: ENV.fetch('VAGRANT_VERSION', 'v1.5.0')
|
18
20
|
end
|
19
21
|
|
20
|
-
group :plugins do
|
22
|
+
group :plugins do
|
21
23
|
gem 'vagrant-dotenv', path: '.'
|
22
24
|
end
|
23
25
|
|
data/Guardfile
ADDED
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -1,8 +1,18 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
require 'bundler/gem_tasks'
|
3
|
+
require 'cane/rake_task'
|
4
|
+
require 'tailor/rake_task'
|
5
|
+
require 'rspec/core/rake_task'
|
3
6
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
7
|
+
Rake::Task[:install].clear
|
8
|
+
|
9
|
+
namespace :test do
|
10
|
+
RSpec::Core::RakeTask.new('unit') do |t|
|
11
|
+
t.pattern = 'spec/unit/**/*_spec.rb'
|
12
|
+
end
|
8
13
|
end
|
14
|
+
|
15
|
+
desc 'Run all tests.'
|
16
|
+
task :test => ['test:unit']
|
17
|
+
task :spec => :test
|
18
|
+
task :default => [:test]
|
data/Vagrantfile
ADDED
data/certs/jbellone.pem
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIFjjCCA3agAwIBAgIBATANBgkqhkiG9w0BAQUFADBGMRgwFgYDVQQDDA9qb2hu
|
3
|
+
LmJlbGxvbmUuanIxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixk
|
4
|
+
ARkWA2NvbTAeFw0xNDAzMTMxMzEwMjlaFw0xNTAzMTMxMzEwMjlaMEYxGDAWBgNV
|
5
|
+
BAMMD2pvaG4uYmVsbG9uZS5qcjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYK
|
6
|
+
CZImiZPyLGQBGRYDY29tMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA
|
7
|
+
yeEkbmuqlytk80M1mGStgb41RZ4XIc8zBee3966DxWXfYjlfkVDy/J844ElFD073
|
8
|
+
bSplUW3hA3qiLQA5woOsSzV8ySe97v2a+cDbpqrwFkqLZ68VywD7q0wRSD8R+NQC
|
9
|
+
0hjiYlnHRiSi6cbExdq3eyHVaAc223pYURgv9JAs8l49GQgoSiZxJ80wGgGWgaOV
|
10
|
+
zJUTr/Pn1qMD6rVA4Ra9jDhI8frgier/kQsuwYqNh7Pqn3VUclc1YHCbRubqCw/0
|
11
|
+
EYbvlravooKH1JZZ8Ml6A85oimrm6pMEtYyfkJgauom1P8rw24kT280ct6eXhiCO
|
12
|
+
54th3zVpXDSX2XBp/JOpkIQDz467jEN0t0gQ4T/23vPA73xy2EeL5pKmxdbrFrtx
|
13
|
+
ho3BXQ/NnSIoH13Q4rb+fAfJ2ctMgWpRcBz7k3XHSNxMFU4oGq6ufpeYZ5I7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3ARz5eNOQMCj7UZRRs1Mg05S2GRotDubs+ff7S4
|
29
|
+
9zOwxSoG5UwsoAzlCNAM+4teYHCs8iQoqTjk/phr28wobKOPV068GpBJ4N1lVOtB
|
30
|
+
ZdKpDYf0CfDQRAdH2iA7XEKkhTOSmyIb1ObRGUupP00rHKIlQVEurmYwkE/uXE9i
|
31
|
+
pX8ywfsNzgQejp/gAChMN3vbFPa03niSKVuxiZRK99GSmQ==
|
32
|
+
-----END CERTIFICATE-----
|
data/lib/vagrant-dotenv.rb
CHANGED
@@ -1,19 +1,23 @@
|
|
1
1
|
# coding: utf-8
|
2
|
-
require 'vagrant/action/builtin/call'
|
3
|
-
require 'vagrant-dotenv/action/is_enabled'
|
4
|
-
require 'vagrant-dotenv/action/load_environment'
|
5
|
-
|
6
2
|
module VagrantPlugins
|
7
|
-
module
|
8
|
-
|
9
|
-
|
3
|
+
module VagrantDotenv
|
4
|
+
# Middleware builders for Dotenv plugin actions.
|
5
|
+
module Action
|
6
|
+
# Returns an action middleware stack which configures the instance
|
7
|
+
# if the dotenv plugin has been enabled.
|
8
|
+
def self.configure
|
10
9
|
Vagrant::Action::Builder.new.tap do |b|
|
11
|
-
b.use Builtin::Call, IsEnabled do |env, b1|
|
10
|
+
b.use Vagrant::Action::Builtin::Call, IsEnabled do |env, b1|
|
12
11
|
next unless env[:result]
|
13
12
|
b1.use LoadEnvironment
|
13
|
+
b1.use OverloadEnvironment
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
17
|
+
|
18
|
+
require 'vagrant-dotenv/action/is_enabled'
|
19
|
+
require 'vagrant-dotenv/action/load_environment'
|
20
|
+
require 'vagrant-dotenv/action/overload_environment'
|
17
21
|
end
|
18
22
|
end
|
19
23
|
end
|
@@ -1,20 +1,29 @@
|
|
1
1
|
# coding: utf-8
|
2
|
-
|
3
|
-
module Dotenv
|
4
|
-
class IsEnabled
|
5
|
-
def initialize(app, env)
|
6
|
-
@app = app
|
7
|
-
end
|
2
|
+
require 'log4r'
|
8
3
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
4
|
+
module VagrantPlugins
|
5
|
+
module VagrantDotenv
|
6
|
+
module Action
|
7
|
+
# Middleware which uses configuration to check to see if Dotenv plugin
|
8
|
+
# has been enabled to run.
|
9
|
+
class IsEnabled
|
10
|
+
def initialize(app, env)
|
11
|
+
@app = app
|
12
|
+
end
|
13
|
+
|
14
|
+
def call(env)
|
15
|
+
env[:result] = plugin_enabled?(env[:global_config])
|
16
|
+
@app.call(env)
|
17
|
+
end
|
13
18
|
|
14
|
-
|
19
|
+
private
|
15
20
|
|
16
|
-
|
17
|
-
|
21
|
+
# Checks to see if configuration has been set for plugin to be enabled.
|
22
|
+
# @param [VagrantPlugins::Dotenv::Config] config
|
23
|
+
# @return [TrueClass, FalseClass]
|
24
|
+
def plugin_enabled?(config)
|
25
|
+
config.dotenv.enabled && config.dotenv.enabled != ''
|
26
|
+
end
|
18
27
|
end
|
19
28
|
end
|
20
29
|
end
|
@@ -1,27 +1,30 @@
|
|
1
1
|
# coding: utf-8
|
2
|
+
require 'log4r'
|
3
|
+
|
2
4
|
module VagrantPlugins
|
3
|
-
module
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
module VagrantDotenv
|
6
|
+
module Action
|
7
|
+
class LoadEnvironment
|
8
|
+
def initialize(app, env)
|
9
|
+
@app = app
|
10
|
+
end
|
8
11
|
|
9
|
-
|
10
|
-
|
12
|
+
def call(env)
|
13
|
+
config = env.fetch(:global_config).dotenv
|
14
|
+
home_path = env.fetch(:home_path)
|
15
|
+
root_path = env.fetch(:root_path)
|
11
16
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
end
|
17
|
+
# Only load default files if there were none specified.
|
18
|
+
if config.load_files.length == 0
|
19
|
+
config.load_files << File.join(home_path, '.env')
|
20
|
+
config.load_files << File.join(root_path, '.env')
|
21
|
+
end
|
18
22
|
|
19
|
-
|
20
|
-
Dotenv.load(config.dotenv.overload_files)
|
21
|
-
end
|
23
|
+
Dotenv.load(*config.load_files)
|
22
24
|
|
23
|
-
|
24
|
-
|
25
|
+
@app.call(env)
|
26
|
+
end
|
27
|
+
end
|
25
28
|
end
|
26
29
|
end
|
27
30
|
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
require 'log4r'
|
3
|
+
|
4
|
+
module VagrantPlugins
|
5
|
+
module VagrantDotenv
|
6
|
+
module Action
|
7
|
+
class OverloadEnvironment
|
8
|
+
def initialize(app, env)
|
9
|
+
@app = app
|
10
|
+
end
|
11
|
+
|
12
|
+
def call(env)
|
13
|
+
config = env[:global_config].dotenv
|
14
|
+
|
15
|
+
if config.overload_files.length > 0
|
16
|
+
Dotenv.overload(*config.overload_files)
|
17
|
+
end
|
18
|
+
|
19
|
+
@app.call(env)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -1,30 +1,36 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
module VagrantPlugins
|
3
|
-
module
|
3
|
+
module VagrantDotenv
|
4
4
|
# Default onfiguration for the dotenv configuration.
|
5
5
|
#
|
6
6
|
# @!parse class Config < Vagrant::Plugin::V2::Config; end
|
7
7
|
class Config < Vagrant.plugin('2', :config)
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
# @return [Array]
|
13
|
-
key :load_files
|
14
|
-
|
15
|
-
# @return [Array]
|
16
|
-
key :overload_files
|
8
|
+
attr_accessor :enabled
|
9
|
+
attr_accessor :load_files
|
10
|
+
attr_accessor :overload_files
|
17
11
|
|
18
12
|
def initialize
|
13
|
+
super
|
14
|
+
|
19
15
|
@enabled = UNSET_VALUE
|
20
16
|
@load_files = UNSET_VALUE
|
21
17
|
@overload_files = UNSET_VALUE
|
22
18
|
end
|
23
19
|
|
24
20
|
def finalize!
|
25
|
-
|
26
|
-
|
27
|
-
@
|
21
|
+
super
|
22
|
+
|
23
|
+
@enabled = ENV.fetch('VAGRANT_DOTENV', false) if @enabled == UNSET_VALUE
|
24
|
+
@load_files = [] if @load_files == UNSET_VALUE
|
25
|
+
@overload_files = [] if @load_files == UNSET_VALUE
|
26
|
+
|
27
|
+
unless @load_files.kind_of?(Array)
|
28
|
+
@load_files = [ @load_files.to_s ]
|
29
|
+
end
|
30
|
+
|
31
|
+
unless @overload_files.kind_of?(Array)
|
32
|
+
@overload_files = [ @overload_files.to_s ]
|
33
|
+
end
|
28
34
|
end
|
29
35
|
end
|
30
36
|
end
|
@@ -1,21 +1,22 @@
|
|
1
1
|
# coding: utf-8
|
2
|
+
require 'vagrant-dotenv/action'
|
3
|
+
require 'vagrant-dotenv/config'
|
4
|
+
|
2
5
|
module VagrantPlugins
|
3
|
-
module
|
6
|
+
module VagrantDotenv
|
4
7
|
class Plugin < Vagrant.plugin('2')
|
5
8
|
# Compatible Vagrant versions.
|
6
9
|
VAGRANT_VERSION_REQUIREMENT = '>= 1.5.0'
|
7
10
|
|
8
11
|
name 'vagrant-dotenv'
|
9
|
-
description ''
|
12
|
+
description 'Load environment variables using dotenv.'
|
10
13
|
|
11
14
|
config 'dotenv' do
|
12
|
-
require 'vagrant-dotenv/config'
|
13
15
|
Config
|
14
16
|
end
|
15
17
|
|
16
18
|
action_hook 'dotenv_configure', :environment_load do |hook|
|
17
|
-
|
18
|
-
hook.before Action.configure
|
19
|
+
hook.prepend Action.configure
|
19
20
|
end
|
20
21
|
end
|
21
22
|
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
require 'coveralls'
|
3
|
+
require 'vagrant-dotenv'
|
4
|
+
Coveralls.wear!
|
5
|
+
|
6
|
+
RSpec.configure do |config|
|
7
|
+
config.expect_with :rspec do |c|
|
8
|
+
c.syntax = :expect
|
9
|
+
end
|
10
|
+
|
11
|
+
config.color = true
|
12
|
+
config.tty = true
|
13
|
+
end
|
14
|
+
|
15
|
+
require 'fakefs/spec_helpers'
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe VagrantPlugins::Dotenv::Action::IsEnabled do
|
5
|
+
let(:app) { lambda { |env| } }
|
6
|
+
subject { described_class.new(app, {}) }
|
7
|
+
|
8
|
+
let(:dotenv) { double('dotenv', enabled: enabled) }
|
9
|
+
let(:config) { double('config', dotenv: dotenv) }
|
10
|
+
let(:machine) { double('machine', config: config) }
|
11
|
+
|
12
|
+
[false, nil, ''].each do |value|
|
13
|
+
context "with `config.dotenv.enabled = #{value}`" do
|
14
|
+
let(:env) { { machine: machine } }
|
15
|
+
let(:enabled) { value }
|
16
|
+
|
17
|
+
it 'results to a false condition' do
|
18
|
+
subject.call(env)
|
19
|
+
expect(env[:result]).to be_false
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
[true, 'yes'].each do |value|
|
25
|
+
context "with `config.dotenv.enabled = #{value}`" do
|
26
|
+
let(:env) { { machine: machine } }
|
27
|
+
let(:enabled) { value }
|
28
|
+
|
29
|
+
it 'results to a true condition' do
|
30
|
+
subject.call(env)
|
31
|
+
expect(env[:result]).to be_true
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe VagrantPlugins::Dotenv::Action::LoadEnvironment do
|
5
|
+
let(:app) { lambda { |env| } }
|
6
|
+
subject { described_class.new(app, {}) }
|
7
|
+
|
8
|
+
let(:dotenv) { double('dotenv', enabled: true) }
|
9
|
+
let(:config) { double('config', dotenv: dotenv) }
|
10
|
+
let(:machine) { double('machine', config: config) }
|
11
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe VagrantPlugins::Dotenv::Action::OverloadEnvironment do
|
5
|
+
let(:app) { lambda { |env| } }
|
6
|
+
subject { described_class.new(app, {}) }
|
7
|
+
|
8
|
+
let(:dotenv) { double('dotenv', enabled: true) }
|
9
|
+
let(:config) { double('config', dotenv: dotenv) }
|
10
|
+
let(:machine) { double('machine', config: config) }
|
11
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe VagrantPlugins::Dotenv::Config do
|
5
|
+
include FakeFS::SpecHelpers
|
6
|
+
|
7
|
+
let(:app) { lambda { |env| } }
|
8
|
+
subject { described_class.new(app, {}) }
|
9
|
+
|
10
|
+
let(:dotenv) { double('dotenv', enabled: true) }
|
11
|
+
let(:config) { double('config', dotenv: dotenv) }
|
12
|
+
let(:machine) { double('machine', config: config) }
|
13
|
+
|
14
|
+
let(:home_path) { '/home/jbellone/.vagrant.d' }
|
15
|
+
let(:cwd) { '/home/jbellone/Projects/vagrant-dotenv' }
|
16
|
+
|
17
|
+
context '#load_files' do
|
18
|
+
let(:env) { double('env', home_path: home_path, cwd: cwd) }
|
19
|
+
end
|
20
|
+
|
21
|
+
context '#overload_files' do
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
context '#enabled' do
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
data/vagrant-dotenv.gemspec
CHANGED
@@ -4,12 +4,15 @@ require 'vagrant-dotenv/version'
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'vagrant-dotenv'
|
7
|
-
spec.version = VagrantPlugins::
|
7
|
+
spec.version = VagrantPlugins::VagrantDotenv::VERSION
|
8
8
|
spec.authors = ['John Bellone']
|
9
|
-
spec.
|
9
|
+
spec.email = ['jbellone@bloomberg.net']
|
10
|
+
spec.description = 'A Vagrant plugin which configures environment variables using Dotenv.'
|
10
11
|
spec.summary = spec.description
|
11
12
|
spec.homepage = 'https://github.com/johnbellone/vagrant-dotenv'
|
12
13
|
spec.license = 'Apache 2.0'
|
14
|
+
spec.cert_chain = ['certs/jbellone.pem']
|
15
|
+
spec.signing_key = File.join(Dir.home, '.config/gem-private_key.pem') if $0 =~ /gem\z/
|
13
16
|
|
14
17
|
spec.files = `git ls-files`.split($/)
|
15
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,14 +1,47 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-dotenv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Bellone
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIFjjCCA3agAwIBAgIBATANBgkqhkiG9w0BAQUFADBGMRgwFgYDVQQDDA9qb2hu
|
14
|
+
LmJlbGxvbmUuanIxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixk
|
15
|
+
ARkWA2NvbTAeFw0xNDAzMTMxMzEwMjlaFw0xNTAzMTMxMzEwMjlaMEYxGDAWBgNV
|
16
|
+
BAMMD2pvaG4uYmVsbG9uZS5qcjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYK
|
17
|
+
CZImiZPyLGQBGRYDY29tMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA
|
18
|
+
yeEkbmuqlytk80M1mGStgb41RZ4XIc8zBee3966DxWXfYjlfkVDy/J844ElFD073
|
19
|
+
bSplUW3hA3qiLQA5woOsSzV8ySe97v2a+cDbpqrwFkqLZ68VywD7q0wRSD8R+NQC
|
20
|
+
0hjiYlnHRiSi6cbExdq3eyHVaAc223pYURgv9JAs8l49GQgoSiZxJ80wGgGWgaOV
|
21
|
+
zJUTr/Pn1qM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Uqrio8b38iF1DX1Bq
|
36
|
+
02NzPFf7oYlkAvbP21+fR4Xf1VocjPwa4W3Byn3K1mQoYltCyFPpQgUSiM4LVyCy
|
37
|
+
M10AysHAo8vztSz8t+bcM+rONfjiisO0DxSj1VS/p99MU2nUZGWFWbhLb3Gg/eJY
|
38
|
+
fz67xvIik6xtjB64UzPCo0hniC7C3M+jWMnXyhiM50W3WbAaP7ekAVuU5VVTcHNg
|
39
|
+
/DEhcSwwUYVrUfeMoqFIGunoo3ARz5eNOQMCj7UZRRs1Mg05S2GRotDubs+ff7S4
|
40
|
+
9zOwxSoG5UwsoAzlCNAM+4teYHCs8iQoqTjk/phr28wobKOPV068GpBJ4N1lVOtB
|
41
|
+
ZdKpDYf0CfDQRAdH2iA7XEKkhTOSmyIb1ObRGUupP00rHKIlQVEurmYwkE/uXE9i
|
42
|
+
pX8ywfsNzgQejp/gAChMN3vbFPa03niSKVuxiZRK99GSmQ==
|
43
|
+
-----END CERTIFICATE-----
|
44
|
+
date: 2014-03-17 00:00:00.000000000 Z
|
12
45
|
dependencies:
|
13
46
|
- !ruby/object:Gem::Dependency
|
14
47
|
name: dotenv
|
@@ -24,8 +57,9 @@ dependencies:
|
|
24
57
|
- - ~>
|
25
58
|
- !ruby/object:Gem::Version
|
26
59
|
version: '0.10'
|
27
|
-
description: A Vagrant plugin which configures environment variables.
|
28
|
-
email:
|
60
|
+
description: A Vagrant plugin which configures environment variables using Dotenv.
|
61
|
+
email:
|
62
|
+
- jbellone@bloomberg.net
|
29
63
|
executables: []
|
30
64
|
extensions: []
|
31
65
|
extra_rdoc_files: []
|
@@ -35,17 +69,25 @@ files:
|
|
35
69
|
- .ruby-version
|
36
70
|
- .travis.yml
|
37
71
|
- Gemfile
|
72
|
+
- Guardfile
|
38
73
|
- LICENSE
|
39
74
|
- README.md
|
40
75
|
- Rakefile
|
76
|
+
- Vagrantfile
|
77
|
+
- certs/jbellone.pem
|
41
78
|
- lib/vagrant-dotenv.rb
|
42
79
|
- lib/vagrant-dotenv/action.rb
|
43
80
|
- lib/vagrant-dotenv/action/is_enabled.rb
|
44
81
|
- lib/vagrant-dotenv/action/load_environment.rb
|
82
|
+
- lib/vagrant-dotenv/action/overload_environment.rb
|
45
83
|
- lib/vagrant-dotenv/config.rb
|
46
84
|
- lib/vagrant-dotenv/plugin.rb
|
47
85
|
- lib/vagrant-dotenv/version.rb
|
48
|
-
-
|
86
|
+
- spec/spec_helper.rb
|
87
|
+
- spec/unit/vagrant-dotenv/action/is_enabled_spec.rb
|
88
|
+
- spec/unit/vagrant-dotenv/action/load_environment_spec.rb
|
89
|
+
- spec/unit/vagrant-dotenv/action/overload_environment_spec.rb
|
90
|
+
- spec/unit/vagrant-dotenv/config_spec.rb
|
49
91
|
- vagrant-dotenv.gemspec
|
50
92
|
homepage: https://github.com/johnbellone/vagrant-dotenv
|
51
93
|
licenses:
|
@@ -62,14 +104,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
104
|
version: '0'
|
63
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
106
|
requirements:
|
65
|
-
- - '
|
107
|
+
- - '>='
|
66
108
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
109
|
+
version: '0'
|
68
110
|
requirements: []
|
69
111
|
rubyforge_project:
|
70
112
|
rubygems_version: 2.0.14
|
71
113
|
signing_key:
|
72
114
|
specification_version: 4
|
73
|
-
summary: A Vagrant plugin which configures environment variables.
|
115
|
+
summary: A Vagrant plugin which configures environment variables using Dotenv.
|
74
116
|
test_files:
|
75
|
-
-
|
117
|
+
- spec/spec_helper.rb
|
118
|
+
- spec/unit/vagrant-dotenv/action/is_enabled_spec.rb
|
119
|
+
- spec/unit/vagrant-dotenv/action/load_environment_spec.rb
|
120
|
+
- spec/unit/vagrant-dotenv/action/overload_environment_spec.rb
|
121
|
+
- spec/unit/vagrant-dotenv/config_spec.rb
|
122
|
+
has_rdoc:
|
metadata.gz.sig
ADDED
Binary file
|
data/test/test_helper.rb
DELETED