mordor 0.2.17 → 0.2.18
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/lib/mordor/resource.rb +1 -1
- data/mordor.gemspec +2 -2
- data/spec/mordor/connection_spec.rb +1 -1
- metadata +3 -4
- data/Gemfile.lock +0 -41
data/.gitignore
CHANGED
data/lib/mordor/resource.rb
CHANGED
@@ -158,7 +158,7 @@ module Mordor
|
|
158
158
|
def database
|
159
159
|
unless @db
|
160
160
|
if (hosts = Mordor::Config[:hostname].split(",").map{|h| h.strip}).size > 1
|
161
|
-
options = {:refresh_mode =>
|
161
|
+
options = {:refresh_mode => :sync}
|
162
162
|
options[:rs_name] = Mordor::Config[:replica_set] if Mordor::Config[:replica_set]
|
163
163
|
connection = Mongo::MongoReplicaSetClient.new(hosts, options)
|
164
164
|
else
|
data/mordor.gemspec
CHANGED
@@ -2,7 +2,7 @@ Gem::Specification.new do |s|
|
|
2
2
|
s.name = "mordor"
|
3
3
|
|
4
4
|
# Do not set the version and date field manually, this is done by the release script
|
5
|
-
s.version = "0.2.
|
5
|
+
s.version = "0.2.18"
|
6
6
|
s.date = "2013-01-22"
|
7
7
|
|
8
8
|
s.summary = "mordor"
|
@@ -27,6 +27,6 @@ Gem::Specification.new do |s|
|
|
27
27
|
|
28
28
|
# The files and test_files directives are set automatically by the release script.
|
29
29
|
# Do not change them by hand, but make sure to add the files to the git repository.
|
30
|
-
s.files = %w(.gitignore .travis.yml Gemfile
|
30
|
+
s.files = %w(.gitignore .travis.yml Gemfile LICENSE README.md Rakefile lib/mordor.rb lib/mordor/collection.rb lib/mordor/config.rb lib/mordor/resource.rb lib/mordor/version.rb mordor.gemspec spec/mordor/collection_spec.rb spec/mordor/connection_spec.rb spec/mordor/resource_spec.rb spec/spec.opts spec/spec_helper.rb tasks/github-gem.rake)
|
31
31
|
end
|
32
32
|
|
@@ -86,7 +86,7 @@ describe "connecting to mongo" do
|
|
86
86
|
config[:replica_set] = replica_set
|
87
87
|
end
|
88
88
|
|
89
|
-
options = {:rs_name => replica_set, :refresh_mode =>
|
89
|
+
options = {:rs_name => replica_set, :refresh_mode => :sync}
|
90
90
|
|
91
91
|
Mongo::MongoReplicaSetClient.should_receive(:new).with(anything, options).and_return(@mock_connection)
|
92
92
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mordor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 51
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 18
|
10
|
+
version: 0.2.18
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jan-Willem Koelewijn
|
@@ -146,7 +146,6 @@ files:
|
|
146
146
|
- .gitignore
|
147
147
|
- .travis.yml
|
148
148
|
- Gemfile
|
149
|
-
- Gemfile.lock
|
150
149
|
- LICENSE
|
151
150
|
- README.md
|
152
151
|
- Rakefile
|
data/Gemfile.lock
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
activesupport (3.2.9)
|
5
|
-
i18n (~> 0.6)
|
6
|
-
multi_json (~> 1.0)
|
7
|
-
bson (1.8.0)
|
8
|
-
activesupport
|
9
|
-
bson_ext (1.8.0)
|
10
|
-
bson (~> 1.8.0)
|
11
|
-
diff-lcs (1.1.3)
|
12
|
-
extlib (0.9.15)
|
13
|
-
i18n (0.6.1)
|
14
|
-
json (1.7.5)
|
15
|
-
mongo (1.8.0)
|
16
|
-
bson (~> 1.8.0)
|
17
|
-
multi_json (1.5.0)
|
18
|
-
rack (1.4.1)
|
19
|
-
rack-test (0.6.2)
|
20
|
-
rack (>= 1.0)
|
21
|
-
rake (10.0.3)
|
22
|
-
rspec (2.12.0)
|
23
|
-
rspec-core (~> 2.12.0)
|
24
|
-
rspec-expectations (~> 2.12.0)
|
25
|
-
rspec-mocks (~> 2.12.0)
|
26
|
-
rspec-core (2.12.2)
|
27
|
-
rspec-expectations (2.12.1)
|
28
|
-
diff-lcs (~> 1.1.3)
|
29
|
-
rspec-mocks (2.12.0)
|
30
|
-
|
31
|
-
PLATFORMS
|
32
|
-
ruby
|
33
|
-
|
34
|
-
DEPENDENCIES
|
35
|
-
bson_ext
|
36
|
-
extlib
|
37
|
-
json
|
38
|
-
mongo
|
39
|
-
rack-test
|
40
|
-
rake
|
41
|
-
rspec (~> 2.0)
|