colorable 0.0.3 → 0.0.4

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8a4a1f54afeb206a7c833d741172a8f4886d668d
4
+ data.tar.gz: 03240466ab3c82a9adf566349858bee303cc7968
5
+ SHA512:
6
+ metadata.gz: 58bc7a8448a6135f7a0471eeaa03bdbe3bea4c2450f7f85ffecadc96477438bbe6cc39bc5f561a0378185d7a79fc2e5fdf4f51c04b4b5f78c25d53bbcb0b22ed
7
+ data.tar.gz: e3eecb0216ed4ba8d0eeef6c6c6b81ba46574d4a05364d9b7bf0ae45a5487100fb9a032293d0adbb119d7216870d1660d2b39771788d686981041f85d6c340a9
@@ -22,6 +22,7 @@ module Colorable
22
22
  def to_s
23
23
  "rgb(%i,%i,%i)" % rgb
24
24
  end
25
+ alias :inspect :to_s
25
26
 
26
27
  def hex
27
28
  @hex ||= rgb2hex(rgb)
@@ -1,3 +1,3 @@
1
1
  module Colorable
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: colorable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
4
+ version: 0.0.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - kyoendo
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-11-06 00:00:00.000000000 Z
11
+ date: 2013-02-26 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  description: A simple color handler which provide a conversion between colorname,
@@ -53,27 +50,26 @@ files:
53
50
  - spec/spec_helper.rb
54
51
  homepage: https://github.com/melborne/colorable
55
52
  licenses: []
53
+ metadata: {}
56
54
  post_install_message:
57
55
  rdoc_options: []
58
56
  require_paths:
59
57
  - lib
60
58
  required_ruby_version: !ruby/object:Gem::Requirement
61
- none: false
62
59
  requirements:
63
- - - ! '>='
60
+ - - '>='
64
61
  - !ruby/object:Gem::Version
65
62
  version: 1.9.3
66
63
  required_rubygems_version: !ruby/object:Gem::Requirement
67
- none: false
68
64
  requirements:
69
- - - ! '>='
65
+ - - '>='
70
66
  - !ruby/object:Gem::Version
71
67
  version: '0'
72
68
  requirements: []
73
69
  rubyforge_project:
74
- rubygems_version: 1.8.24
70
+ rubygems_version: 2.0.0
75
71
  signing_key:
76
- specification_version: 3
72
+ specification_version: 4
77
73
  summary: A simple color handler which provide a conversion between colorname, RGB,
78
74
  HSB and HEX
79
75
  test_files:
@@ -81,4 +77,3 @@ test_files:
81
77
  - spec/colorset_spec.rb
82
78
  - spec/converter_spec.rb
83
79
  - spec/spec_helper.rb
84
- has_rdoc: