Skip to content

Commit

Permalink
Partial fix for issue #26: Remove Ruby18 dependency where possible.
Browse files Browse the repository at this point in the history
Most of the bundle is compatible with greater ruby versions, except the 'Open
Package' command. That will be addressed in another commit.
  • Loading branch information
syscrusher committed Apr 10, 2016
1 parent ea01788 commit dd5f608
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Commands/Build.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>beforeRunningCommand</key>
<string>saveModifiedFiles</string>
<key>command</key>
<string>#!/usr/bin/env ruby18
<string>#!/usr/bin/env ruby
require "#{ENV['TM_BUNDLE_SUPPORT']}/gomate"
Go::go "build", :verb =&gt; "Building"</string>
Expand Down
2 changes: 1 addition & 1 deletion Commands/Complete.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>#!/usr/bin/env ruby18
<string>#!/usr/bin/env ruby
require "open3"
Expand Down
2 changes: 1 addition & 1 deletion Commands/Documentation for Word : Selection.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>saveModifiedFiles</string>
<key>command</key>
<string>#!/usr/bin/env ruby18
<string>#!/usr/bin/env ruby
require "#{ENV['TM_BUNDLE_SUPPORT']}/gomate"
Go::godoc
Expand Down
2 changes: 1 addition & 1 deletion Commands/Imports.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>saveModifiedFiles</string>
<key>command</key>
<string>#!/usr/bin/env ruby18
<string>#!/usr/bin/env ruby
require "#{ENV['TM_BUNDLE_SUPPORT']}/gomate"
Go::goimports
Expand Down
2 changes: 1 addition & 1 deletion Commands/Install.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>beforeRunningCommand</key>
<string>saveModifiedFiles</string>
<key>command</key>
<string>#!/usr/bin/env ruby18
<string>#!/usr/bin/env ruby
require "#{ENV['TM_BUNDLE_SUPPORT']}/gomate"
Go::go "install", :verb =&gt; "Installing"</string>
Expand Down
2 changes: 1 addition & 1 deletion Commands/Lint.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>saveActiveFile</string>
<key>command</key>
<string>#!/usr/bin/env ruby18
<string>#!/usr/bin/env ruby
require "#{ENV['TM_BUNDLE_SUPPORT']}/gomate"
Go::golint
Expand Down
4 changes: 2 additions & 2 deletions Commands/Open Package.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def go_path
lcal, root = [], []
env.scan(/^GO(PATH|ROOT)=&quot;(.*)&quot;/) do |key,value|
case key
when &apos;PATH&apos;: lcal = value.split(&apos;:&apos;).map { |dir| &quot;#{dir}/src&quot; }
when &apos;ROOT&apos;: root = value.split(&apos;:&apos;).map { |dir| &quot;#{dir}/src/pkg&quot; }
when &apos;PATH&apos;; lcal = value.split(&apos;:&apos;).map { |dir| &quot;#{dir}/src&quot; }
when &apos;ROOT&apos;; root = value.split(&apos;:&apos;).map { |dir| &quot;#{dir}/src/pkg&quot; }
end
end
[ lcal, root ].flatten
Expand Down
2 changes: 1 addition & 1 deletion Commands/Run.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>beforeRunningCommand</key>
<string>saveModifiedFiles</string>
<key>command</key>
<string>#!/usr/bin/env ruby18
<string>#!/usr/bin/env ruby
require "#{ENV['TM_BUNDLE_SUPPORT']}/gomate"
Go::go "run", :verb =&gt; "Running"
Expand Down
2 changes: 1 addition & 1 deletion Commands/Test.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>beforeRunningCommand</key>
<string>saveModifiedFiles</string>
<key>command</key>
<string>#!/usr/bin/env ruby18
<string>#!/usr/bin/env ruby
require "#{ENV['TM_BUNDLE_SUPPORT']}/gomate"
Go::go "test", :verb =&gt; "Testing"
Expand Down
2 changes: 1 addition & 1 deletion Support/gomate.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby18
#!/usr/bin/env ruby

require "#{ENV['TM_SUPPORT_PATH']}/lib/escape"
require "#{ENV['TM_SUPPORT_PATH']}/lib/exit_codes"
Expand Down

0 comments on commit dd5f608

Please sign in to comment.