Sha256: 62adf68761391bf2589900c4d907c1b3a8203cbaac27c75d7fdf913e9aeb0e29

Contents?: true

Size: 599 Bytes

Versions: 2

Compression:

Stored size: 599 Bytes

Contents

class MigrationFinder
  def initialize gem, path
    finder = Gem::GemPathSearcher.new
    taggable_spec = finder.find(gem)
    taggable_migration = finder.matching_files(taggable_spec,
                                               File.join(*path)).first

    require taggable_migration
  end
end

# acts-as-taggable-on
MigrationFinder.new 'acts-as-taggable-on',
                   ["generators", "acts_as_taggable_on", "migration", "templates", "active_record", "migration"]

# Mailboxer
MigrationFinder.new 'mailboxer',
                    ['generators', 'mailboxer', 'templates', 'migration']

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
social_stream-base-0.6.3 spec/support/migrations.rb
social_stream-base-0.6.2 spec/support/migrations.rb