gem_tools 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.2.0 2009-04-27
2
+ * Fixed the broken refs to opts as a Hash, no really this time. Thanks cohesive
3
+
1
4
  == 0.2.0 2009-04-27
2
5
  * Fixed the broken refs to opts as a Hash
3
6
 
@@ -2,7 +2,7 @@ module GemTools
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/lib/gem_tools.rb CHANGED
@@ -11,8 +11,8 @@ module GemTools
11
11
  def setup
12
12
  require 'fileutils'
13
13
  dest_file = File.join(ARGV[1], '/config/gems.yml')
14
- if File.exist?(dest_file) && ! OPTS.has_key?(:force)
15
- puts "#{dest_file} already exists.\n\ngemtools install #{ARGV[1]} --force\n\nto overwrite"
14
+ if File.exist?(dest_file) && ! OPTIONS.has_key?(:force)
15
+ puts "#{dest_file} already exists.\n\ngemtools setup #{ARGV[1]} --force\n\nto overwrite"
16
16
  exit 1
17
17
  else
18
18
  FileUtils.copy(File.join(File.dirname(__FILE__), '../config/gems.template.yml'), dest_file)
@@ -36,7 +36,7 @@ module GemTools
36
36
  end
37
37
 
38
38
  def help
39
- puts OPTIONS
39
+ puts OPTS
40
40
  end
41
41
 
42
42
  def load_config
@@ -76,7 +76,7 @@ module GemTools
76
76
 
77
77
  unless gems.nil?
78
78
  docs = ''
79
- unless OPTS.has_key?(:docs)
79
+ unless OPTIONS.has_key?(:docs)
80
80
  docs << '--no-rdoc ' unless (`rdoc --version`).nil?
81
81
  docs << '--no-ri ' unless (`ri --version`).nil?
82
82
  end
@@ -90,7 +90,7 @@ module GemTools
90
90
  # or the spec version doesn't match the required version
91
91
  # or require_gem returns false
92
92
  # (return false also happens if the gem has already been loaded)
93
- if OPTS.has_key?(:force) || !spec || (! loaded || version != gem['version'])
93
+ if OPTIONS.has_key?(:force) || !spec || (! loaded || version != gem['version'])
94
94
  gem_config = gem['config'] ? " -- #{gem['config']}" : ''
95
95
  source = gem['source'] || config['source'] || nil
96
96
  source = "--source #{source}" if source
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Moen