プロジェクト

全般

プロフィール

環境対応 #661 » 001-Windows-ruby-mikutter.patch

Satoshi Okuno, 2014-05-06 09:19

差分を表示:

mikutter.rb
11 11
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
12 12

  
13 13
=end
14
mikutter_directory = File.expand_path(File.dirname(__FILE__))
14
mikutter_directory = File.expand_path(File.dirname(__FILE__).force_encoding(Encoding.default_external))
15 15

  
16 16
begin
17
  ENV['BUNDLE_GEMFILE'] = File.expand_path(File.join(File.dirname($0), "Gemfile"))
17
  ENV['BUNDLE_GEMFILE'] = File.join(mikutter_directory, "Gemfile")
18 18
  require 'bundler/setup'
19 19
rescue LoadError, SystemExit
20 20
  # bundlerがないか、依存関係の解決に失敗した場合
    (1-1/1)