ar-octopus 0.3.2 → 0.3.3
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/README.mkdn +1 -2
- data/Rakefile +1 -1
- data/ar-octopus.gemspec +2 -2
- data/lib/octopus/rails3/persistence.rb +3 -3
- data/spec/octopus/model_spec.rb +7 -0
- metadata +4 -4
data/README.mkdn
CHANGED
@@ -153,8 +153,7 @@ To run our integrations tests inside sample_app, you need to following commands:
|
|
153
153
|
If you are having issues running the octopus spec suite, verify your database users and passwords match those inside the config files and your permissions are correct.
|
154
154
|
|
155
155
|
## Contributors:
|
156
|
-
- <a href="
|
157
|
-
- <a href="http://github.com/bjones">Brian Jones</a>
|
156
|
+
- <a href="https://github.com/tchandy/octopus/contributors">All Contributors</a>
|
158
157
|
|
159
158
|
## Thanks
|
160
159
|
|
data/Rakefile
CHANGED
@@ -37,7 +37,7 @@ begin
|
|
37
37
|
gem.add_development_dependency "jeweler", ">= 1.4"
|
38
38
|
gem.add_development_dependency "actionpack", ">= 2.3"
|
39
39
|
gem.add_dependency('activerecord', '>= 2.3')
|
40
|
-
gem.version = "0.3.
|
40
|
+
gem.version = "0.3.3"
|
41
41
|
end
|
42
42
|
Jeweler::GemcutterTasks.new
|
43
43
|
rescue LoadError
|
data/ar-octopus.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ar-octopus}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Thiago Pradi", "Mike Perham"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-01-09}
|
13
13
|
s.description = %q{This gem allows you to use sharded databases with ActiveRecord. this also provides a interface for replication and for running migrations with multiples shards.}
|
14
14
|
s.email = %q{tchandy@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -16,9 +16,9 @@ module Octopus
|
|
16
16
|
super
|
17
17
|
end
|
18
18
|
|
19
|
-
def reload
|
19
|
+
def reload(options = nil)
|
20
20
|
reload_connection()
|
21
|
-
super
|
21
|
+
super(options)
|
22
22
|
end
|
23
23
|
|
24
24
|
def delete
|
@@ -34,4 +34,4 @@ module Octopus
|
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
|
-
ActiveRecord::Base.send(:include, Octopus::Rails3::Persistence)
|
37
|
+
ActiveRecord::Base.send(:include, Octopus::Rails3::Persistence)
|
data/spec/octopus/model_spec.rb
CHANGED
@@ -136,6 +136,13 @@ describe Octopus::Model do
|
|
136
136
|
u.reload
|
137
137
|
u.name.should == "Alone"
|
138
138
|
end
|
139
|
+
|
140
|
+
it "should work passing some arguments to reload method" do
|
141
|
+
User.using(:alone_shard).create!(:name => "Alone")
|
142
|
+
u = User.using(:alone_shard).find_by_name("Alone")
|
143
|
+
u.reload(:lock => true)
|
144
|
+
u.name.should == "Alone"
|
145
|
+
end
|
139
146
|
end
|
140
147
|
|
141
148
|
describe "passing a block" do
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ar-octopus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 3
|
10
|
+
version: 0.3.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Thiago Pradi
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date:
|
19
|
+
date: 2011-01-09 00:00:00 -02:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|