rainbow 2.2.2 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,22 +0,0 @@
1
- require 'rubygems'
2
- require 'rubygems/command'
3
- require 'rubygems/dependency_installer'
4
-
5
- begin
6
- Gem::Command.build_args = ARGV
7
- rescue NoMethodError
8
- exit 1
9
- end
10
-
11
- installer = Gem::DependencyInstaller.new
12
-
13
- begin
14
- if RUBY_PLATFORM =~ /mswin|cygwin|mingw/ && RUBY_VERSION.to_i < 2
15
- installer.install('windows-pr')
16
- installer.install('win32console')
17
- end
18
- rescue
19
- exit 1
20
- end
21
-
22
- File.write(File.join(File.dirname(__FILE__), 'Rakefile'), "task :default\n")
@@ -1,15 +0,0 @@
1
- module Sickill
2
- module Rainbow
3
-
4
- def self.enabled=(value)
5
- STDERR.puts("Rainbow gem notice: Sickill::Rainbow.enabled= is " \
6
- "deprecated, use Rainbow.enabled= instead.")
7
- ::Rainbow.enabled = value
8
- end
9
-
10
- def self.enabled
11
- ::Rainbow.enabled
12
- end
13
-
14
- end
15
- end
@@ -1,31 +0,0 @@
1
- require 'spec_helper'
2
- require 'rainbow'
3
-
4
- describe Sickill::Rainbow do
5
-
6
- describe '.enabled' do
7
- before do
8
- ::Rainbow.enabled = :nope
9
- end
10
-
11
- it 'returns ::Rainbow.enabled' do
12
- expect(Sickill::Rainbow.enabled).to eq(:nope)
13
- end
14
- end
15
-
16
- describe '.enabled=' do
17
- before do
18
- allow(STDERR).to receive(:puts)
19
- Sickill::Rainbow.enabled = :yep
20
- end
21
-
22
- it 'sets ::Rainbow.enabled=' do
23
- expect(::Rainbow.enabled).to eq(:yep)
24
- end
25
-
26
- it 'prints the deprecation notice' do
27
- expect(STDERR).to have_received(:puts)
28
- end
29
- end
30
-
31
- end