gizzmo 0.7.4 → 0.7.5

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.4
1
+ 0.7.5
data/gizzmo.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gizzmo}
8
- s.version = "0.7.4"
8
+ s.version = "0.7.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kyle Maxwell"]
12
- s.date = %q{2010-10-04}
12
+ s.date = %q{2010-10-05}
13
13
  s.default_executable = %q{gizzmo}
14
14
  s.description = %q{Gizzmo is a command-line client for managing gizzard clusters.}
15
15
  s.email = %q{kmaxwell@twitter.com}
@@ -254,8 +254,8 @@ module Gizzard
254
254
 
255
255
  class WrapCommand < ShardCommand
256
256
  def self.derive_wrapper_shard_id(shard_info, wrapping_class_name)
257
- prefix_prefix = wrapping_class_name.split(".").last.downcase.gsub("shard", "") + "_"
258
- ShardId.new("localhost", prefix_prefix + shard_info.id.table_prefix)
257
+ suffix = "_" + wrapping_class_name.split(".").last.downcase.gsub("shard", "")
258
+ ShardId.new("localhost", shard_info.id.table_prefix + suffix)
259
259
  end
260
260
 
261
261
  def run
@@ -331,7 +331,6 @@ module Gizzard
331
331
  puts "gizzmo create #{shard_info.class_name} -s '#{shard_info.source_type}' -d '#{shard_info.destination_type}' #{new_shards.join(" ")}"
332
332
  puts "gizzmo wrap #{command_options.write_only_shard} #{new_shards.join(" ")}"
333
333
  shards.map {|(old, new)| puts "gizzmo copy #{old} #{new}" }
334
- shards.map {|(old, new)| puts "gizzmo copy #{old} #{new}" }
335
334
  end
336
335
  end
337
336
 
data/lib/gizzmo.rb CHANGED
@@ -167,7 +167,7 @@ subcommands = {
167
167
  separators(opts, DOC_STRINGS["reload"])
168
168
  end,
169
169
  'addlink' => OptionParser.new do |opts|
170
- opts.banner = "Usage: #{zero} addlink PARENT_SHARD_ID WEIGHT"
170
+ opts.banner = "Usage: #{zero} addlink PARENT_SHARD_ID CHILD_SHARD_ID WEIGHT"
171
171
  separators(opts, DOC_STRINGS["addlink"])
172
172
  end,
173
173
  'unlink' => OptionParser.new do |opts|
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 4
9
- version: 0.7.4
8
+ - 5
9
+ version: 0.7.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kyle Maxwell
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-10-04 00:00:00 -07:00
17
+ date: 2010-10-05 00:00:00 -07:00
18
18
  default_executable: gizzmo
19
19
  dependencies: []
20
20