master_slave_adapter_soundcloud 0.1.6 → 0.1.7
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 +1 -1
- data/lib/master_slave_adapter.rb +2 -1
- data/master_slave_adapter.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.7
|
data/lib/master_slave_adapter.rb
CHANGED
|
@@ -352,7 +352,8 @@ module ActiveRecord
|
|
|
352
352
|
end
|
|
353
353
|
|
|
354
354
|
def slave_consistent?(conn, clock)
|
|
355
|
-
|
|
355
|
+
get_last_seen_slave_clock(conn).try(:>=, clock) ||
|
|
356
|
+
slave_clock(conn).try(:>=, clock)
|
|
356
357
|
end
|
|
357
358
|
|
|
358
359
|
protected
|
|
@@ -4,7 +4,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = 'master_slave_adapter_soundcloud'
|
|
6
6
|
s.version = File.read('VERSION').to_s
|
|
7
|
-
s.date = '2011-08-
|
|
7
|
+
s.date = '2011-08-24'
|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
|
9
9
|
s.authors = [ 'Mauricio Linhares', 'Torsten Curdt', 'Kim Altintop', 'Omid Aladini', 'SoundCloud' ]
|
|
10
10
|
s.email = %q{kim@soundcloud.com tcurdt@soundcloud.com omid@soundcloud.com}
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: master_slave_adapter_soundcloud
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.1.
|
|
5
|
+
version: 0.1.7
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Mauricio Linhares
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2011-08-
|
|
17
|
+
date: 2011-08-24 00:00:00 +02:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|