Browse Source

Merge branch 'master' into dev

dev
Andy Meneely 7 years ago
parent
commit
827f998564
  1. 8
      docs/dsl/csv.rst
  2. 8
      samples/build_groups/Rakefile

8
docs/dsl/csv.rst

@ -12,6 +12,14 @@ The ``csv`` method is a member of ``Squib::Deck``, but it is also available outs
Squib::Deck.new(cards: data['name'].size) do
end
If you have multiple source files which you would like to concatenate use the following::
cards1 = Squib.csv file: 'cards1.tsv', col_sep: "\t"
cards2 = Squib.csv file: 'cards2.tsv', col_sep: "\t"
all_cards = cards1
all_cards['column1'] += cards2['column1']
all_cards['column2'] += cards2['column2']
Options
-------

8
samples/build_groups/Rakefile

@ -2,13 +2,13 @@
require 'squib'
desc 'Build black-and-white by default'
task default: [:bw]
task default: [:pnp]
desc 'Build both bw and color'
task both: [:bw, :color]
task both: [:pnp, :color]
desc 'Build black-and-white only'
task :bw do
task :pnp do
Squib.enable_build_globally :print_n_play
load 'build_groups.rb'
end
@ -20,7 +20,7 @@ task :color do
end
desc 'Build a test card'
task :color do
task :test do
Squib.enable_build_globally :test
load 'build_groups.rb'
end

Loading…
Cancel
Save