mysql_health 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -145,9 +145,13 @@ module MysqlHealth
145
145
 
146
146
  show_slave_status = []
147
147
  status = {}
148
- dbh.select_all('SHOW SLAVE STATUS') do |row|
149
- status[row[0].downcase.to_sym] = row[1]
150
- show_slave_status << "#{row[0]}: #{row[1]}"
148
+ dbh.execute('SHOW SLAVE STATUS') do |sth|
149
+ sth.fetch_hash() do |row|
150
+ row.each_pair do |k,v|
151
+ status[k.downcase.to_sym] = v
152
+ show_slave_status << "#{k}: #{v}"
153
+ end
154
+ end
151
155
  end
152
156
 
153
157
  if status.length > 0
@@ -18,5 +18,5 @@
18
18
  # along with mysql_health. If not, see <http://www.gnu.org/licenses/>.
19
19
  #
20
20
  module MysqlHealth
21
- VERSION = "0.5.2"
21
+ VERSION = "0.5.3"
22
22
  end
@@ -1,7 +1,7 @@
1
1
  %define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
2
2
  %define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
3
3
  %define gemname mysql_health
4
- %define gemversion 0.5.2
4
+ %define gemversion 0.5.3
5
5
  %define geminstdir %{gemdir}/gems/%{gemname}-%{gemversion}
6
6
  %define gemfile %{gemname}-%{gemversion}.gem
7
7
  %define gemsummary %(ruby -rrubygems -e 'puts YAML.load(`gem specification %{gemfile}`).summary')
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 2
9
- version: 0.5.2
8
+ - 3
9
+ version: 0.5.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Erik Osterman