responsive_service 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5c99af05e50eb7ce1fdc4fc46ac0ae85791584a
|
4
|
+
data.tar.gz: 8377670a0580fa671948ae5683771178f99a60ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f755a9ddbc13d16b9d08d566c926dae033a3c3352093ee876131b6fb4845ab956e22ee5bbc1c7331ce6363528978aef9c37139e474663f94d02cbb37fd99355b
|
7
|
+
data.tar.gz: fce27956087d7c51d1a326a5d501c28931ede073ebd077f2c6756ae13d2147c818a02696da1a4bb0f552a6b36955a0fecd5ea2f09722408f620efa58b1b34981
|
@@ -2,8 +2,8 @@ module ResponsiveService
|
|
2
2
|
class ResponsiveService
|
3
3
|
attr_reader :responder_factory
|
4
4
|
|
5
|
-
def initialize(
|
6
|
-
@responder_factory = responder_factory
|
5
|
+
def initialize(dependencies={})
|
6
|
+
@responder_factory = dependencies.fetch(:responder_factory, Responder)
|
7
7
|
end
|
8
8
|
|
9
9
|
def call(&block)
|
@@ -2,7 +2,8 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
module ResponsiveService
|
4
4
|
describe ResponsiveService do
|
5
|
-
subject(:service) { ResponsiveService.new(
|
5
|
+
subject(:service) { ResponsiveService.new(dependencies) }
|
6
|
+
let(:dependencies) { { responder_factory: responder_factory } }
|
6
7
|
let(:responder_factory) { double :responder_factory, new: nil }
|
7
8
|
let(:responder) { double :responder }
|
8
9
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: responsive_service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alexpeachey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01
|
11
|
+
date: 2014-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|