decko-commons/decko

View on GitHub
card/card.gemspec

Summary

Maintainability
Test Coverage
# -*- encoding : utf-8 -*-

require "../decko_gem"

DeckoGem.gem "card" do |s, d|
  s.version = d.card_version

  s.summary = "a simple engine for emergent data structures"
  s.description =
    "Cards are wiki-inspired data atoms." \
    'Card "Sharks" use links, nests, types, patterned names, queries, views, ' \
    "events, and rules to create rich structures."

  s.files = Dir["VERSION", "README.md", "LICENSE", "GPL", ".yardopts",
                "{config,db,lib,mod,tmpsets}/**/*"]

  s.bindir = "bin"
  s.executables = ["card"]

  d.depends_on(
    ["cardname",             d.decko_version],
    ["rake",                       "~> 13.0"],
    ["sprockets-rails",             "~> 3.2"],
    ["colorize",                    "~> 0.8"], # livelier cli outputs
    ["timecop",                     "~> 0.9"],
    # temporary. bad version(s)
    ["zeitwerk",                  "!= 2.5.0"],
    # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # MOVE TO MODS?
    # card-mod-format
    ["haml",                        "~> 5.2"], # markup language used in view API
    # card-mod-account
    ["jwt",                         "~> 2.2"], # used in token.rb
    # assets (JavaScript, CSS, etc)
    ["coderay",                     "~> 1.1"],
    ["sassc",                       "~> 2.4"],
    ["sass",                        "~> 3.7.4"], # used to validate css
    ["coffee-script",               "~> 2.4"],
    ["uglifier",                    "~> 4.2"],
    ["sprockets",                   "~> 3.7"], # sprockets 4 requires new configuration
    # pagination
    ["kaminari",                    "~> 1.2"],
    ["bootstrap4-kaminari-views",   "~> 1.0"],
    # history
    ["diff-lcs",                    "~> 1.4"], # content diffs in histories
    ["activerecord-import",         "~> 1.1"]
  )
  %w[
    activerecord
    activestorage
    actionview
    actionmailer
    activejob
    actionmailbox
    railties
  ].each do |gem_name|
    s.add_runtime_dependency gem_name, d.rails_version
  end
end