svggvs 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -68,6 +68,12 @@ Create a `Cardfile` in your working directory. It should look something like thi
68
68
  # data[:replacements]['Superpower Text'] << '!!'
69
69
  # }
70
70
 
71
+ # only sheets with this in the title will be read for card data
72
+ # c.card_sheet_identifier = "Card Data"
73
+
74
+ # prepend this PDF to the outputted PDF (useful for game rules)
75
+ # c.prepend_pdf = "rules.pdf"
76
+
71
77
  c.data_source = "data.ods"
72
78
  end
73
79
  ```
data/bin/svggvs CHANGED
@@ -95,6 +95,10 @@ module SVGGVS
95
95
 
96
96
  Pathname(context.session.pdf_target).parent.mkpath
97
97
 
98
+ if context.session.prepend_pdf
99
+ pages.unshift context.session.prepend_pdf
100
+ end
101
+
98
102
  system "gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=#{context.session.pdf_target} -dBATCH #{pages.join(" ")}"
99
103
  end
100
104
 
@@ -3,7 +3,7 @@ module SVGGVS
3
3
  attr_accessor :svg_source, :svg_merged_target, :individual_files_path, :on_card_finished
4
4
  attr_accessor :png_files_path, :png_export_width, :pdf_card_size, :pdf_dpi
5
5
  attr_accessor :pdf_target, :card_back, :card_size, :target, :post_read_data
6
- attr_accessor :card_sheet_identifier
6
+ attr_accessor :card_sheet_identifier, :prepend_pdf
7
7
 
8
8
  def initialize
9
9
  @index = 0
@@ -1,3 +1,3 @@
1
1
  module SVGGVS
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
data/skel/Cardfile CHANGED
@@ -4,6 +4,12 @@
4
4
  # data[:replacements]['Superpower Text'] << '!!'
5
5
  # }
6
6
 
7
+ # only sheets with this in the title will be read for card data
8
+ # c.card_sheet_identifier = "Card Data"
9
+
10
+ # prepend this PDF to the outputted PDF (useful for game rules)
11
+ # c.prepend_pdf = "rules.pdf"
12
+
7
13
  c.data_source = "data.ods"
8
14
  end
9
15
 
data/skel/template.svg CHANGED
@@ -945,7 +945,7 @@
945
945
  y="717.48047"
946
946
  x="0.6230976"
947
947
  id="image3613"
948
- xlink:href="file:///Users/john/Projects/puppy-kitten/images/cat.png.jpg"
948
+ xlink:href="images/cat.png.jpg"
949
949
  height="0.75"
950
950
  width="1.5"
951
951
  inkscape:label="Image" />
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svggvs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-01 00:00:00.000000000 -05:00
12
+ date: 2014-03-05 00:00:00.000000000 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: nokogiri
17
- requirement: &77132620 !ruby/object:Gem::Requirement
17
+ requirement: &77163400 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *77132620
25
+ version_requirements: *77163400
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: thor
28
- requirement: &77132410 !ruby/object:Gem::Requirement
28
+ requirement: &77163190 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *77132410
36
+ version_requirements: *77163190
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: parallel
39
- requirement: &77132200 !ruby/object:Gem::Requirement
39
+ requirement: &77162980 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *77132200
47
+ version_requirements: *77162980
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: roo
50
- requirement: &77131990 !ruby/object:Gem::Requirement
50
+ requirement: &77162770 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *77131990
58
+ version_requirements: *77162770
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: activesupport
61
- requirement: &77131780 !ruby/object:Gem::Requirement
61
+ requirement: &77162560 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: '0'
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *77131780
69
+ version_requirements: *77162560
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rspec
72
- requirement: &77131570 !ruby/object:Gem::Requirement
72
+ requirement: &77162350 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ! '>='
@@ -77,7 +77,7 @@ dependencies:
77
77
  version: '0'
78
78
  type: :development
79
79
  prerelease: false
80
- version_requirements: *77131570
80
+ version_requirements: *77162350
81
81
  description: Generate sets of card game cards using Inkscape templates and Ruby
82
82
  email:
83
83
  - john@coswellproductions.com