Skip to content

Commit

Permalink
Use version 1.8 of ruby for bundle items
Browse files Browse the repository at this point in the history
10.7 and 10.8 only include ruby 1.8, so all bundle items have been written to work with that. Optionally supporting ruby 1.9 and 2.0 is problematic as these versions are not fully backwards compatible.

#ignore
  • Loading branch information
infininight committed Jul 27, 2013
1 parent b3228da commit 8091f39
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Commands/Documentation for Word.tmCommand
Expand Up @@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>#!/usr/bin/env ruby
<string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
url = "http://apidock.com/rails/search/quick?query=" + ENV['TM_CURRENT_WORD']
puts "&lt;meta http-equiv='Refresh' content='0;URL=#{url}'&gt;"
</string>
Expand Down
2 changes: 1 addition & 1 deletion DragCommands/Require Rails File.tmDragCommand
Expand Up @@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>#!/usr/bin/env ruby
<string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

file_path = ENV['TM_DROPPED_FILE'].gsub(/\.rb$/, '')
full_file_path = File.expand_path(file_path)
Expand Down
2 changes: 1 addition & 1 deletion Support/bin/create_partial_from_selection.rb
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
# encoding: utf-8

# Copyright:
Expand Down
2 changes: 1 addition & 1 deletion Support/bin/fixture_auto_complete.rb
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

require 'rails_bundle_tools'
require 'yaml'
Expand Down
2 changes: 1 addition & 1 deletion Support/bin/generate.rb
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

# Copyright:
# (c) 2006 syncPEOPLE, LLC.
Expand Down
2 changes: 1 addition & 1 deletion Support/bin/generate_quick_migration.rb
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

# Copyright:
# (c) 2006 InquiryLabs, Inc.
Expand Down
2 changes: 1 addition & 1 deletion Support/bin/go_to_alternate_file.rb
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

# Copyright:
# (c) 2006 syncPEOPLE, LLC.
Expand Down
2 changes: 1 addition & 1 deletion Support/bin/go_to_file_on_current_line.rb
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

# Copyright:
# (c) 2006 syncPEOPLE, LLC.
Expand Down
2 changes: 1 addition & 1 deletion Support/bin/insert_add_column_or_create_table.rb
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
require ENV['TM_BUNDLE_SUPPORT'] + '/lib/rails_bundle_tools'

def prepend(text, prefix)
Expand Down
2 changes: 1 addition & 1 deletion Support/bin/intelligent_migration_snippet.rb
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
#
# Copyright (c) 2006 Sami Samhuri
# Distributed under the MIT license
Expand Down
2 changes: 1 addition & 1 deletion Support/bin/jump_to_method_definition.rb
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

require 'rails_bundle_tools'
require 'fileutils'
Expand Down
2 changes: 1 addition & 1 deletion Support/bin/list_columns.rb
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby -W0
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -W0

require "yaml"
require "rails_bundle_tools"
Expand Down
2 changes: 1 addition & 1 deletion Support/bin/rake_helper.rb
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
# encoding: utf-8

# Copyright:
Expand Down
2 changes: 1 addition & 1 deletion Support/bin/routes_auto_complete.rb
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

require File.join(ENV['TM_SUPPORT_PATH'], 'lib', 'ui.rb')
require File.join(ENV['TM_PROJECT_DIRECTORY'], 'config', 'environment')
Expand Down
2 changes: 1 addition & 1 deletion Support/bin/show_schema.rb
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
# encoding: utf-8

require "#{ENV['TM_SUPPORT_PATH']}/lib/progress"
Expand Down
2 changes: 1 addition & 1 deletion Support/lib/rvm/rvm.rb
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

require "rails_bundle_tools"
require File.join(TextMate.support_path, "lib", "escape")
Expand Down
2 changes: 1 addition & 1 deletion Support/test/app_fixtures/script/generate
@@ -1,3 +1,3 @@
#!/usr/bin/env ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
require File.expand_path('../../config/boot', __FILE__)
require 'commands/generate'
2 changes: 1 addition & 1 deletion script/clean_bundle_file_names
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

# To be run against files in this bundle to remove any
# non-OS agnostic characters (see BADCHARS list)
Expand Down
2 changes: 1 addition & 1 deletion script/destroy
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))

begin
Expand Down
2 changes: 1 addition & 1 deletion script/generate
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))

begin
Expand Down
2 changes: 1 addition & 1 deletion script/txt2html
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

require 'erb'
require 'rubygems'
Expand Down

0 comments on commit 8091f39

Please sign in to comment.