gem_tools 0.2.0 → 0.2.1

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
3
+
1
4
  == 0.2.0 2009-04-16
2
5
  * Added the check_updates command
3
6
  * Fixed the broken docs
data/bin/gemtools CHANGED
@@ -57,7 +57,8 @@ BANNER
57
57
  puts opts; exit
58
58
  end
59
59
 
60
- OPTIONS = opts
60
+ OPTS = opts
61
+ OPTIONS = options
61
62
  end.parse!
62
63
 
63
64
  GemTools.run command
@@ -2,7 +2,7 @@ module GemTools
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/lib/gem_tools.rb CHANGED
@@ -11,7 +11,7 @@ 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) && ! OPTIONS.has_key?(:force)
14
+ if File.exist?(dest_file) && ! OPTS.has_key?(:force)
15
15
  puts "#{dest_file} already exists.\n\ngemtools install #{ARGV[1]} --force\n\nto overwrite"
16
16
  exit 1
17
17
  else
@@ -76,7 +76,7 @@ module GemTools
76
76
 
77
77
  unless gems.nil?
78
78
  docs = ''
79
- unless OPTIONS.has_key?(:docs)
79
+ unless OPTS.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 OPTIONS.has_key?(:force) || !spec || (! loaded || version != gem['version'])
93
+ if OPTS.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.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Moen
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-16 00:00:00 -05:00
12
+ date: 2009-04-27 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency