lib/squib/builtin/projects/advanced/src/deck.rb in squib-0.18.0 vs lib/squib/builtin/projects/advanced/src/deck.rb in squib-0.19.0a
- old
+ new
@@ -1,34 +1,34 @@
-require 'squib'
-require_relative 'version'
-
-# Note: run this code by running "rake" at the command line
-# To see full list of options, run "rake -T"
-
-data = Squib.xlsx file: 'data/game.xlsx', sheet: 0
-
-Squib::Deck.new(cards: data.nrows) do
- background color: :white
- use_layout file: 'layouts/deck.yml'
-
- text str: data.name, layout: :name
-
- text str: data.atk.map { |s| "#{s} ATK" }, layout: :ATK
- text str: data.def.map { |s| "#{s} DEF" }, layout: :DEF
-
- svg file: 'example.svg'
-
- text str: MySquibGame::VERSION, layout: :version
-
- build(:proofs) do
- safe_zone
- cut_zone
- end
-
- save format: :png
-
- build(:pnp) do
- save_sheet prefix: 'pnp_sheet_',
- trim: '0.125in',
- rows: 3, columns: 3
- end
-end
+require 'squib'
+require_relative 'version'
+
+# Note: run this code by running "rake" at the command line
+# To see full list of options, run "rake -T"
+
+data = Squib.xlsx file: 'data/game.xlsx', sheet: 0
+
+Squib::Deck.new(cards: data.nrows) do
+ background color: :white
+ use_layout file: 'layouts/deck.yml'
+
+ text str: data.name, layout: :name
+
+ text str: data.atk.map { |s| "#{s} ATK" }, layout: :ATK
+ text str: data.def.map { |s| "#{s} DEF" }, layout: :DEF
+
+ svg file: 'example.svg'
+
+ text str: MySquibGame::VERSION, layout: :version
+
+ build(:proofs) do
+ safe_zone
+ cut_zone
+ end
+
+ save format: :png
+
+ build(:pnp) do
+ save_sheet prefix: 'pnp_sheet_',
+ trim: '0.125in',
+ rows: 3, columns: 3
+ end
+end