colorize 0.8.0 → 0.8.1

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: 0be0a115e11c6219ca857f092e1ff9b066242644
4
- data.tar.gz: c223c4263dd10b8446ce5a07940233d754b5c70d
3
+ metadata.gz: 2f9aa60a1408f5b8cf800bd6d48d0778d6306fdd
4
+ data.tar.gz: f08adfa6e15d4bc0eb1f553451d96ecf69070c11
5
5
  SHA512:
6
- metadata.gz: 8e6b4c310dda218b54beb32fc4117de4d6ff080cf3966bcfa83302af56de3806ab0032df29764838800802adbff81482eb00b60614eb7b8e4720bba329762b9e
7
- data.tar.gz: e080a425e29bb91a6763c9fb120391d43b3aca8f8c5887b8a105d2c84145bf86bbfaf3a7c3ec33bd51a0c065a9025d87d984258323250304555b7869f90e301d
6
+ metadata.gz: 2d49b0c6362a92b525c7d1fdb0209f6fbfdfc61f720190d75f5ceef96338faa98358ce70e94bfe0a7a86f33f6036ae19e6ca9ce29dbbcfd59b3e2a3ee52d8a72
7
+ data.tar.gz: 674694aef0a11430782f9d888b0b39a3365a8730144d0be759151977fd3b30b2a6c2041d8699438d2fbbfe5db57733bc4a018f6a6344a1f3a4cd590d47bf274c
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.8.1 / 2016-06-29
2
+ * fix gemspec bug
3
+
1
4
  == 0.8.0 / 2016-06-27
2
5
  * add ColorizedString class
3
6
  * update README file
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'colorize'
3
- s.version = '0.8.0'
3
+ s.version = '0.8.1'
4
4
 
5
5
  s.authors = ['Michał Kalbarczyk']
6
6
  s.email = 'fazibear@gmail.com'
@@ -25,6 +25,7 @@ Gem::Specification.new do |s|
25
25
  'Rakefile',
26
26
  'colorize.gemspec',
27
27
  'lib/colorize.rb',
28
+ 'lib/colorized_string.rb',
28
29
  'lib/colorize/class_methods.rb',
29
30
  'lib/colorize/instance_methods.rb',
30
31
  'test/test_colorize.rb',
@@ -0,0 +1,19 @@
1
+ require File.expand_path('colorize/class_methods', File.dirname(__FILE__))
2
+ require File.expand_path('colorize/instance_methods', File.dirname(__FILE__))
3
+ #
4
+ # ColorizedString class extension.
5
+ #
6
+ class ColorizedString < String
7
+ extend Colorize::ClassMethods
8
+ include Colorize::InstanceMethods
9
+
10
+ color_methods
11
+ modes_methods
12
+
13
+ #
14
+ # Sortcut to create ColorizedString with ColorizedString['test'].
15
+ #
16
+ def self.[](string)
17
+ ColorizedString.new(string)
18
+ end
19
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: colorize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michał Kalbarczyk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-27 00:00:00.000000000 Z
11
+ date: 2016-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -67,6 +67,7 @@ files:
67
67
  - lib/colorize.rb
68
68
  - lib/colorize/class_methods.rb
69
69
  - lib/colorize/instance_methods.rb
70
+ - lib/colorized_string.rb
70
71
  - test/test_colorize.rb
71
72
  homepage: http://github.com/fazibear/colorize
72
73
  licenses: