tco 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tco.rb +5 -0
  3. data/lib/tco/version.rb +1 -1
  4. data/tco.gemspec +3 -3
  5. metadata +7 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 12351cb4064a59b640275e0d2d082b6d482f0c7b
4
- data.tar.gz: b018ed8395f12669c6aa6cd6162ed31637f3f1ff
3
+ metadata.gz: d94c6ddbd536b74cd25cc231c709cf38e88b6b16
4
+ data.tar.gz: 53aa0ae27bf98217b2f98b81b5d3291907e2ae02
5
5
  SHA512:
6
- metadata.gz: a1e5e287d3c4d83ead4a8fcf6f70619e41e085b47b3213d45e70dd9abaf5968f343a5d4dfb407563e5a5c320ee4d620f1f940f4c00f702b91e840e1095fd9b20
7
- data.tar.gz: 3e82b3277a5bc26f1ec4582a342a3e2d7b26a09d134358fd47cdd3807be16df176e696c74c6b130bb6cf2c75ec859ab7e8cdcbe828602c5fc0cbdf7da3b78ed7
6
+ metadata.gz: 74f8a0dd68a6bd04f7d8f217d8aff93f90775a66e3b49f3a29f7cfbf383b4e98939e67749f37800285776f6adbd14d0348cd1b3b78239a8839cbaf3d80b250da
7
+ data.tar.gz: 94bbd51b9edfe6e51d6bdb7030807d347da952a992684a52311b021f2cc8587b6f0ca54e20956d02b9931ff4f9b857f1ee4e478c9ed137b4a4b232464bd411ac
data/lib/tco.rb CHANGED
@@ -101,6 +101,11 @@ module Tco
101
101
  @colouring = Colouring.new config
102
102
  end
103
103
 
104
+ def self.match_colour(colour_spec)
105
+ colour = @colouring.get_colour_instance colour_spec
106
+ @colouring.palette.match_colour colour
107
+ end
108
+
104
109
  def self.show_matching_colour(colour_spec)
105
110
  colour = @colouring.get_colour_instance colour_spec
106
111
  colour_index = @colouring.palette.match_colour colour
@@ -22,5 +22,5 @@
22
22
  # THE SOFTWARE.
23
23
 
24
24
  module Tco
25
- VERSION = "0.1.6"
25
+ VERSION = "0.1.7"
26
26
  end
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
23
23
  s.require_paths = ["lib"]
24
24
 
25
- s.add_development_dependency "bundler", "~> 1.5"
26
- s.add_development_dependency 'rake'
27
- s.add_development_dependency 'rspec'
25
+ s.add_development_dependency 'bundler', '~> 1.5'
26
+ s.add_development_dependency 'rake', '~> 0'
27
+ s.add_development_dependency 'rspec', '~> 0'
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Radek Pazdera
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-26 00:00:00.000000000 Z
11
+ date: 2015-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -28,28 +28,28 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: |-
@@ -120,3 +120,4 @@ test_files:
120
120
  - spec/string_ext_spec.rb
121
121
  - spec/tco_spec.rb
122
122
  - spec/utils.rb
123
+ has_rdoc: