chunky_png 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
3
3
 
4
4
  # Do not change the version and date fields by hand. This will be done
5
5
  # automatically by the gem release script.
6
- s.version = "1.2.2"
6
+ s.version = "1.2.3"
7
7
  s.date = "2011-09-14"
8
8
 
9
9
  s.summary = "Pure ruby library for read/write, chunk-level access to PNG files"
@@ -25,7 +25,7 @@ module ChunkyPNG
25
25
 
26
26
  # The current version of ChunkyPNG. This value will be updated
27
27
  # automatically by them <tt>gem:release</tt> rake task.
28
- VERSION = "1.2.2"
28
+ VERSION = "1.2.3"
29
29
 
30
30
  ###################################################
31
31
  # PNG international standard defined constants
@@ -4,8 +4,11 @@ module ChunkyPNG
4
4
  # Methods to export a canvas to a PNG data URL.
5
5
  module DataUrlExporting
6
6
 
7
+ # Exports the canvas as a data url (e.g. data:image/png;base64,<data>) that can
8
+ # easily be used inline in CSS or HTML.
9
+ # @return [String] The canvas formatted as a data URL string.
7
10
  def to_data_url
8
- ['data:image/png;base64,', to_blob].pack('A*m0')
11
+ ['data:image/png;base64,', to_blob].pack('A*m').gsub(/\n/, '')
9
12
  end
10
13
  end
11
14
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chunky_png
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 25
5
+ prerelease:
5
6
  segments:
6
7
  - 1
7
8
  - 2
8
- - 2
9
- version: 1.2.2
9
+ - 3
10
+ version: 1.2.3
10
11
  platform: ruby
11
12
  authors:
12
13
  - Willem van Bergen
@@ -25,6 +26,7 @@ dependencies:
25
26
  requirements:
26
27
  - - ">="
27
28
  - !ruby/object:Gem::Version
29
+ hash: 3
28
30
  segments:
29
31
  - 0
30
32
  version: "0"
@@ -38,6 +40,7 @@ dependencies:
38
40
  requirements:
39
41
  - - ~>
40
42
  - !ruby/object:Gem::Version
43
+ hash: 7
41
44
  segments:
42
45
  - 2
43
46
  - 2
@@ -389,6 +392,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
389
392
  requirements:
390
393
  - - ">="
391
394
  - !ruby/object:Gem::Version
395
+ hash: 3
392
396
  segments:
393
397
  - 0
394
398
  version: "0"
@@ -397,13 +401,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
397
401
  requirements:
398
402
  - - ">="
399
403
  - !ruby/object:Gem::Version
404
+ hash: 3
400
405
  segments:
401
406
  - 0
402
407
  version: "0"
403
408
  requirements: []
404
409
 
405
410
  rubyforge_project:
406
- rubygems_version: 1.3.7
411
+ rubygems_version: 1.6.2
407
412
  signing_key:
408
413
  specification_version: 3
409
414
  summary: Pure ruby library for read/write, chunk-level access to PNG files