Sha256: 53fef4ce3294f5fa45ee400cfbd1a75e64f12e1c228bc586ffe5a20ab53d936d

Contents?: true

Size: 1 KB

Versions: 5

Compression:

Stored size: 1 KB

Contents

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

class AddAceCards < Cardio::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. [[https://decko.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

5 entries across 5 versions & 1 rubygems

Version Path
card-mod-ace_editor-0.11.4 db/migrate_core_cards/20160804112538_add_ace_cards.rb
card-mod-ace_editor-0.11.3 db/migrate_core_cards/20160804112538_add_ace_cards.rb
card-mod-ace_editor-0.11.2 db/migrate_core_cards/20160804112538_add_ace_cards.rb
card-mod-ace_editor-0.11.1 db/migrate_core_cards/20160804112538_add_ace_cards.rb
card-mod-ace_editor-0.11.0 db/migrate_core_cards/20160804112538_add_ace_cards.rb