rasem 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -73,11 +73,11 @@ private
73
73
  # Writes file header
74
74
  def write_header(width, height)
75
75
  @output << <<-HEADER
76
- <?xml version="1.0" standalone="no"?>
77
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
78
- "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
79
- <svg width="#{width}" height="#{height}" version="1.1"
80
- xmlns="http://www.w3.org/2000/svg">
76
+ <?xml version="1.0" standalone="no"?>
77
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
78
+ "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
79
+ <svg width="#{width}" height="#{height}" version="1.1"
80
+ xmlns="http://www.w3.org/2000/svg">
81
81
  HEADER
82
82
  end
83
83
 
@@ -8,6 +8,12 @@ describe Rasem::SVGImage do
8
8
  str.should =~ %r{height="100"}
9
9
  end
10
10
 
11
+ it "should initialize XML correctly" do
12
+ img = Rasem::SVGImage.new("", 100, 100)
13
+ str = img.output
14
+ str.should =~ /^<\?xml/
15
+ end
16
+
11
17
  it "should close an image" do
12
18
  img = Rasem::SVGImage.new("", 100, 100)
13
19
  img.close
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ahmed Eldawy
@@ -110,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
110
  requirements:
111
111
  - - ">="
112
112
  - !ruby/object:Gem::Version
113
- hash: -2310388374687668377
113
+ hash: -2966740688363327135
114
114
  segments:
115
115
  - 0
116
116
  version: "0"