-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from cogitatio/develop
New version to fix bugs and address other issues
- Loading branch information
Showing
8 changed files
with
111 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,9 @@ | ||
$:.unshift File.expand_path("../lib", __FILE__) | ||
source 'https://rubygems.org' | ||
|
||
Gem::Specification.new do |s| | ||
s.name = "vagrant-hostsupdater" | ||
s.version = 0.2 | ||
s.platform = Gem::Platform::RUBY | ||
s.authors = "Falk Kühnel" | ||
s.email = "[email protected]" | ||
s.homepage = "https://github.com/cogitatio/vagrant-hostsupdater" | ||
s.summary = "Enables Vagrant to update hosts file on the host machine" | ||
s.description = "Enables Vagrant to update hosts file on the host machine" | ||
|
||
|
||
# s.add_development_dependency "rake" | ||
|
||
# # The following block of code determines the files that should be included | ||
# # in the gem. It does this by reading all the files in the directory where | ||
# # this gemspec is, and parsing out the ignored files from the gitignore. | ||
# # Note that the entire gitignore(5) syntax is not supported, specifically | ||
# # the "!" syntax, but it should mostly work correctly. | ||
# root_path = File.dirname(__FILE__) | ||
# all_files = Dir.chdir(root_path) { Dir.glob("**/{*,.*}") } | ||
# all_files.reject! { |file| [".", ".."].include?(File.basename(file)) } | ||
# gitignore_path = File.join(root_path, ".gitignore") | ||
# gitignore = File.readlines(gitignore_path) | ||
# gitignore.map! { |line| line.chomp.strip } | ||
# gitignore.reject! { |line| line.empty? || line =~ /^(#|!)/ } | ||
|
||
# unignored_files = all_files.reject do |file| | ||
# # Ignore any directories, the gemspec only cares about files | ||
# next true if File.directory?(file) | ||
|
||
# # Ignore any paths that match anything in the gitignore. We do | ||
# # two tests here: | ||
# # | ||
# # - First, test to see if the entire path matches the gitignore. | ||
# # - Second, match if the basename does, this makes it so that things | ||
# # like '.DS_Store' will match sub-directories too (same behavior | ||
# # as git). | ||
# # | ||
# gitignore.any? do |ignore| | ||
# File.fnmatch(ignore, file, File::FNM_PATHNAME) || | ||
# File.fnmatch(ignore, File.basename(file), File::FNM_PATHNAME) | ||
# end | ||
# end | ||
|
||
# s.files = unignored_files | ||
# s.executables = unignored_files.map { |f| f[/^bin\/(.*)/, 1] }.compact | ||
# s.require_path = 'lib' | ||
group :development do | ||
gem 'vagrant', :git => 'git://github.com/mitchellh/vagrant.git', :tag => 'v1.6.2' | ||
end | ||
|
||
group :plugins do | ||
gemspec | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module VagrantPlugins | ||
module HostsUpdater | ||
VERSION = "0.0.11" | ||
VERSION = "1.0.0" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,20 +4,20 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | |
require 'vagrant-hostsupdater/version' | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "vagrant-hostsupdater" | ||
spec.name = 'vagrant-hostsupdater' | ||
spec.version = VagrantPlugins::HostsUpdater::VERSION | ||
spec.authors = ["Falk Kühnel"] | ||
spec.email = ["[email protected]"] | ||
spec.authors = ['Falk Kühnel', 'Chris Smith'] | ||
spec.email = ['[email protected]', '[email protected]'] | ||
spec.description = %q{Enables Vagrant to update hosts file on the host machine} | ||
spec.summary = %q{Enables Vagrant to update hosts file on the host machine} | ||
spec.homepage = "https://github.com/cogitatio/vagrant-hostsupdater" | ||
spec.license = "MIT" | ||
spec.summary = spec.description | ||
spec.homepage = 'https://github.com/cogitatio/vagrant-hostsupdater' | ||
spec.license = 'MIT' | ||
|
||
spec.files = `git ls-files`.split($/) | ||
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } | ||
spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) | ||
spec.require_paths = ["lib"] | ||
spec.require_paths = ['lib'] | ||
|
||
spec.add_development_dependency "bundler", "~> 1.3" | ||
spec.add_development_dependency "rake" | ||
spec.add_development_dependency 'bundler', '~> 1.3' | ||
spec.add_development_dependency 'rake' | ||
end |