Merge branch 'master' into dev

dev
Andy Meneely 2019-05-27 09:18:14 -04:00
commit 827f998564
2 changed files with 12 additions and 4 deletions

View File

@ -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
-------

View File

@ -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