diff --git a/Gemfile b/Gemfile index 48f8eb4..7012e22 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,6 @@ source 'https://rubygems.org' -# Specify your gem's dependencies in vagrant-env.gemspec +# Specify your gem's dependencies in vagrant-readenv.gemspec gemspec group :development do @@ -9,5 +9,5 @@ group :development do end group :plugins do - gem "vagrant-env", path: "." + gem "vagrant-readenv", path: "." end diff --git a/lib/vagrant-env.rb b/lib/vagrant-env.rb deleted file mode 100644 index 1619487..0000000 --- a/lib/vagrant-env.rb +++ /dev/null @@ -1,6 +0,0 @@ -require "dotenv" -require "vagrant-env/plugin" - -module VagrantPlugins - module Env; end -end diff --git a/lib/vagrant-readenv.rb b/lib/vagrant-readenv.rb new file mode 100644 index 0000000..b27ca33 --- /dev/null +++ b/lib/vagrant-readenv.rb @@ -0,0 +1,6 @@ +require "dotenv" +require "vagrant-readenv/plugin" + +module VagrantPlugins + module ReadEnv; end +end diff --git a/lib/vagrant-env/config.rb b/lib/vagrant-readenv/config.rb similarity index 97% rename from lib/vagrant-env/config.rb rename to lib/vagrant-readenv/config.rb index cd3a515..5d21d62 100644 --- a/lib/vagrant-env/config.rb +++ b/lib/vagrant-readenv/config.rb @@ -1,7 +1,7 @@ require 'dotenv' module VagrantPlugins - module Env + module ReadEnv class Config < Vagrant.plugin("2", :config) # Simple interface: diff --git a/lib/vagrant-env/plugin.rb b/lib/vagrant-readenv/plugin.rb similarity index 72% rename from lib/vagrant-env/plugin.rb rename to lib/vagrant-readenv/plugin.rb index f83b0fe..8e6e7c3 100644 --- a/lib/vagrant-env/plugin.rb +++ b/lib/vagrant-readenv/plugin.rb @@ -1,19 +1,19 @@ begin require "vagrant" rescue LoadError - raise "The Vagrant ENV plugin must be run within Vagrant." + raise "The Vagrant READENV plugin must be run within Vagrant." end # This is a sanity check to make sure no one is attempting to install # this into an early Vagrant version. if Vagrant::VERSION < "1.2.0" - raise "The Vagrant ENV plugin is only compatible with Vagrant 1.2+" + raise "The Vagrant READENV plugin is only compatible with Vagrant 1.2+" end module VagrantPlugins - module Env + module ReadEnv class Plugin < Vagrant.plugin("2") - name "ENV" + name "READENV" description <<-DESC Vagrant plugin to load environment variables from .env into ENV DESC diff --git a/lib/vagrant-env/version.rb b/lib/vagrant-readenv/version.rb similarity index 76% rename from lib/vagrant-env/version.rb rename to lib/vagrant-readenv/version.rb index d4b7a55..b6c6a87 100644 --- a/lib/vagrant-env/version.rb +++ b/lib/vagrant-readenv/version.rb @@ -1,5 +1,5 @@ module VagrantPlugins - module Env + module ReadEnv VERSION = "0.0.3" end end diff --git a/vagrant-env.gemspec b/vagrant-readenv.gemspec similarity index 81% rename from vagrant-env.gemspec rename to vagrant-readenv.gemspec index 70bcaad..e5d4cf3 100644 --- a/vagrant-env.gemspec +++ b/vagrant-readenv.gemspec @@ -1,16 +1,16 @@ # coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) -require 'vagrant-env/version' +require 'vagrant-readenv/version' Gem::Specification.new do |spec| - spec.name = "vagrant-env" + spec.name = "vagrant-readenv" spec.version = VagrantPlugins::Env::VERSION spec.authors = ["Greg Osuri"] spec.email = ["greg@overclock.io"] spec.summary = %q{Vagrant plugin to load environment variables from .env into ENV} spec.description = %q{Vagrant plugin to load environment variables from .env into ENV} - spec.homepage = "http://github.com/gosuri/vagrant-env" + spec.homepage = "http://github.com/groovenectar/vagrant-readenv" spec.license = "MIT" spec.files = %w(README.md LICENSE.txt vagrant-env.gemspec @@ -19,6 +19,6 @@ Gem::Specification.new do |spec| lib/vagrant-env/config.rb lib/vagrant-env/plugin.rb) spec.require_paths = ["lib"] - spec.add_runtime_dependency "dotenv", "~> 0.9" + spec.add_runtime_dependency "dotenv", "~> 2.5" spec.add_development_dependency "bundler", "~> 1.6" end