swf_ruby 0.2.2 → 0.2.3

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.
@@ -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 > 255
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 > 255
34
+ if colormap.length > 256
35
35
  # format=5
36
36
  # reset and re-build data_stream without colopmap
37
37
  data = ""
@@ -1,3 +1,3 @@
1
1
  module SwfRuby
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
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.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-05-11 00:00:00.000000000 Z
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: &89664670 !ruby/object:Gem::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: *89664670
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: &89664450 !ruby/object:Gem::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: *89664450
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.11
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.