Sha256: dbc3a72d742a631995069364ef0a81b5072a9864eb08a0922b72ad0f9167817f

Contents?: true

Size: 623 Bytes

Versions: 21

Compression:

Stored size: 623 Bytes

Contents

require 'active_support/inflector'

Tork::Driver::REABSORB_FILE_GREPS.push(
  %r{^config/.+\.(rb|ya?ml)$},
  'db/schema.rb',
  'Gemfile.lock'
)

Tork::Driver::TEST_FILE_GLOBBERS.update(
  %r{^(app|lib|test|spec)/.*?([^/]+?)(_factory)?\.rb$} => lambda do |matches|
    single = matches[2]
    plural = ActiveSupport::Inflector.pluralize(single)
    "{test,spec}/**/{#{single},#{plural}_*}_{test,spec}.rb"
  end,

  %r{^app/views/(.+)/} => lambda do |matches|
    plural = File.basename(matches[1])
    single = ActiveSupport::Inflector.singularize(plural)
    "{test,spec}/**/{#{single},#{plural}_*}_{test,spec}.rb"
  end
)

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
tork-20.0.1 lib/tork/config/rails/driver.rb
tork-20.0.0 lib/tork/config/rails/driver.rb
tork-19.11.1 lib/tork/config/rails/driver.rb
tork-19.10.0 lib/tork/config/rails/driver.rb
tork-19.9.0 lib/tork/config/rails/driver.rb
tork-19.8.2 lib/tork/config/rails/driver.rb
tork-19.8.1 lib/tork/config/rails/driver.rb
tork-19.8.0 lib/tork/config/rails/driver.rb
tork-19.7.0 lib/tork/config/rails/driver.rb
tork-19.6.1 lib/tork/config/rails/driver.rb
tork-19.6.0 lib/tork/config/rails/driver.rb
tork-19.5.1 lib/tork/config/rails/driver.rb
tork-19.5.0 lib/tork/config/rails/driver.rb
tork-19.4.0 lib/tork/config/rails/driver.rb
tork-19.3.2 lib/tork/config/rails/driver.rb
tork-19.3.1 lib/tork/config/rails/driver.rb
tork-19.3.0 lib/tork/config/rails/driver.rb
tork-19.2.2 lib/tork/config/rails/driver.rb
tork-19.2.1 lib/tork/config/rails/driver.rb
tork-19.2.0 lib/tork/config/rails/driver.rb