gizzmo 0.8.2 → 0.8.3
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 +1 -1
 - data/gizzmo.gemspec +2 -2
 - data/lib/gizzard/commands.rb +10 -3
 - data/lib/gizzmo.rb +4 -1
 - metadata +3 -3
 
    
        data/VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            0.8. 
     | 
| 
      
 1 
     | 
    
         
            +
            0.8.3
         
     | 
    
        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.8. 
     | 
| 
      
 8 
     | 
    
         
            +
              s.version = "0.8.3"
         
     | 
| 
       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- 
     | 
| 
      
 12 
     | 
    
         
            +
              s.date = %q{2010-10-21}
         
     | 
| 
       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}
         
     | 
    
        data/lib/gizzard/commands.rb
    CHANGED
    
    | 
         @@ -391,13 +391,20 @@ module Gizzard 
     | 
|
| 
       391 
391 
     | 
    
         | 
| 
       392 
392 
     | 
    
         
             
              class ReportCommand < ShardCommand
         
     | 
| 
       393 
393 
     | 
    
         
             
                def run
         
     | 
| 
      
 394 
     | 
    
         
            +
                  
         
     | 
| 
       394 
395 
     | 
    
         
             
                  things = @argv.map do |shard|
         
     | 
| 
       395 
396 
     | 
    
         
             
                    parse(down(ShardId.parse(shard))).join("\n")
         
     | 
| 
       396 
397 
     | 
    
         
             
                  end
         
     | 
| 
       397 
398 
     | 
    
         | 
| 
       398 
     | 
    
         
            -
                   
     | 
| 
       399 
     | 
    
         
            -
                     
     | 
| 
       400 
     | 
    
         
            -
             
     | 
| 
      
 399 
     | 
    
         
            +
                  if command_options.flat
         
     | 
| 
      
 400 
     | 
    
         
            +
                    things.zip(@argv).each do |thing, shard_id|
         
     | 
| 
      
 401 
     | 
    
         
            +
                      puts "#{sign(thing)}\t#{shard_id}"
         
     | 
| 
      
 402 
     | 
    
         
            +
                    end
         
     | 
| 
      
 403 
     | 
    
         
            +
                  else
         
     | 
| 
      
 404 
     | 
    
         
            +
                    group(things).each do |string, things|
         
     | 
| 
      
 405 
     | 
    
         
            +
                      puts "=== " + sign(string) + ": #{things.length}" + " ====================" 
         
     | 
| 
      
 406 
     | 
    
         
            +
                      puts string
         
     | 
| 
      
 407 
     | 
    
         
            +
                    end
         
     | 
| 
       401 
408 
     | 
    
         
             
                  end
         
     | 
| 
       402 
409 
     | 
    
         
             
                end
         
     | 
| 
       403 
410 
     | 
    
         | 
    
        data/lib/gizzmo.rb
    CHANGED
    
    | 
         @@ -176,8 +176,11 @@ subcommands = { 
     | 
|
| 
       176 
176 
     | 
    
         
             
              end,
         
     | 
| 
       177 
177 
     | 
    
         | 
| 
       178 
178 
     | 
    
         
             
              'report' => OptionParser.new do |opts|
         
     | 
| 
       179 
     | 
    
         
            -
                opts.banner = "Usage: #{zero} report"
         
     | 
| 
      
 179 
     | 
    
         
            +
                opts.banner = "Usage: #{zero} report [options]"
         
     | 
| 
       180 
180 
     | 
    
         
             
                separators(opts, DOC_STRINGS["report"])
         
     | 
| 
      
 181 
     | 
    
         
            +
                opts.on("--flat", "Show flat report") do
         
     | 
| 
      
 182 
     | 
    
         
            +
                  subcommand_options.flat = true
         
     | 
| 
      
 183 
     | 
    
         
            +
                end
         
     | 
| 
       181 
184 
     | 
    
         
             
              end,
         
     | 
| 
       182 
185 
     | 
    
         | 
| 
       183 
186 
     | 
    
         
             
              'lookup' => OptionParser.new do |opts|
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version 
     | 
|
| 
       5 
5 
     | 
    
         
             
              segments: 
         
     | 
| 
       6 
6 
     | 
    
         
             
              - 0
         
     | 
| 
       7 
7 
     | 
    
         
             
              - 8
         
     | 
| 
       8 
     | 
    
         
            -
              -  
     | 
| 
       9 
     | 
    
         
            -
              version: 0.8. 
     | 
| 
      
 8 
     | 
    
         
            +
              - 3
         
     | 
| 
      
 9 
     | 
    
         
            +
              version: 0.8.3
         
     | 
| 
       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- 
     | 
| 
      
 17 
     | 
    
         
            +
            date: 2010-10-21 00:00:00 -07:00
         
     | 
| 
       18 
18 
     | 
    
         
             
            default_executable: gizzmo
         
     | 
| 
       19 
19 
     | 
    
         
             
            dependencies: []
         
     | 
| 
       20 
20 
     | 
    
         |