mongolly 0.2.8 → 0.2.9
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.
- checksums.yaml +4 -4
- data/bin/mongolly +1 -1
- data/lib/mongolly/shepherd.rb +1 -1
- data/lib/mongolly/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 697b8dc29e9aa15f0d51614ffd5627bcf67c6bf9
|
|
4
|
+
data.tar.gz: 82095fdcee43fcd4bad769b70b79cacecd2b1210
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8b6c010ff0096ce2febec13f8c850507ef7628852cd96a7356660cf0c6e06457f51c644f3ea5394d66cea0a8b6e3129dbc41f6c6de0d0aaa0ea7c218545d126b
|
|
7
|
+
data.tar.gz: 43ef7d581b4a28513a17a77893ac0f0ecc432c3499231c7c170ef4a08e0258967969696a9ea39219cbf46b2dca2145cdbfa1e78c224527e2a7ef90dffa59c98e
|
data/bin/mongolly
CHANGED
|
@@ -70,7 +70,7 @@ module Mongolly
|
|
|
70
70
|
end
|
|
71
71
|
|
|
72
72
|
def valid_config?
|
|
73
|
-
%w(database
|
|
73
|
+
%w(database access_key_id secret_access_key).each do |arg|
|
|
74
74
|
raise ArgumentError.new("#{arg} cannot be empty") if @config[arg.to_sym].to_s.strip.empty?
|
|
75
75
|
end
|
|
76
76
|
return true
|
data/lib/mongolly/shepherd.rb
CHANGED
|
@@ -54,7 +54,7 @@ module Mongolly
|
|
|
54
54
|
@logger.debug "connecting to a single instance #{@database}"
|
|
55
55
|
Mongo::MongoClient.new(*@database.split(':'))
|
|
56
56
|
end
|
|
57
|
-
db['admin'].authenticate(@db_username, @db_password)
|
|
57
|
+
db['admin'].authenticate(@db_username, @db_password) if @db_username && @db_password
|
|
58
58
|
return db
|
|
59
59
|
end
|
|
60
60
|
end
|
data/lib/mongolly/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mongolly
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Saffitz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-08-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|