pigment 0.1.9 → 0.1.10
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.
- data/README.md +3 -1
- data/lib/colors.rb +1 -0
- data/lib/pigment.rb +2 -2
- metadata +9 -5
data/README.md
CHANGED
|
@@ -4,4 +4,6 @@ To install:
|
|
|
4
4
|
|
|
5
5
|
```
|
|
6
6
|
gem install pigment
|
|
7
|
-
```
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
<a href='http://www.pledgie.com/campaigns/18945'><img alt='Click here to lend your support to: pigment (ruby gem) and make a donation at www.pledgie.com !' src='http://www.pledgie.com/campaigns/18945.png?skin_name=chrome' border='0' /></a>
|
data/lib/colors.rb
CHANGED
data/lib/pigment.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module Pigment
|
|
2
|
-
VERSION = '0.1.
|
|
2
|
+
VERSION = '0.1.10'
|
|
3
3
|
|
|
4
4
|
class Color
|
|
5
5
|
|
|
@@ -270,7 +270,7 @@ module Pigment
|
|
|
270
270
|
# @param [Boolean] with_alpha
|
|
271
271
|
# @return [Array]
|
|
272
272
|
def to_floats(with_alpha = false)
|
|
273
|
-
with_alpha ? @color : rgb
|
|
273
|
+
with_alpha ? @color.dup : rgb
|
|
274
274
|
end
|
|
275
275
|
|
|
276
276
|
# Returns an array of the color components. Alpha value is passed as well if with_alpha is set to true.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pigment
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.10
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -10,9 +10,9 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2012-
|
|
13
|
+
date: 2012-12-22 00:00:00.000000000 Z
|
|
14
14
|
dependencies: []
|
|
15
|
-
description: A rgb color gem, with a list of 750
|
|
15
|
+
description: A rgb color gem, with a list of 750 different colors defined within 869
|
|
16
16
|
names.
|
|
17
17
|
email:
|
|
18
18
|
- pedro.megastore@gmail.com
|
|
@@ -26,7 +26,11 @@ files:
|
|
|
26
26
|
- README.md
|
|
27
27
|
homepage: https://github.com/P3t3rU5/pigment
|
|
28
28
|
licenses: []
|
|
29
|
-
post_install_message:
|
|
29
|
+
post_install_message: ! "+---------------------------------------------------+\n Thanks
|
|
30
|
+
for choosing Pigment.\n\n =================================================\n 0.1.10
|
|
31
|
+
Changes:\n - Fixed to_floats to use dup.\n - Added Transparent Color\n =================================================\n\n
|
|
32
|
+
\ If you like what you see, support us on Pledgie:\n http://www.pledgie.com/campaigns/18945\n\n
|
|
33
|
+
\ If you find any bugs, please report them on\n https://github.com/P3t3rU5/pigment/issues\n\n+---------------------------------------------------+\n"
|
|
30
34
|
rdoc_options: []
|
|
31
35
|
require_paths:
|
|
32
36
|
- lib
|
|
@@ -47,6 +51,6 @@ rubyforge_project:
|
|
|
47
51
|
rubygems_version: 1.8.24
|
|
48
52
|
signing_key:
|
|
49
53
|
specification_version: 3
|
|
50
|
-
summary: A rgb color gem, with a list of 750
|
|
54
|
+
summary: A rgb color gem, with a list of 750 different colors.
|
|
51
55
|
test_files: []
|
|
52
56
|
has_rdoc:
|