boom 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.markdown +3 -0
- data/boom.gemspec +1 -1
- data/lib/boom/storage/redis.rb +8 -2
- data/lib/boom.rb +1 -1
- metadata +3 -3
data/CHANGELOG.markdown
CHANGED
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.
|
16
|
+
s.version = '0.1.1'
|
17
17
|
s.date = '2011-02-28'
|
18
18
|
s.rubyforge_project = 'boom'
|
19
19
|
|
data/lib/boom/storage/redis.rb
CHANGED
@@ -2,8 +2,11 @@
|
|
2
2
|
#
|
3
3
|
# Sup, Redis.
|
4
4
|
#
|
5
|
-
|
6
|
-
require '
|
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
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:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Zach Holman
|