Class: Alchemy::Upgrader::FourPointOne

Inherits:
Alchemy::Upgrader show all
Defined in:
lib/alchemy/upgrader/four_point_one.rb

Class Method Summary collapse

Methods inherited from Alchemy::Upgrader

copy_new_config_file

Methods included from Shell

#add_todo, #desc, #display_todos, #log, silence!, silenced?, #todo, #todos, verbose!

Class Method Details

.alchemy_4_1_todosObject



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/alchemy/upgrader/four_point_one.rb', line 13

def alchemy_4_1_todos
  notice = <<-NOTE

  Changed tagging provider to Gutentag
  ------------------------------------

  The automatic updater that just ran updated all existing `acts_as_taggable_on_migrations`,
  so that they don't blow up if the `acts_as_taggable_on` gem is no longer available.

  All your existing tags have been migrated to `Gutentag::Tag`s.

  Removed Rails and non-English translations
  ------------------------------------------

  Removed the Rails translations from our translation files and moved all non-english translation
  files into the newly introduced `alchemy_i18n` gem.

  If you need more translations than the default English one you can either put `alchemy_i18n`
  in to your apps `Gemfile` or - recommended - copy only the translation files you need into your
  apps `config/locales` folder.

  For the Rails translations either put the rails-i18n gem into your apps Gemfile or - recommended -
  copy only the translation files you need into your apps config/locales folder.

  NOTE
  todo notice, 'Alchemy v4.1 changes'
end

.harden_acts_as_taggable_on_migrationsObject



6
7
8
9
10
11
# File 'lib/alchemy/upgrader/four_point_one.rb', line 6

def harden_acts_as_taggable_on_migrations
  desc 'Harden `acts_as_taggable_on_migrations`'
  `bundle exec rake railties:install:migrations FROM=acts_as_taggable_on_engine`
  Alchemy::Upgrader::Tasks::HardenActsAsTaggableOnMigrations.new.patch_migrations
  `bundle exec rake db:migrate`
end