gemsync 0.1.5 → 0.1.6

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/Rakefile CHANGED
@@ -5,7 +5,7 @@ begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "gemsync"
8
- gem.version = "0.1.5"
8
+ gem.version = "0.1.6"
9
9
  gem.summary = %Q{Small gem to sync multiple gem installations.}
10
10
  gem.description = %Q{Small gem to sync multiple gem installations. This can be done by pointing to a ruby installation or from a text file created by `gem list > file.txt`.}
11
11
  gem.email = "quest@mac.com"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.6
data/bin/gemsync CHANGED
@@ -8,7 +8,7 @@ require 'trollop'
8
8
  # Setup arguments from the command line.
9
9
  # This uses the trollop library on github.
10
10
  opts = Trollop::options do
11
- version "gemsync 0.1.5 (c) 2010 Josh Ellithorpe"
11
+ version "gemsync 0.1.6 (c) 2010 Josh Ellithorpe"
12
12
  banner <<-EOS
13
13
  Small gem to sync multiple gem installations.
14
14
 
@@ -132,8 +132,13 @@ for gem in gems
132
132
  for version in (gem_versions.split(", ") - current_gem_versions)
133
133
  if gem_name == "mysql"
134
134
  # Also look for mysql5 type binaries that some package managers use
135
- mysql_config = `which mysql_config` || `which mysql_config5`
136
- mysql_dir = `which mysql` || `which mysql5`
135
+ # The array below is a list of mysql suffixes
136
+ mysql_config = ''
137
+ mysql_dir = ''
138
+ ['', '5'].each do |v|
139
+ mysql_config = `which mysql_config#{v}` if mysql_config == ''
140
+ mysql_dir = `which mysql#{v}` if mysql_dir == ''
141
+ end
137
142
  mysql_dir = mysql_dir.split('/')[0..-3].join('/')
138
143
  system("#{@sudostring}#{@sync_dir}/bin/gem install #{gem_name} -v #{version} -- --with-mysql-dir=#{mysql_dir} --with-mysql-config=#{mysql_config} #{@docstring}")
139
144
  else
data/gemsync.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gemsync}
8
- s.version = "0.1.5"
8
+ s.version = "0.1.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["quest"]
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
26
26
  "VERSION",
27
27
  "bin/gemsync",
28
28
  "gemsync.gemspec",
29
- "pkg/gemsync-0.1.5.gem",
29
+ "pkg/gemsync-0.1.6.gem",
30
30
  "rdoc/created.rid",
31
31
  "rdoc/files/README_rdoc.html",
32
32
  "rdoc/fr_class_index.html",
Binary file
data/rdoc/created.rid CHANGED
@@ -1 +1 @@
1
- Tue, 21 Sep 2010 09:39:20 -0700
1
+ Tue, 21 Sep 2010 09:52:42 -0700
data/rdoc/index.html CHANGED
@@ -5,12 +5,12 @@
5
5
 
6
6
  <!--
7
7
 
8
- gemsync 0.1.5
8
+ gemsync 0.1.6
9
9
 
10
10
  -->
11
11
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
12
12
  <head>
13
- <title>gemsync 0.1.5</title>
13
+ <title>gemsync 0.1.6</title>
14
14
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
15
  </head>
16
16
  <frameset rows="20%, 80%">
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemsync
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 5
10
- version: 0.1.5
9
+ - 6
10
+ version: 0.1.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - quest
@@ -51,7 +51,7 @@ files:
51
51
  - VERSION
52
52
  - bin/gemsync
53
53
  - gemsync.gemspec
54
- - pkg/gemsync-0.1.5.gem
54
+ - pkg/gemsync-0.1.6.gem
55
55
  - rdoc/created.rid
56
56
  - rdoc/files/README_rdoc.html
57
57
  - rdoc/fr_class_index.html
Binary file