From 4321d71697367c8a0387ad48d77eb5aab1be3942 Mon Sep 17 00:00:00 2001 From: Michael Kuzmin Date: Tue, 6 Jan 2015 00:29:36 +0300 Subject: [PATCH] gem cleanup --- README.md | 26 ++--------------- .../guestip.rb => vagrant-guestip.rb} | 2 +- lib/vagrant/guestip/version.rb | 5 ---- vagrant-guestip.gemspec | 28 +++++++------------ 4 files changed, 14 insertions(+), 47 deletions(-) rename lib/{vagrant/guestip.rb => vagrant-guestip.rb} (83%) delete mode 100644 lib/vagrant/guestip/version.rb diff --git a/README.md b/README.md index 5dce018..f684e68 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,9 @@ -# Vagrant::Guestip - -TODO: Write a gem description +# vagrant-guestip plugin ## Installation -Add this line to your application's Gemfile: - - gem 'vagrant-guestip' - -And then execute: - - $ bundle - -Or install it yourself as: - - $ gem install vagrant-guestip + $ vagrant plugin install vagrant-guestip ## Usage -TODO: Write usage instructions here - -## Contributing - -1. Fork it ( https://github.com/[my-github-username]/vagrant-guestip/fork ) -2. Create your feature branch (`git checkout -b my-new-feature`) -3. Commit your changes (`git commit -am 'Add some feature'`) -4. Push to the branch (`git push origin my-new-feature`) -5. Create a new Pull Request + $ vagrant ip diff --git a/lib/vagrant/guestip.rb b/lib/vagrant-guestip.rb similarity index 83% rename from lib/vagrant/guestip.rb rename to lib/vagrant-guestip.rb index 08a76e7..44e2aef 100644 --- a/lib/vagrant/guestip.rb +++ b/lib/vagrant-guestip.rb @@ -1,7 +1,7 @@ require "vagrant/guestip/version" module Vagrant - module Guestip + module GuestIP # Your code goes here... end end diff --git a/lib/vagrant/guestip/version.rb b/lib/vagrant/guestip/version.rb deleted file mode 100644 index 3c652b6..0000000 --- a/lib/vagrant/guestip/version.rb +++ /dev/null @@ -1,5 +0,0 @@ -module Vagrant - module Guestip - VERSION = "0.0.1" - end -end diff --git a/vagrant-guestip.gemspec b/vagrant-guestip.gemspec index 158e577..d512336 100644 --- a/vagrant-guestip.gemspec +++ b/vagrant-guestip.gemspec @@ -1,23 +1,15 @@ -# coding: utf-8 -lib = File.expand_path('../lib', __FILE__) -$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) -require 'vagrant/guestip/version' - Gem::Specification.new do |spec| - spec.name = "vagrant-guestip" - spec.version = Vagrant::Guestip::VERSION - spec.authors = ["Michael Kuzmin"] - spec.email = ["mkuzmin@gmail.com"] - spec.summary = %q{TODO: Write a short summary. Required.} - spec.description = %q{TODO: Write a longer description. Optional.} - spec.homepage = "" - spec.license = "MIT" + spec.name = 'vagrant-guestip' + spec.version = '0.0.1' + spec.authors = ['Michael Kuzmin'] + spec.email = ['mkuzmin@gmail.com'] + spec.summary = 'Vagrant plugin for obtaining IP address of guest machine' + spec.homepage = 'https://github.com/mkuzmin/vagrant-gusetip' + spec.license = 'MIT' spec.files = `git ls-files -z`.split("\x0") - 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.6" - spec.add_development_dependency "rake" + spec.add_development_dependency 'bundler', '~> 1.6' + spec.add_development_dependency 'rake' end