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