rainbow_colors 0.3.2 → 0.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4d8d8f6c2899b9819b869f51828dcae8ff06abe
4
- data.tar.gz: 4a812669dccf064e01196fd0a71ab9dd2c6aaac2
3
+ metadata.gz: 3b61f892b54cd4f7da4dc1c8b0f5e99e28cf902f
4
+ data.tar.gz: 61662f851ae5628307f1a380de1d7e754d8bdb77
5
5
  SHA512:
6
- metadata.gz: 2ecba92f753ffa332e9290ec3bf9f1ae07c7fe5b72f8fff9b3ec686bf6b09697c594de22f4b6efc5a407dc8b3850a7b960186697f5bbcc8a8dec8906562c227f
7
- data.tar.gz: 753cc81cf2dec369c3643ab975770979456775533daacf6e03239608fa9fd289fdc7acd38bd9341ca50638efbec58fc4025e3a1420a68b89fc3f89fc2293beba
6
+ metadata.gz: 86540337d8d915bcc07186554fb451f2552912eb571d72b753f3388221acca928ca78a548593ef9426be224bee397a81dabf77fc730fd3f412d027abdbf25b26
7
+ data.tar.gz: 36ab250547a4eceef914702d2fe560d4e84d039f5bb65ee504b6cf67ccb0ae12f8a028e7b40a4d99c61e30329ea484de10d39b86aba64e047c538ef602609b92
@@ -9,7 +9,7 @@ module RainbowColors
9
9
  end
10
10
 
11
11
  def self.adjust_saturation(colors, variance)
12
- colors.map! do |c|
12
+ colors = colors.map do |c|
13
13
  hsl = RainbowColors::Convertor.hsl_from_hex c
14
14
  if variance > 0
15
15
  hsl[:saturation] = hsl[:saturation] + variance if hsl[:saturation] + variance <= 100
@@ -35,7 +35,7 @@ module RainbowColors
35
35
 
36
36
  def self.color_accent(color_scheme, color_background)
37
37
  bg = RainbowColors::Convertor.rgb_from_hex color_background
38
- color_scheme.map! { |hex| RainbowColors::Convertor.rgb_from_hex(hex) }
38
+ color_scheme = color_scheme.map { |hex| RainbowColors::Convertor.rgb_from_hex(hex) }
39
39
 
40
40
  contrast_colors = []
41
41
  color_scheme.each do |c|
@@ -1,3 +1,3 @@
1
1
  module RainbowColors
2
- VERSION = "0.3.2".freeze
2
+ VERSION = "0.3.3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rainbow_colors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ashish Kumar
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-03-09 00:00:00.000000000 Z
12
+ date: 2016-03-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rmagick