Sha256: d577236c059c468d848eed5bdf6cad2688d86807c48f239e7423deaa5a2e34e3

Contents?: true

Size: 1021 Bytes

Versions: 40

Compression:

Stored size: 1021 Bytes

Contents

# -*- encoding : utf-8 -*-

class AddAceCards < Card::Migration
  ACE_CONFIG = <<-JSON.strip_heredoc
                 {
                   "default": {
                     "showGutter": true,
                     "theme": "ace/theme/github",
                     "printMargin": false,
                     "tabSize": 2,
                     "useSoftTabs": true,
                     "maxLines": 30
                   }
                 }
               JSON
  def up
    ensure_card name: "*Ace", type_id: Card::PlainTextID,
                codename: "ace", content: ACE_CONFIG
    create_or_update(
      name: "*Ace+*self+*help",
      content: "Configure [[https://ace.c9.io|ace]], "\
               "Wagn's default code editor. [[http://wagn.org/ace|more]]"
    )
    ensure_card name: "script: ace", type_id: Card::JavaScriptID,
                codename: "script_ace"
    ensure_card name: "script: ace config",
                type_id: Card::CoffeeScriptID,
                codename: "script_ace_config"
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
card-1.96.2 mod/ace_editor/db/migrate_core_cards/20160804112538_add_ace_cards.rb
card-1.96.1 mod/ace_editor/db/migrate_core_cards/20160804112538_add_ace_cards.rb
card-1.96.0 mod/ace_editor/db/migrate_core_cards/20160804112538_add_ace_cards.rb
card-1.95.3 mod/ace_editor/db/migrate_core_cards/20160804112538_add_ace_cards.rb
card-1.95.2 mod/ace_editor/db/migrate_core_cards/20160804112538_add_ace_cards.rb
card-1.95.1 mod/ace_editor/db/migrate_core_cards/20160804112538_add_ace_cards.rb
card-1.95.0 mod/ace_editor/db/migrate_core_cards/20160804112538_add_ace_cards.rb
card-1.94.1 mod/ace_editor/db/migrate_core_cards/20160804112538_add_ace_cards.rb
card-1.94.0 mod/ace_editor/db/migrate_core_cards/20160804112538_add_ace_cards.rb
card-1.93.13 mod/ace_editor/db/migrate_core_cards/20160804112538_add_ace_cards.rb
card-1.93.12 mod/ace_editor/db/migrate_core_cards/20160804112538_add_ace_cards.rb
card-1.93.11 mod/ace_editor/db/migrate_core_cards/20160804112538_add_ace_cards.rb
card-1.93.10 mod/ace_editor/db/migrate_core_cards/20160804112538_add_ace_cards.rb
card-1.93.9 mod/ace_editor/db/migrate_core_cards/20160804112538_add_ace_cards.rb
card-1.93.8 mod/ace_editor/db/migrate_cards/20160804112538_add_ace_cards.rb
card-1.93.7 mod/ace_editor/db/migrate_cards/20160804112538_add_ace_cards.rb
card-1.93.6 mod/ace_editor/db/migrate_cards/20160804112538_add_ace_cards.rb
card-1.93.5 mod/ace_editor/db/migrate_cards/20160804112538_add_ace_cards.rb
card-1.93.4 mod/ace_editor/db/migrate_cards/20160804112538_add_ace_cards.rb
card-1.93.3 mod/ace_editor/db/migrate_cards/20160804112538_add_ace_cards.rb