svggvs 0.0.10 → 0.0.10.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -32,7 +32,7 @@ unless they have the following names:
32
32
  * (child visible): The layer will be visible if its parent layer is also made visible. Good if you
33
33
  break artwork up into multiple layers (inks, colors, shading, etc.)
34
34
  * (inject filename.svg): Include all the layers of another SVG file as child layers of this layer.
35
- Does not copy patterns/gradients yet!
35
+ Copies some elements from `<defs>` from the injected file!
36
36
 
37
37
  Hiding/showing layers is the way that you make certain card elements appear/disappear on
38
38
  different types of cards with with different properties. You can also replace the text in
data/lib/svggvs/file.rb CHANGED
@@ -34,13 +34,13 @@ module SVGGVS
34
34
  end
35
35
 
36
36
  def original_defs
37
- @original_defs ||= defs.dup
37
+ @original_defs ||= defs.children.collect(&:to_xml).join
38
38
  end
39
39
 
40
40
  def reset_defs!
41
41
  defs.children.each(&:remove)
42
42
 
43
- defs << original_defs.children
43
+ defs << original_defs
44
44
  end
45
45
 
46
46
  def doc
@@ -1,3 +1,3 @@
1
1
  module SVGGVS
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.10.1"
3
3
  end
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.10
4
+ version: 0.0.10.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-29 00:00:00.000000000 -04:00
13
- default_executable:
12
+ date: 2014-06-05 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: nokogiri
17
- requirement: &80918420 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
18
17
  none: false
19
18
  requirements:
20
19
  - - ! '>='
@@ -22,10 +21,15 @@ dependencies:
22
21
  version: '0'
23
22
  type: :runtime
24
23
  prerelease: false
25
- version_requirements: *80918420
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
26
30
  - !ruby/object:Gem::Dependency
27
31
  name: thor
28
- requirement: &80918210 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
29
33
  none: false
30
34
  requirements:
31
35
  - - ! '>='
@@ -33,10 +37,15 @@ dependencies:
33
37
  version: '0'
34
38
  type: :runtime
35
39
  prerelease: false
36
- version_requirements: *80918210
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
37
46
  - !ruby/object:Gem::Dependency
38
47
  name: parallel
39
- requirement: &80918000 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
40
49
  none: false
41
50
  requirements:
42
51
  - - ! '>='
@@ -44,10 +53,15 @@ dependencies:
44
53
  version: '0'
45
54
  type: :runtime
46
55
  prerelease: false
47
- version_requirements: *80918000
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
48
62
  - !ruby/object:Gem::Dependency
49
63
  name: roo
50
- requirement: &80917790 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
51
65
  none: false
52
66
  requirements:
53
67
  - - ! '>='
@@ -55,10 +69,15 @@ dependencies:
55
69
  version: '0'
56
70
  type: :runtime
57
71
  prerelease: false
58
- version_requirements: *80917790
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
59
78
  - !ruby/object:Gem::Dependency
60
79
  name: activesupport
61
- requirement: &80917580 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
62
81
  none: false
63
82
  requirements:
64
83
  - - ! '>='
@@ -66,10 +85,15 @@ dependencies:
66
85
  version: '0'
67
86
  type: :runtime
68
87
  prerelease: false
69
- version_requirements: *80917580
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
70
94
  - !ruby/object:Gem::Dependency
71
95
  name: rspec
72
- requirement: &80959270 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
73
97
  none: false
74
98
  requirements:
75
99
  - - ! '>='
@@ -77,7 +101,12 @@ dependencies:
77
101
  version: '0'
78
102
  type: :development
79
103
  prerelease: false
80
- version_requirements: *80959270
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
81
110
  description: Generate sets of card game cards using Inkscape templates and Ruby
82
111
  email:
83
112
  - john@coswellproductions.com
@@ -109,7 +138,6 @@ files:
109
138
  - spec/spec_helper.rb
110
139
  - spec/svggvs/pdf_spec.rb
111
140
  - svggvs.gemspec
112
- has_rdoc: true
113
141
  homepage: ''
114
142
  licenses: []
115
143
  post_install_message:
@@ -130,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
158
  version: '0'
131
159
  requirements: []
132
160
  rubyforge_project:
133
- rubygems_version: 1.6.2
161
+ rubygems_version: 1.8.24
134
162
  signing_key:
135
163
  specification_version: 3
136
164
  summary: Generate sets of card game cards using Inkscape templates and Ruby