flockdb 0.4.1 → 0.4.2

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{flockdb}
8
- s.version = "0.4.1"
8
+ s.version = "0.4.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matt Freels", "Rael Dornfest", "Nick Kallen"]
12
- s.date = %q{2010-10-22}
12
+ s.date = %q{2011-02-28}
13
13
  s.description = %q{Get your flock on in Ruby.}
14
14
  s.email = %q{freels@twitter.com}
15
15
  s.extra_rdoc_files = [
@@ -1,6 +1,5 @@
1
1
  module Flock
2
- module MockService
3
- extend self
2
+ class MockService
4
3
 
5
4
  EXEC_OPS = {
6
5
  Edges::ExecuteOperationType::Add => :add,
@@ -7,13 +7,15 @@ $: << File.expand_path("#{spec_dir}/../lib")
7
7
  require 'flock'
8
8
  require 'flock/mock_service'
9
9
 
10
+ $mock_service = Flock::MockService.new
11
+
10
12
  Spec::Runner.configure do |config|
11
13
  config.mock_with :rr
12
14
  config.before do
13
- Flock::MockService.clear
15
+ $mock_service.clear
14
16
  end
15
17
  end
16
18
 
17
19
  def new_flock_client
18
- Flock.new(Flock::MockService)
20
+ Flock.new($mock_service)
19
21
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flockdb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 1
10
- version: 0.4.1
9
+ - 2
10
+ version: 0.4.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Freels
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-10-22 00:00:00 -07:00
20
+ date: 2011-02-28 00:00:00 -08:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency