Sha256: 352b8c948ab5eccc3ea64032a89d1fc11a4acb7372599bb3ff259a273f610419

Contents?: true

Size: 471 Bytes

Versions: 3

Compression:

Stored size: 471 Bytes

Contents

ENV['TORK_CONFIGS'] += ':bundler' if Dir['Gemfile{,.lock}'].any?
ENV['TORK_CONFIGS'] += ':rails' if Dir['script/{rails,console}'].any?
ENV['TORK_CONFIGS'] += ':devise' if File.exist? 'config/initializers/devise.rb'
ENV['TORK_CONFIGS'] += ':test' if File.directory? 'test'
ENV['TORK_CONFIGS'] += ':spec' if File.directory? 'spec'
ENV['TORK_CONFIGS'] += ':cucumber' if File.directory? 'features'
ENV['TORK_CONFIGS'] += ':factory_girl' if Dir['{test,spec}/factories/'].any?

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tork-19.8.2 lib/tork/config/default/config.rb
tork-19.8.1 lib/tork/config/default/config.rb
tork-19.8.0 lib/tork/config/default/config.rb