lemondrop 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/lemondrop/plugin/service.rb +1 -1
- data/lib/lemondrop/version.rb +1 -1
- data/spec/lemondrop/plugin/service_spec.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5997d77f1b1d98604ffb647c26e4582da676a3a
|
4
|
+
data.tar.gz: fec5f195c1697ae8c52ab27f1e28b4c9fd67673b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff30f6f96a44b7606af7117d20891a2a8c2b2854b0029e2b43609842923cd45886894f415ca46f1f3ce3e33ef6a825b72f441f6b30c1f7340ecb379f604f2ab7
|
7
|
+
data.tar.gz: de9126f978dcf3fa5dbbed92c3e6d5ae45d7bd15d92dd0c32341a74b577ac021dc2a08f7cbda83e046050dafe566a1dd6c2a24866577971a05620da1114b9da6
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
# [0.1.1](https://github.com/bklang/lemondrop/compare/v0.1.0...v0.1.1) - [2013-12-11](https://rubygems.org/gems/lemondrop/versions/0.1.1)
|
2
|
+
* Fix Redis accessors on Lemondrop constant
|
3
|
+
|
1
4
|
# [0.1.0](https://github.com/bklang/lemondrop/compare/v0.0.1...v0.1.0) - [2013-11-30](https://rubygems.org/gems/lemondrop/versions/0.1.0)
|
2
5
|
* Allow accessing Redis keys on the Lemondrop constant directly
|
3
6
|
* Logging & comment tweaks by Justin Aiken
|
@@ -32,8 +32,8 @@ class Lemondrop::Plugin::Service
|
|
32
32
|
#
|
33
33
|
# @param params [Hash] Options to establish the Redis connection
|
34
34
|
def establish_connection(params)
|
35
|
-
::Redis.new params
|
36
35
|
logger.info "Lemondrop connected to Redis at #{params[:host]}:#{params[:port]}"
|
36
|
+
::Redis.new params
|
37
37
|
end
|
38
38
|
end # class << self
|
39
39
|
end # Service
|
data/lib/lemondrop/version.rb
CHANGED
@@ -27,6 +27,13 @@ describe Lemondrop::Plugin::Service do
|
|
27
27
|
subject.should_receive(:establish_connection).once.with(expected_params)
|
28
28
|
subject.start config
|
29
29
|
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe '#establish_connection' do
|
33
|
+
let(:params) { {} }
|
30
34
|
|
35
|
+
it "returns a Redis instance" do
|
36
|
+
subject.establish_connection(params).should be_a Redis
|
37
|
+
end
|
31
38
|
end
|
32
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lemondrop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Klang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11
|
11
|
+
date: 2013-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: adhearsion
|