logworm 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGELOG +25 -12
  2. data/Rakefile +1 -1
  3. data/lib/base/db.rb +6 -0
  4. data/logworm.gemspec +2 -2
  5. metadata +3 -3
data/CHANGELOG CHANGED
@@ -1,21 +1,34 @@
1
- v0.7.0 Changes to run as a Heroku add-on
2
- Configuration now stored as a URL
3
- Now requires Heroku gem
1
+ v0.7.1
2
+ Added DB.from_config_or_die, to throw exception if DB cannot be initialized
3
+
4
+ v0.7.0
5
+ Changes to run as a Heroku add-on
6
+ Configuration now stored as a URL
7
+ Now requires Heroku gem
4
8
 
5
- v0.6.1 fixed query builder
9
+ v0.6.1
10
+ fixed query builder
6
11
 
7
- v0.6.0 added query builder
12
+ v0.6.0
13
+ added query builder
8
14
 
9
- v0.5.1 removed memcache dependency, added memcache-client
15
+ v0.5.1
16
+ removed memcache dependency, added memcache-client
10
17
 
11
- v0.5.0 removed utils, moved them to separate gem
18
+ v0.5.0
19
+ removed utils, moved them to separate gem
12
20
 
13
- v0.4.1 added start and end options to lw-compute and lw-tail
21
+ v0.4.1
22
+ added start and end options to lw-compute and lw-tail
14
23
 
15
- v0.4.0 added lw-compute tool, to run aggregate queries
24
+ v0.4.0
25
+ added lw-compute tool, to run aggregate queries
16
26
 
17
- v0.3.0 added lw-heroku tool, to push configuration variables to heroku
27
+ v0.3.0
28
+ added lw-heroku tool, to push configuration variables to heroku
18
29
 
19
- v0.2.0 removed app/ libraries. Added tail as a utility, lw-tail as a command
30
+ v0.2.0
31
+ removed app/ libraries. Added tail as a utility, lw-tail as a command
20
32
 
21
- v0.1.0 initial version.
33
+ v0.1.0
34
+ initial version.
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'echoe'
2
- Echoe.new('logworm', '0.7.0') do |p|
2
+ Echoe.new('logworm', '0.7.1') do |p|
3
3
  p.description = "logworm logging tool"
4
4
  p.url = "http://www.logworm.com"
5
5
  p.author = "Pomelo, LLC"
data/lib/base/db.rb CHANGED
@@ -48,6 +48,12 @@ module Logworm
48
48
 
49
49
  nil
50
50
  end
51
+
52
+ def self.from_config_or_die
53
+ db = self.from_config
54
+ raise "The application is not properly configured. Either use 'heroku addon:add' to add logworm to your app, or save your project's credentials into the .logworm file" unless db
55
+ db
56
+ end
51
57
 
52
58
  def tables()
53
59
  res = db_call(:get, "#{@host}/")
data/logworm.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{logworm}
5
- s.version = "0.7.0"
5
+ s.version = "0.7.1"
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 logging tool}
11
11
  s.email = %q{schapira@pomelollc.com}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "README", "lib/base/config.rb", "lib/base/db.rb", "lib/base/query_builder.rb", "lib/logworm.rb"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 0
9
- version: 0.7.0
8
+ - 1
9
+ version: 0.7.1
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