vagrant-gem 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,8 +16,9 @@ module VagrantGemPlugin
16
16
  # If the user needs some help, we add our own little message at the
17
17
  # top so that they're aware of what `vagrant gem` is doing, really.
18
18
  if @argv.empty? || @argv.include?("-h") || @argv.include?("--help")
19
- # see https://github.com/mitchellh/vagrant/blob/v1.0.7/templates/locales/en.yml
20
- @env.ui.info(I18n.t("vagrant.commands.gem.help_preamble"),
19
+ # copy and pasted from:
20
+ # https://github.com/mitchellh/vagrant/blob/v1.0.7/templates/locales/en.yml
21
+ @env.ui.info(I18n.t("vagrant_gem_plugin.help_preamble"),
21
22
  :prefix => false)
22
23
  safe_puts
23
24
  end
@@ -1,3 +1,3 @@
1
1
  module VagrantGemPlugin
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/vagrant-gem.rb CHANGED
@@ -7,4 +7,13 @@ module VagrantGemPlugin
7
7
  Command
8
8
  end
9
9
  end
10
+
11
+ # The source root is the path to the root directory of
12
+ # the plugin gem.
13
+ def self.source_root
14
+ @source_root ||= Pathname.new(File.expand_path('../../', __FILE__))
15
+ end
16
+
17
+ # Default I18n to load the en locale
18
+ I18n.load_path << File.expand_path("templates/locales/en.yml", VagrantGemPlugin.source_root)
10
19
  end
@@ -0,0 +1,8 @@
1
+ en:
2
+ vagrant_gem_plugin:
3
+ help_preamble: |-
4
+ `vagrant gem` is used to install Vagrant plugins via the RubyGems
5
+ system. In fact, `vagrant gem` is just a frontend to the actual `gem`
6
+ interface, with the difference being that Vagrant sets up a custom
7
+ directory where gems are installed so that they are isolated from your
8
+ system gems.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -58,6 +58,7 @@ files:
58
58
  - lib/vagrant-gem.rb
59
59
  - lib/vagrant-gem/command.rb
60
60
  - lib/vagrant-gem/version.rb
61
+ - templates/locales/en.yml
61
62
  - vagrant-gem.gemspec
62
63
  homepage: https://github.com/anentropic/vagrant-gem
63
64
  licenses:
@@ -74,7 +75,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
74
75
  version: '0'
75
76
  segments:
76
77
  - 0
77
- hash: 1015540383651271759
78
+ hash: -2972094502473227740
78
79
  required_rubygems_version: !ruby/object:Gem::Requirement
79
80
  none: false
80
81
  requirements:
@@ -83,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
84
  version: '0'
84
85
  segments:
85
86
  - 0
86
- hash: 1015540383651271759
87
+ hash: -2972094502473227740
87
88
  requirements: []
88
89
  rubyforge_project:
89
90
  rubygems_version: 1.8.25