flydata 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.11
1
+ 0.1.12
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "flydata"
8
- s.version = "0.1.11"
8
+ s.version = "0.1.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Koichi Fujikawa"]
12
- s.date = "2014-07-29"
12
+ s.date = "2014-07-30"
13
13
  s.description = "FlyData Command Line Interface"
14
14
  s.email = "sysadmin@flydata.co"
15
15
  s.executables = ["fdmysqldump", "flydata"]
@@ -1321,13 +1321,13 @@ EOS
1321
1321
  result = client.query(grants_sql)
1322
1322
  # Do not catch MySQL connection problem because check should stop if no MySQL connection can be made.
1323
1323
  client.close
1324
- missing_priv = necessary_permission_fields
1324
+ missing_priv = []
1325
1325
  result.each do |res|
1326
1326
  # SHOW GRANTS should only return one column
1327
1327
  res_value = res.values.first
1328
1328
  if correct_db.all? {|perm| res_value.match(perm)}
1329
1329
  necessary_permission_fields.each do |priv|
1330
- missing_priv.delete_at(missing_priv.index(priv)) unless res_value.match(priv)
1330
+ missing_priv << priv unless res_value.match(priv)
1331
1331
  end
1332
1332
  return true if missing_priv.empty? or all_privileges_field.all? {|d| res_value.match(d)}
1333
1333
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flydata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-29 00:00:00.000000000 Z
12
+ date: 2014-07-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
@@ -440,7 +440,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
440
440
  version: '0'
441
441
  segments:
442
442
  - 0
443
- hash: 3792115831805539610
443
+ hash: -3606213667158968775
444
444
  required_rubygems_version: !ruby/object:Gem::Requirement
445
445
  none: false
446
446
  requirements: