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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79bb9f0775279f19ec7c32debe96ddfb158fd266
4
- data.tar.gz: 9ced1d705f02e655d321d13aec6ea984d53b6373
3
+ metadata.gz: d8b9a4fe8dffacb1b54b6c831206538f9eb5fb49
4
+ data.tar.gz: 315aff5c962cc1e7f3f066a8cd9368f1658703b3
5
5
  SHA512:
6
- metadata.gz: c5c6175467f36827a734e0e6f0dcc87a05fec3f5602b92e94483b585390a6303feba84c44cdcf3bcb0aa8a23e6b43a49379b793dc88f3b689a460e58e2ae9abf
7
- data.tar.gz: 81e9ea46f4b5cf70cad43876ff89a81436713a8d53ce8c69433564378a996f9eff28b52e9f93b2df853af2efca4a8dbaca9f430629e46333c5763d710df28060
6
+ metadata.gz: 4a95e73f705febe274a3e5b959ab953bb2ecb39066d2006944d3b5326d34b6b13853986228fa8ef21b97cde828389947a272b26738ecf3bd78a9b7afbbc9fb63
7
+ data.tar.gz: 269bc26cefac68b1cb7c8218cb2412e6729c138d8579777673680102dfa784257bab57a8eac2d68c9530d0dd3aae8e36bae740460bf4a79080800c4dc308fe4f
data/lib/ase/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class ASE
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
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(0) { |sum, p| p.size }
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan LeFevre