Skip to content

Commit

Permalink
Fix deprecation warning about Config; use RbConfig when available
Browse files Browse the repository at this point in the history
  • Loading branch information
ttencate committed Jul 10, 2012
1 parent aeeb731 commit 71495b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ticgit-ng.rb
Expand Up @@ -16,7 +16,7 @@
require 'git'

#Only redefine if we are not using 1.9
unless Config::CONFIG["ruby_version"][/^\d\.9/]
unless Object.const_get(defined?(RbConfig) ? :RbConfig : :Config)::CONFIG["ruby_version"][/^\d\.9/]
# FIXME: Monkeypatch git until fixed upstream
module Git
class Lib
Expand Down

0 comments on commit 71495b6

Please sign in to comment.