swf_ruby 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/swf_ruby/swf/bits_lossless2.rb +2 -2
- data/lib/swf_ruby/version.rb +1 -1
- metadata +17 -7
@@ -16,7 +16,7 @@ module SwfRuby
|
|
16
16
|
colormap = []
|
17
17
|
# creating colormap to check number of colors
|
18
18
|
image.get_pixels(0, 0, image.columns, image.rows).each_with_index do |pixel,i|
|
19
|
-
break if colormap.length >
|
19
|
+
break if colormap.length > 256
|
20
20
|
idx = colormap.index(pixel)
|
21
21
|
if idx
|
22
22
|
data << [idx].pack("C")
|
@@ -31,7 +31,7 @@ module SwfRuby
|
|
31
31
|
end
|
32
32
|
|
33
33
|
# checking image format by size of colormap
|
34
|
-
if colormap.length >
|
34
|
+
if colormap.length > 256
|
35
35
|
# format=5
|
36
36
|
# reset and re-build data_stream without colopmap
|
37
37
|
data = ""
|
data/lib/swf_ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swf_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: 1.0.0.rc.5
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.0.0.rc.5
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: rmagick
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ! '>='
|
@@ -32,7 +37,12 @@ dependencies:
|
|
32
37
|
version: 2.13.0
|
33
38
|
type: :runtime
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 2.13.0
|
36
46
|
description: SwfRuby is utilities to dump or manipulate Swf binary file.
|
37
47
|
email: []
|
38
48
|
executables:
|
@@ -104,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
114
|
version: 1.3.6
|
105
115
|
requirements: []
|
106
116
|
rubyforge_project: swf_ruby
|
107
|
-
rubygems_version: 1.8.
|
117
|
+
rubygems_version: 1.8.23
|
108
118
|
signing_key:
|
109
119
|
specification_version: 3
|
110
120
|
summary: Utilities to dump or manipulate Swf binary file.
|