Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Replace use of String#to_a for Ruby 1.9 compatibility

Thanks to Slava Kravchenko (http://github.com/cordawyn) for this change
  • Loading branch information...
commit 58e7d74a253eaa8e519025be8c9a263f9690f512 1 parent 455a863
James Conroy-Finn authored February 08, 2010
1  README.textile
Source Rendered
@@ -63,5 +63,6 @@ h3. Patches, etc
63 63
 * <b>Thomas Aylott</b> - Git commit language folding
64 64
 * <b>Michael Sheets</b> - Usability improvements
65 65
 * <b>Henrik Nyh</b> - Git 1.6 commit message compatibility and spelling corrections
  66
+* <b>Slava Kravchenko</b> - Ruby 1.9 compatibility
66 67
 
67 68
 Please feel free to send a pull request if you've added any functionality to this bundle that you think the rest of the git-loving, TextMate-using world would appreciate!
10  Support/lib/git.rb
@@ -120,13 +120,13 @@ def paths(options = { :unique => true, :fallback => :project })
120 120
         end
121 121
         res
122 122
       elsif options[:fallback] == :project && ENV.has_key?('TM_PROJECT_DIRECTORY')
123  
-        ENV['TM_PROJECT_DIRECTORY'].to_a
  123
+        [ENV['TM_PROJECT_DIRECTORY']]
124 124
       elsif options[:fallback] == :current_file && ENV.has_key?('TM_FILEPATH')
125  
-        ENV['TM_FILEPATH'].to_a
  125
+        [ENV['TM_FILEPATH']]
126 126
       elsif ENV.has_key?('TM_DIRECTORY')
127  
-        ENV['TM_DIRECTORY'].to_a
  127
+        [ENV['TM_DIRECTORY']]
128 128
       elsif ENV.has_key?('TM_PROJECT_DIRECTORY')
129  
-        ENV['TM_PROJECT_DIRECTORY'].to_a
  129
+        [ENV['TM_PROJECT_DIRECTORY']]
130 130
       else
131 131
         raise "No selected files." # FIXME throw an object with more info
132 132
       end
@@ -416,4 +416,4 @@ def get_range_arg(options = {})
416 416
   end
417 417
 end
418 418
 
419  
-Git = SCM::Git
  419
+Git = SCM::Git

0 notes on commit 58e7d74

Please sign in to comment.
Something went wrong with that request. Please try again.