[rubyripper] push by boukewou...@gmail.com - Fix a problem with ruby 2.0. on 2013-04-09 20:50 GMT

2 views
Skip to first unread message

rubyr...@googlecode.com

unread,
Apr 9, 2013, 4:50:49 PM4/9/13
to rubyrippe...@googlegroups.com
Revision: 85e32c7da46a
Author: Bouke Woudstra <boukew...@gmail.com>
Date: Tue Apr 9 13:57:24 2013
Log: Fix a problem with ruby 2.0.

http://code.google.com/p/rubyripper/source/detail?r=85e32c7da46a

Modified:
/lib/rubyripper/gtk2/gtkPreferences.rb

=======================================
--- /lib/rubyripper/gtk2/gtkPreferences.rb Thu Jan 24 12:06:30 2013
+++ /lib/rubyripper/gtk2/gtkPreferences.rb Tue Apr 9 13:57:24 2013
@@ -27,11 +27,11 @@
DEFAULT_COLUMN_SPACINGS = 5
DEFAULT_ROW_SPACINGS = 4
DEFAULT_BORDER_WIDTH = 7
- CODEC_LABELS = {'flac' => 'FLAC', 'wavpack' => 'WavPack', 'other' =>
_('Other')}

def initialize(prefs=nil, deps=nil)
@prefs = prefs ? prefs : Preferences::Main.instance
@deps = deps ? deps : Dependency.instance
+ @codec_labels = {'flac' => 'FLAC', 'wavpack' => 'WavPack', 'other' =>
_('Other')}
end

def start
@@ -483,11 +483,11 @@
end

def getLabelForCodec(codec)
- CODEC_LABELS.key?(codec) ? CODEC_LABELS[codec] : codec.capitalize
+ @codec_labels.key?(codec) ? @codec_labels[codec] : codec.capitalize
end

def getCodecForLabel(label)
- CODEC_LABELS.value?(label) ? CODEC_LABELS.key(label) : label.downcase
+ @codec_labels.value?(label) ? @codec_labels.key(label) : label.downcase
end

def updateCodecsView
Reply all
Reply to author
Forward
0 new messages