logworm_client 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ v0.5.3
2
+ Show nicer error message with tail and compute if the app is not properly configured.
3
+
1
4
  v0.5.2
2
5
  Fixes minor issues with in Rails logging
3
6
 
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'echoe'
2
- Echoe.new('logworm_client', '0.5.2') do |p|
2
+ Echoe.new('logworm_client', '0.5.3') do |p|
3
3
  p.description = "logworm client utilities"
4
4
  p.url = "http://www.logworm.com"
5
5
  p.author = "Pomelo, LLC"
@@ -8,11 +8,11 @@ class LogwormCompute
8
8
  @valuefield = @field ? "#{@function}(#{@field})" : @function
9
9
 
10
10
  begin
11
- @db = Logworm::DB.from_config
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 "Error: #{e}"
15
+ $stderr.puts "There was an error: #{e}"
16
16
  exit(-1)
17
17
  end
18
18
 
@@ -4,7 +4,7 @@ class LogwormTail
4
4
  @options = options
5
5
 
6
6
  begin
7
- @db = Logworm::DB.from_config
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 = Logworm::DB.from_config
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:"
@@ -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.2"
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-03-31}
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
- - 2
9
- version: 0.5.2
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-03-31 00:00:00 -04:00
17
+ date: 2010-04-01 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency