Sha256: 0564b5094edea6c8eb13c80073633458b64fdb8211186b6a5eb3f219b37481f7

Contents?: true

Size: 910 Bytes

Versions: 18

Compression:

Stored size: 910 Bytes

Contents

require 'squib'

Squib::Deck.new(width: 75, height: 75, cards: 2) do
  # puts "Groups enabled by environment: #{groups.to_a}"

  text str: ['A', 'B']

  build :print_n_play do
    rect
    save_sheet prefix: 'build_groups_bw_'
  end

  build :color do
    rect stroke_color: :red, dash: '5 5'
    save_png prefix: 'build_groups_color_'
  end

  build :test do
    save_png range: 0, prefix: 'build_groups_'
  end

end

# Here's how you can run this on the command line:
#
# --- OSX/Linux (bash or similar shells) ---
# $ ruby build_groups.rb
# $ SQUIB_BUILD=color ruby build_groups.rb
# $ SQUIB_BUILD=print_n_play,test ruby build_groups.rb
#
# --- Windows CMD ---
# $ ruby build_groups.rb
# $ set SQUIB_BUILD=color && ruby build_groups.rb
# $ set SQUIB_BUILD=print_n_play,test && ruby build_groups.rb
#
# Or, better yet... use a Rakefile like the one provided in this gist!

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
squib-0.18.0 samples/build_groups/build_groups.rb
squib-0.17.2 samples/build_groups/build_groups.rb
squib-0.17.1 samples/build_groups/build_groups.rb
squib-0.17.0 samples/build_groups/build_groups.rb
squib-0.16.0 samples/build_groups/build_groups.rb
squib-0.16.0.pre.preview2 samples/build_groups/build_groups.rb
squib-0.16.0.pre.preview1 samples/build_groups/build_groups.rb
squib-0.15.3 samples/build_groups/build_groups.rb
squib-0.15.0 samples/build_groups/build_groups.rb
squib-0.14.3.pre1 samples/build_groups/build_groups.rb
squib-0.14.1 samples/build_groups/build_groups.rb
squib-0.14.0 samples/build_groups/build_groups.rb
squib-0.14.beta1 samples/build_groups/build_groups.rb
squib-0.13.4 samples/build_groups/build_groups.rb
squib-0.13.3 samples/build_groups/build_groups.rb
squib-0.13.2 samples/build_groups/build_groups.rb
squib-0.13.1 samples/build_groups/build_groups.rb
squib-0.13.0 samples/build_groups/build_groups.rb