Sha256: f6ec7b22a6d5346327d600335598892b419514fcaf5105b0c2c642848a197356

Contents?: true

Size: 1.52 KB

Versions: 4

Compression:

Stored size: 1.52 KB

Contents

# encoding=utf-8

spec 'Example' do |s|
  s.block_actions_under_git = true
  s.pre_actions = ['git init', 'git add .', 'git commit -m "Initial commit."']
  s.post_actions = ['git add .', 'git commit -m "Klipp project"', 'pod install', 'git add .', 'git commit -m "Installed cocoapods"']

  s.token :PROJECT_TITLE do |t|
    t.comment = "Project title (e.g. 'Amazing Application')"
    t.validation = /^[A-Z][A-Za-z0-9 ]{2,}$/
    t.validation_hint = 'At least three characters long, start with a capital character, may contain spaces'
  end

  s.token :PROJECT_ID do |t|
    t.comment = "Project id (e.g. 'AmazingApp')"
    t.validation = /^[A-Z][A-Za-z0-9]{2,}$/
    t.validation_hint = 'At least three characters long, no spaces, start with a capital character'
  end

  s.token :BUNDLE_ID do |t|
    t.comment = "Bundle id (e.g. 'com.acme.amazingapp')"
    t.validation = /^[a-z0-9.-]{3,}$/
    t.validation_hint = 'Reverse domain notation, lower case, no spaces'
  end

  s.token :ORGANIZATION_NAME do |t|
    t.comment = "Organization name (e.g. 'ACME')"
    t.validation = /^[\p{L}0-9 -]{2,}$/
    t.validation_hint = 'At least two characters long, may contain spaces'
  end

  s.token :CLASS_PREFIX do |t|
    t.comment = "Class prefix (e.g. 'AMZ')"
    t.validation = /^[A-Z][A-Z0-9]{2,}$/
    t.validation_hint = 'All caps, at least three, starting with an alphabetical character'
  end

  s.token :SECRET_TOGGLE do |t|
    t.comment = 'Secret toggle (to enable/disable that amazing feature)'
    t.type = :bool
    t.default_value = true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
klipp-0.2.2.5 spec/fixtures/template-repository/Example/Example.klippspec
klipp-0.2.2.4 spec/fixtures/template-repository/Example/Example.klippspec
klipp-0.2.2.3 spec/fixtures/template-repository/Example/Example.klippspec
klipp-0.2.2.2 spec/fixtures/template-repository/Example/Example.klippspec