gem_tools 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/bin/gemtools +2 -1
- data/lib/gem_tools/version.rb +1 -1
- data/lib/gem_tools.rb +3 -3
- metadata +2 -2
data/History.txt
CHANGED
data/bin/gemtools
CHANGED
data/lib/gem_tools/version.rb
CHANGED
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) && !
|
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
|
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
|
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.
|
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-
|
12
|
+
date: 2009-04-27 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|