svggvs 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +7 -1
- data/bin/svggvs +33 -0
- data/lib/svggvs/version.rb +1 -1
- metadata +13 -13
data/README.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
# Process Inkscape files and create sets of cards for board games
|
2
2
|
|
3
|
-
You'll need `inkscape`, `convert`, `montage`, and `gs` in your `PATH`.
|
3
|
+
You'll need `inkscape`, `convert`, `montage`, and `gs` in your `PATH`. After installing the
|
4
|
+
gem, run `svggvs prereqs` to see what you need installed and, potentially, how to install it.
|
5
|
+
|
6
|
+
### Using Inkscape in /Applications on Mac OS X
|
7
|
+
|
8
|
+
If you've installed Inkscape on Mac OS X and want to use that version instead of one from Homebrew,
|
9
|
+
you'll need to follow these directions for setting up a shell alias: http://wiki.inkscape.org/wiki/index.php/MacOS_X#Inkscape_command_line
|
4
10
|
|
5
11
|
## Initialize a starter project
|
6
12
|
|
data/bin/svggvs
CHANGED
@@ -16,6 +16,39 @@ module SVGGVS
|
|
16
16
|
|
17
17
|
class_option :cardfile, default: 'Cardfile'
|
18
18
|
|
19
|
+
PREREQ_MESSAGES = {
|
20
|
+
'inkscape' => (<<-MSG),
|
21
|
+
sudo apt-get install inkscape or, on Mac OS X, download from http://www.inkscape.org/ and follow
|
22
|
+
the instructions to set up a shell alias:
|
23
|
+
|
24
|
+
http://wiki.inkscape.org/wiki/index.php/MacOS_X#Inkscape_command_line
|
25
|
+
MSG
|
26
|
+
'gs' => "sudo apt-get install ghostscript or brew install ghostscript",
|
27
|
+
'convert' => "sudo apt-get install imagemagick or brew install imagemagick",
|
28
|
+
'montage' => "sudo apt-get install imagemagick or brew install imagemagick"
|
29
|
+
}.freeze
|
30
|
+
|
31
|
+
desc "prereqs", "Check your system for necessary pre-requisites"
|
32
|
+
def prereqs
|
33
|
+
[ 'inkscape -v', 'gs -v', 'montage -version', 'convert -version' ].each do |command|
|
34
|
+
name = command.split(' ').first
|
35
|
+
puts "Checking #{name}..."
|
36
|
+
|
37
|
+
begin
|
38
|
+
output = %x{#{command}}
|
39
|
+
|
40
|
+
if $?.exitstatus != 0
|
41
|
+
puts "Problem running #{name}! Output below:"
|
42
|
+
puts output
|
43
|
+
end
|
44
|
+
rescue Errno::ENOENT
|
45
|
+
puts "#{name} not installed! To install:"
|
46
|
+
|
47
|
+
puts PREREQ_MESSAGES[name]
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
19
52
|
desc "install [ dir ]", "Install a Cardfile and sample template"
|
20
53
|
def install(dir = '.')
|
21
54
|
directory '.', dir
|
data/lib/svggvs/version.rb
CHANGED
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.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ default_executable:
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: nokogiri
|
17
|
-
requirement: &
|
17
|
+
requirement: &86535180 !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: *
|
25
|
+
version_requirements: *86535180
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: thor
|
28
|
-
requirement: &
|
28
|
+
requirement: &86534970 !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: *
|
36
|
+
version_requirements: *86534970
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: parallel
|
39
|
-
requirement: &
|
39
|
+
requirement: &86534760 !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: *
|
47
|
+
version_requirements: *86534760
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: roo
|
50
|
-
requirement: &
|
50
|
+
requirement: &86534550 !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: *
|
58
|
+
version_requirements: *86534550
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: activesupport
|
61
|
-
requirement: &
|
61
|
+
requirement: &86534340 !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: *
|
69
|
+
version_requirements: *86534340
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: rspec
|
72
|
-
requirement: &
|
72
|
+
requirement: &86534130 !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: *
|
80
|
+
version_requirements: *86534130
|
81
81
|
description: Generate sets of card game cards using Inkscape templates and Ruby
|
82
82
|
email:
|
83
83
|
- john@coswellproductions.com
|