Sha256: 1267309c4a1b97f6d4f2e3586844fd211f28c61d2f7a71f9eafd20342d5d578c
Contents?: true
Size: 1.5 KB
Versions: 3
Compression:
Stored size: 1.5 KB
Contents
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
3 entries across 3 versions & 1 rubygems