ase 1.0.0 → 1.0.1

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: a8f02ed546d29cb98fc1e48ec4327a551d544fad
4
- data.tar.gz: 3e8545e46be2158f2040eb42dda2368402cf04dd
3
+ metadata.gz: bbce09359246aaba65872f115ee369a756c7ab81
4
+ data.tar.gz: e6835b3a447af7367f8cebb15418e323fb31baf1
5
5
  SHA512:
6
- metadata.gz: 6aa291a962d1d474d722d184bf802327e97590307b3b0e01b97679137c5fe98f60725f2b4731ef54ed41531930b403abeccbd421a203e944f90a01d12cb2dea0
7
- data.tar.gz: 0acd8002bd0f69550c86d7627de4bfb5921032b56419244bf01def81ca2a308a37e4c6d141bea26e922f93b6ba30afb8c574c247d4ca16a52ade887bd181803c
6
+ metadata.gz: 4f6a0d3dc97632f7ed08cb08d352d05ba2d868361d7621ef53396628a60f6ee778bb1b05873792e89fbf6baa31acbb1c341c4c11f4106856b779633974c02e3a
7
+ data.tar.gz: 7b093b2caa0ca419075bf6e83345bcba1d2af3a74302e228810dfe013463a2c4b7d1750628b57744cbd2dd57dd07f55a2a6a572f5deedc0f00cfa2e04834ed58
data/lib/ase/color.rb CHANGED
@@ -45,7 +45,15 @@ class ASE
45
45
  colors = [@r, @g, @b]
46
46
  colors << @a if incl_alpha
47
47
 
48
- colors.each { |c| hex << c.to_s(16) }
48
+ colors.each do |c|
49
+ color = c.to_s(16)
50
+ if c < 16
51
+ hex << "0#{color}"
52
+ else
53
+ hex << color
54
+ end
55
+ end
56
+
49
57
  return hex
50
58
  end
51
59
  alias :to_s :to_hex
data/lib/ase/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class ASE
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan LeFevre