プロジェクト

全般

プロフィール

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

Satoshi Okuno, 2014-05-06 09:19

差分を表示:

mikutter.rb
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
=end
mikutter_directory = File.expand_path(File.dirname(__FILE__))
mikutter_directory = File.expand_path(File.dirname(__FILE__).force_encoding(Encoding.default_external))
begin
ENV['BUNDLE_GEMFILE'] = File.expand_path(File.join(File.dirname($0), "Gemfile"))
ENV['BUNDLE_GEMFILE'] = File.join(mikutter_directory, "Gemfile")
require 'bundler/setup'
rescue LoadError, SystemExit
# bundlerがないか、依存関係の解決に失敗した場合
    (1-1/1)