ase 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ase/version.rb +1 -1
- data/lib/ase/writer.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8b9a4fe8dffacb1b54b6c831206538f9eb5fb49
|
4
|
+
data.tar.gz: 315aff5c962cc1e7f3f066a8cd9368f1658703b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a95e73f705febe274a3e5b959ab953bb2ecb39066d2006944d3b5326d34b6b13853986228fa8ef21b97cde828389947a272b26738ecf3bd78a9b7afbbc9fb63
|
7
|
+
data.tar.gz: 269bc26cefac68b1cb7c8218cb2412e6729c138d8579777673680102dfa784257bab57a8eac2d68c9530d0dd3aae8e36bae740460bf4a79080800c4dc308fe4f
|
data/lib/ase/version.rb
CHANGED
data/lib/ase/writer.rb
CHANGED
@@ -9,8 +9,8 @@ class ASE
|
|
9
9
|
raise "Must specify an output file" if @file.nil?
|
10
10
|
@file = File.new(@file, 'wb')
|
11
11
|
|
12
|
-
palette_count = @palettes.length
|
13
|
-
color_count = @palettes.inject
|
12
|
+
palette_count = @palettes.keys.length
|
13
|
+
color_count = @palettes.values.map{ |p| p.size }.inject { |sum, i| sum + i }
|
14
14
|
|
15
15
|
# Signature
|
16
16
|
@file.write "ASEF"
|