rainbow 1.99.1 → 1.99.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b0bc1801f960efaed6eabd94cd757e0cbe722652
4
- data.tar.gz: 2dad299611e1e8624548ff9392edbf47e8387261
3
+ metadata.gz: cb3910912fab41b3d9e26d64011f8a66832ed388
4
+ data.tar.gz: b64ec3a33953e13ce1215a5bdda8750a013fb2de
5
5
  SHA512:
6
- metadata.gz: 0eeb4d8862a768369d6e3e957a9cffad58aa1e5bd259a6e04fdead2387f4ebc649e35181e4ce4fff2670849aa4a995819bd5dcb1d411f19e66bf534c04730863
7
- data.tar.gz: 6fbcd166b88afa5ff0ade32320a9e8e3d0c381adbd56581452bdb31b5c19be21cc220d5b01a994e710deb6bbb78b07b82f51d07033daa04b1de1f97a0bdaf54f
6
+ metadata.gz: a681a15d3f2ecbb3b3d7758961b5ba0b39fefdc6a8b4e7ada9627567c2ea2793edbdb3dd8120ae33b5e94ea39648d0fa84d3b01973dc944e267945834541d566
7
+ data.tar.gz: 7caeccfe18b3229c1e4da06ec4d1a606a48ebb1125020e04239ad3dad4f62e039192ee41da1a9eee0158e88759f1e70ceec4d24ea8d2665ea819f1be39555b7f
@@ -1,5 +1,6 @@
1
1
  bundler_args: --without guard
2
2
  rvm:
3
+ - 1.8.7
3
4
  - 1.9.2
4
5
  - 1.9.3
5
6
  - 2.0.0
@@ -57,3 +57,7 @@
57
57
  * `require "rainbow/string"` -> `require "rainbow/ext/string"`
58
58
  * custom rainbow wrapper instances (with separate enabled/disabled state)
59
59
  * shortcut methods for changing text color (`Rainbow("foo").red`)
60
+
61
+ ## 1.99.2 (2014-01-24)
62
+
63
+ * bring back ruby 1.8 support
data/Gemfile CHANGED
@@ -3,8 +3,8 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in rainbow.gemspec
4
4
  gemspec
5
5
 
6
- gem 'coveralls', require: false
7
- gem 'mime-types', '< 2.0.0', platforms: [:ruby_18]
6
+ gem 'coveralls', :require => false
7
+ gem 'mime-types', '< 2.0.0', :platforms => [:ruby_18]
8
8
 
9
9
  group :guard do
10
10
  gem 'guard'
@@ -12,6 +12,6 @@ group :guard do
12
12
  end
13
13
 
14
14
  platform :rbx do
15
+ gem 'json'
15
16
  gem 'rubysl'
16
- gem 'rubysl-json'
17
17
  end
data/Guardfile CHANGED
@@ -1,7 +1,7 @@
1
1
  # A sample Guardfile
2
2
  # More info at https://github.com/guard/guard#readme
3
3
 
4
- guard :rspec, cmd: 'rspec --color' do
4
+ guard :rspec, :cmd => 'rspec --color' do
5
5
  watch(%r{^spec/.+_spec\.rb$})
6
6
  watch(%r{^lib/(.+)\.rb$}) { "spec" }
7
7
  watch('spec/spec_helper.rb') { "spec" }
@@ -52,15 +52,15 @@ module Rainbow
52
52
  class Named < Indexed
53
53
 
54
54
  NAMES = {
55
- black: 0,
56
- red: 1,
57
- green: 2,
58
- yellow: 3,
59
- blue: 4,
60
- magenta: 5,
61
- cyan: 6,
62
- white: 7,
63
- default: 9,
55
+ :black => 0,
56
+ :red => 1,
57
+ :green => 2,
58
+ :yellow => 3,
59
+ :blue => 4,
60
+ :magenta => 5,
61
+ :cyan => 6,
62
+ :white => 7,
63
+ :default => 9,
64
64
  }
65
65
 
66
66
  def initialize(ground, name)
@@ -6,13 +6,13 @@ module Rainbow
6
6
  class Presenter < ::String
7
7
 
8
8
  TERM_EFFECTS = {
9
- reset: 0,
10
- bright: 1,
11
- italic: 3,
12
- underline: 4,
13
- blink: 5,
14
- inverse: 7,
15
- hide: 8,
9
+ :reset => 0,
10
+ :bright => 1,
11
+ :italic => 3,
12
+ :underline => 4,
13
+ :blink => 5,
14
+ :inverse => 7,
15
+ :hide => 8,
16
16
  }
17
17
 
18
18
  # Sets color of this text.
@@ -1,3 +1,3 @@
1
1
  module Rainbow
2
- VERSION = "1.99.1".freeze
2
+ VERSION = "1.99.2".freeze
3
3
  end
@@ -4,15 +4,14 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'rainbow/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "rainbow"
8
- spec.version = Rainbow::VERSION
9
- spec.authors = ["Marcin Kulik"]
10
- spec.email = ["m@ku1ik.com"]
11
- spec.description = %q{Colorize printed text on ANSI terminals}
12
- spec.summary = %q{Colorize printed text on ANSI terminals}
13
- spec.homepage = "https://github.com/sickill/rainbow"
14
- spec.license = "MIT"
15
- spec.required_ruby_version = '>= 1.9.2'
7
+ spec.name = "rainbow"
8
+ spec.version = Rainbow::VERSION
9
+ spec.authors = ["Marcin Kulik"]
10
+ spec.email = ["m@ku1ik.com"]
11
+ spec.description = %q{Colorize printed text on ANSI terminals}
12
+ spec.summary = %q{Colorize printed text on ANSI terminals}
13
+ spec.homepage = "https://github.com/sickill/rainbow"
14
+ spec.license = "MIT"
16
15
 
17
16
  spec.files = `git ls-files`.split($/)
18
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
@@ -1,7 +1,7 @@
1
1
  shared_examples_for "presenter with shortcut color methods" do
2
2
  [:black, :red, :green, :yellow, :blue, :magenta, :cyan, :white].each do |name|
3
3
  describe "##{name}" do
4
- subject { presenter.public_send(name) }
4
+ subject { presenter.send(name) }
5
5
 
6
6
  it { should eq(presenter.color(name)) }
7
7
  end
@@ -17,7 +17,7 @@ module Rainbow
17
17
  end
18
18
 
19
19
  shared_examples_for "text color method" do
20
- let(:color) { double('color', codes: [1, 2]) }
20
+ let(:color) { double('color', :codes => [1, 2]) }
21
21
 
22
22
  before do
23
23
  allow(Color).to receive(:build).
@@ -34,7 +34,7 @@ module Rainbow
34
34
  end
35
35
 
36
36
  shared_examples_for "text background method" do
37
- let(:color) { double('color', codes: [1, 2]) }
37
+ let(:color) { double('color', :codes => [1, 2]) }
38
38
 
39
39
  before do
40
40
  allow(Color).to receive(:build).
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rainbow
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.99.1
4
+ version: 1.99.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Kulik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-28 00:00:00.000000000 Z
11
+ date: 2014-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -102,7 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - '>='
104
104
  - !ruby/object:Gem::Version
105
- version: 1.9.2
105
+ version: '0'
106
106
  required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - '>='