Sha256: c4a1c451b389fab780cb479ff72320505492e3d58ba2a840d33da0a90efce3a0

Contents?: true

Size: 648 Bytes

Versions: 6

Compression:

Stored size: 648 Bytes

Contents

# -*- coding: utf-8 -*-

# name spaces reservation
module TDiary; end
module TDiary::Cache; end

# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __FILE__)

require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])

# FIXME: workaround fix for tainted path from Gemfile.local
$LOAD_PATH.each{|lp| $LOAD_PATH << $LOAD_PATH.shift.dup.untaint}

if defined?(Bundler)
  env = [:default]
  env << :development if ENV['RACK_ENV'].nil? || ENV['RACK_ENV'].empty?
  env << ENV['RACK_ENV'].intern if ENV['RACK_ENV']
  env = env.reject{|e| Bundler.settings.without.include? e }
  Bundler.require *env
end

Version data entries

6 entries across 5 versions & 1 rubygems

Version Path
tdiary-5.0.0 lib/tdiary/environment.rb
tdiary-4.2.1 lib/tdiary/environment.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/tdiary-4.2.0/lib/tdiary/environment.rb
tdiary-4.2.0 lib/tdiary/environment.rb
tdiary-4.1.3 lib/tdiary/environment.rb
tdiary-4.1.2 lib/tdiary/environment.rb