boom 0.1.0 → 0.1.1

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.markdown CHANGED
@@ -1,5 +1,8 @@
1
1
  # boom changes
2
2
 
3
+ ## 0.1.11
4
+ - Don't force Redis on everyone.
5
+
3
6
  ## 0.1.0
4
7
  - boom has been rewritten to use multiple backends. Use `boom switch <backend>`
5
8
  to switch from the default JSON backend. Currently only Redis is supported.
data/boom.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'boom'
16
- s.version = '0.1.0'
16
+ s.version = '0.1.1'
17
17
  s.date = '2011-02-28'
18
18
  s.rubyforge_project = 'boom'
19
19
 
@@ -2,8 +2,11 @@
2
2
  #
3
3
  # Sup, Redis.
4
4
  #
5
- require 'digest'
6
- require 'redis'
5
+ begin
6
+ require 'digest'
7
+ require 'redis'
8
+ rescue LoadError
9
+ end
7
10
 
8
11
  module Boom
9
12
  module Storage
@@ -12,6 +15,9 @@ module Boom
12
15
  def redis
13
16
  @redis ||= ::Redis.new :host => Boom.config.attributes["redis"]["host"],
14
17
  :port => Boom.config.attributes["redis"]["port"]
18
+ rescue NameError => e
19
+ puts "You don't have Redis installed yet:\n gem install redis"
20
+ exit
15
21
  end
16
22
 
17
23
  def bootstrap
data/lib/boom.rb CHANGED
@@ -25,7 +25,7 @@ require 'boom/storage/mongodb'
25
25
  require 'boom/core_ext/symbol'
26
26
 
27
27
  module Boom
28
- VERSION = '0.1.0'
28
+ VERSION = '0.1.1'
29
29
 
30
30
  extend self
31
31
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boom
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Zach Holman