Sha256: b0a181ffa9e5f665d9f6a53ed798a4d7fe3332d118f314e925907c89610d2a38

Contents?: true

Size: 749 Bytes

Versions: 4

Compression:

Stored size: 749 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

# Social Stream Base
MigrationFinder.new 'social_stream-base',
                    ['generators', 'social_stream', 'base', 'templates', 'migration']

# 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

4 entries across 4 versions & 2 rubygems

Version Path
social_stream-0.5.2 spec/support/migrations.rb
social_stream-base-0.5.2 spec/support/migrations.rb
social_stream-0.5.1 spec/support/migrations.rb
social_stream-0.5.0 spec/support/migrations.rb