logworm_client 0.5.2 → 0.5.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/CHANGELOG +3 -0
- data/Rakefile +1 -1
- data/lib/logworm_utils/compute.rb +2 -2
- data/lib/logworm_utils/tail.rb +2 -2
- data/logworm_client.gemspec +2 -2
- metadata +3 -3
    
        data/CHANGELOG
    CHANGED
    
    
    
        data/Rakefile
    CHANGED
    
    
| @@ -8,11 +8,11 @@ class LogwormCompute | |
| 8 8 | 
             
                  @valuefield = @field ? "#{@function}(#{@field})" : @function
         | 
| 9 9 |  | 
| 10 10 | 
             
                  begin
         | 
| 11 | 
            -
                    @db    = Logworm::DB. | 
| 11 | 
            +
                    @db    = Logworm::DB.from_config_or_die
         | 
| 12 12 | 
             
                    spec   = {:aggregate_function => @function, :aggregate_argument => @field}.merge(@options)
         | 
| 13 13 | 
             
                    @query = Logworm::QueryBuilder.new(spec)
         | 
| 14 14 | 
             
                  rescue Exception => e
         | 
| 15 | 
            -
                    $stderr.puts " | 
| 15 | 
            +
                    $stderr.puts "There was an error: #{e}"
         | 
| 16 16 | 
             
                    exit(-1)
         | 
| 17 17 | 
             
                  end
         | 
| 18 18 |  | 
    
        data/lib/logworm_utils/tail.rb
    CHANGED
    
    | @@ -4,7 +4,7 @@ class LogwormTail | |
| 4 4 | 
             
                  @options = options
         | 
| 5 5 |  | 
| 6 6 | 
             
                  begin
         | 
| 7 | 
            -
                    @db    = Logworm::DB. | 
| 7 | 
            +
                    @db    = Logworm::DB.from_config_or_die
         | 
| 8 8 | 
             
                    @query = Logworm::QueryBuilder.new(@options.merge(:force_ts => true))
         | 
| 9 9 | 
             
                  rescue Exception => e
         | 
| 10 10 | 
             
                    $stderr.puts "Error: #{e}"
         | 
| @@ -14,7 +14,7 @@ class LogwormTail | |
| 14 14 |  | 
| 15 15 | 
             
                def self.list
         | 
| 16 16 | 
             
                  begin
         | 
| 17 | 
            -
                    @db | 
| 17 | 
            +
                    @db    = Logworm::DB.from_config_or_die
         | 
| 18 18 | 
             
                    @tables = @db.tables
         | 
| 19 19 | 
             
                    if @tables and @tables.size > 0
         | 
| 20 20 | 
             
                      puts "The following are the tables that you've created thus far:"
         | 
    
        data/logworm_client.gemspec
    CHANGED
    
    | @@ -2,11 +2,11 @@ | |
| 2 2 |  | 
| 3 3 | 
             
            Gem::Specification.new do |s|
         | 
| 4 4 | 
             
              s.name = %q{logworm_client}
         | 
| 5 | 
            -
              s.version = "0.5. | 
| 5 | 
            +
              s.version = "0.5.3"
         | 
| 6 6 |  | 
| 7 7 | 
             
              s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
         | 
| 8 8 | 
             
              s.authors = ["Pomelo, LLC"]
         | 
| 9 | 
            -
              s.date = %q{2010- | 
| 9 | 
            +
              s.date = %q{2010-04-01}
         | 
| 10 10 | 
             
              s.description = %q{logworm client utilities}
         | 
| 11 11 | 
             
              s.email = %q{schapira@pomelollc.com}
         | 
| 12 12 | 
             
              s.executables = ["lw-compute", "lw-heroku", "lw-tail"]
         | 
    
        metadata
    CHANGED
    
    | @@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version | |
| 5 5 | 
             
              segments: 
         | 
| 6 6 | 
             
              - 0
         | 
| 7 7 | 
             
              - 5
         | 
| 8 | 
            -
              -  | 
| 9 | 
            -
              version: 0.5. | 
| 8 | 
            +
              - 3
         | 
| 9 | 
            +
              version: 0.5.3
         | 
| 10 10 | 
             
            platform: ruby
         | 
| 11 11 | 
             
            authors: 
         | 
| 12 12 | 
             
            - Pomelo, LLC
         | 
| @@ -14,7 +14,7 @@ autorequire: | |
| 14 14 | 
             
            bindir: bin
         | 
| 15 15 | 
             
            cert_chain: []
         | 
| 16 16 |  | 
| 17 | 
            -
            date: 2010- | 
| 17 | 
            +
            date: 2010-04-01 00:00:00 -04:00
         | 
| 18 18 | 
             
            default_executable: 
         | 
| 19 19 | 
             
            dependencies: 
         | 
| 20 20 | 
             
            - !ruby/object:Gem::Dependency 
         |