bin/gemsync in gemsync-0.1.1 vs bin/gemsync in gemsync-0.1.2
- old
+ new
@@ -1,17 +1,17 @@
#!/usr/bin/env ruby
-# Small script to sync multiple gem installations.
+# Small gem to sync multiple gem installations.
# (c) 2010 Josh Ellithorpe
require 'rubygems'
require 'trollop'
# Setup arguments from the command line.
opts = Trollop::options do
- version "gemsync 0.1.1 (c) 2010 Josh Ellithorpe"
+ version "gemsync 0.1.2 (c) 2010 Josh Ellithorpe"
banner <<-EOS
-Small script to sync multiple gem installations.
+Small gem to sync multiple gem installations.
Usage: gemsync [options]
Available Options:
EOS
@@ -34,10 +34,10 @@
Trollop::die :destination, "\n\t-- Directory '#{opts[:destination]}' does not exist" unless File.directory?(opts[:destination])
Trollop::die :destination, "\n\t-- Binary '#{opts[:destination]}/bin/gem' does not exist" unless File.exists?("#{opts[:destination]}/bin/gem")
@main_dir = opts[:source]
@sync_dir = opts[:destination]
-@docstring = opts[:build_docs] ? '--no-ri --no-rdoc' : ''
+@docstring = opts[:build_docs] ? '' : '--no-ri --no-rdoc'
@sudostring = opts[:disable_sudo] ? '' : (`which sudo`.strip + ' ') # Just stripping newline
# Gems you don't want to sync
def get_exceptions
# Setup hash of common gems that certain ruby installs can't support
\ No newline at end of file