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: 9c9bf0f6f45f7f283a9cf8bf9aad6975e3b0ab44
4
- data.tar.gz: 64b6b1689a56bd7a6f61e6c93f59b3469424ed1f
3
+ metadata.gz: c5c99af05e50eb7ce1fdc4fc46ac0ae85791584a
4
+ data.tar.gz: 8377670a0580fa671948ae5683771178f99a60ef
5
5
  SHA512:
6
- metadata.gz: fb89596f1426c5b9ded9b6fa0b90f0e456bbbcc20d383a8ee1e5d3312525aa6d5446f49521c8e73f8e47a6d97da1ee390f7f198e1d1d854ffad6e9e0bf81671b
7
- data.tar.gz: 01c204105261a78f5a268e5c5d9c0fb138a729309abe7dfd30c3eef23c97f5ae0d04b46c8e2c06ffd849540c36d59c2b8cb73b4c551da1ab65722a6f291ad3d4
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(responder_factory=ResponsiveService::Responder)
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)
@@ -1,3 +1,3 @@
1
1
  module ResponsiveService
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -2,7 +2,8 @@ require 'spec_helper'
2
2
 
3
3
  module ResponsiveService
4
4
  describe ResponsiveService do
5
- subject(:service) { ResponsiveService.new(responder_factory) }
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.2
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-28 00:00:00.000000000 Z
11
+ date: 2014-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler