rainbow 2.1.0 → 3.1.0

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
- SHA1:
3
- metadata.gz: e50d4d60cddebd63162aa542384109c229e019b4
4
- data.tar.gz: 5240ea5388eb6b8df8715227cd2830dc9cba19db
2
+ SHA256:
3
+ metadata.gz: 8a63baad6cad3bf3127e8dfbfb9393f05b6a92122af6f1fd7b3cf5ffe44b4e05
4
+ data.tar.gz: 8db71093ce37873fa8b009981488cce3ee63cfad85365dd96f416dc4790d4d97
5
5
  SHA512:
6
- metadata.gz: 4953dabd646d05ea36be2d0e4d4d8b4f1eb070a3bf0576413ab31335e8513302deb8399e8fc111de20948e049f8e3b17a8fd081bafca36455c5bc1721dec05b7
7
- data.tar.gz: 7fdee7a80bd1ee2292e274d7e0694a79a03d6f7f99d004d79b21eb88e3f3e1d5d22f9bfb81f478cbbd5505c8c7b10ba95bcdb6aa952a9275c684930abde1ab42
6
+ metadata.gz: c5d8c29b3d25fcc2a85919143a628e2de3250beb08ec10c228c5fe2b759af567b962e9c78b65bc9fc39db33b643af4556cb05565e45027f25695e2ee1275a115
7
+ data.tar.gz: 2872ac2c71afebbfb362b86e93f03b3b7b0fe376497fdcd4ce4ce296fa03be4521ca0ed84de3ef24228783842bdff17f4ce3c2f79ad4cfe6faa9896b25e229af
data/Changelog.md CHANGED
@@ -1,47 +1,53 @@
1
1
  # Rainbow changelog
2
2
 
3
- ## 1.0.0 (2008-7-21)
3
+ ## 3.1.0 (2020-08-26)
4
4
 
5
- * initial version
5
+ - added `cross_out` aka `strike`
6
+ - hexadecimal color names supported better, see #83
7
+ - gemspec: list files using a Ruby expression, avoiding git
6
8
 
7
- ## 1.0.1 (2009-3-19)
9
+ ## 3.0.0 (2017-11-29)
8
10
 
9
- * Windows support
11
+ * added String refinement
12
+ * added new `Rainbow.uncolor` method
13
+ * dropped MRI 1.9.3 compatibility
14
+ * dropped MRI 2.0 compatibility
15
+ * removed Rake dependency
10
16
 
11
- ## 1.0.2 (2009-5-15)
17
+ ## 2.2.2 (2017-04-21)
12
18
 
13
- * improved support for ruby 1.8.6 and 1.9.1
19
+ * added explicit rake dependency to fix installation issue
14
20
 
15
- ## 1.0.3 (2009-7-26)
21
+ ## 2.2.1 (2016-12-28)
16
22
 
17
- * rainbow methods don't mutate the original string object anymore
23
+ * fixed gem installation (2.2.0 was a broken release)
18
24
 
19
- ## 1.0.4 (2009-11-27)
20
-
21
- * support for 256 colors
25
+ ## 2.2.0 (2016-12-27)
22
26
 
23
- ## 1.1 (2010-6-7)
24
-
25
- * option for enabling/disabling of escape code wrapping
26
- * auto-disabling when STDOUT is not a TTY
27
+ * improved Windows support
28
+ * added Ruby 2.4 support
29
+ * added `bold` alias method for `bright`
27
30
 
28
- ## 1.1.1 (2011-2-7)
31
+ ## 2.1.0 (2016-01-24)
29
32
 
33
+ * added X11 color support
34
+ * fixed `require` issue when rainbow is used as a dependency in another gem
30
35
  * improved Windows support
31
36
 
32
- ## 1.1.2 (2011-11-13)
37
+ ## 2.0.0 (2014-01-24)
33
38
 
34
- * improved compatibility with MRI 1.9.3
39
+ * disable string mixin by default
35
40
 
36
- ## 1.1.3 (2011-12-6)
41
+ ## 1.99.2 (2014-01-24)
37
42
 
38
- * improved compatibility with MRI 1.8.7
39
- * fix for regression with regards to original string mutation
43
+ * bring back ruby 1.8 support
40
44
 
41
- ## 1.1.4 (2012-4-28)
45
+ ## 1.99.1 (2013-12-28)
42
46
 
43
- * option for forcing coloring even when STDOUT is not a TTY (CLICOLOR_FORCE env var)
44
- * fix for frozen strings
47
+ * drop support for ruby 1.8
48
+ * `require "rainbow/string"` -> `require "rainbow/ext/string"`
49
+ * custom rainbow wrapper instances (with separate enabled/disabled state)
50
+ * shortcut methods for changing text color (`Rainbow("foo").red`)
45
51
 
46
52
  ## 1.99.0 (2013-12-26)
47
53
 
@@ -51,23 +57,45 @@
51
57
  * support for MRI 1.8.7, 1.9.2, 1.9.3, 2.0 and 2.1, JRuby and Rubinius
52
58
  * deprecation of Sickill::Rainbow namespace (use Rainbow.enabled = true instead)
53
59
 
54
- ## 1.99.1 (2013-12-28)
60
+ ## 1.1.4 (2012-4-28)
55
61
 
56
- * drop support for ruby 1.8
57
- * `require "rainbow/string"` -> `require "rainbow/ext/string"`
58
- * custom rainbow wrapper instances (with separate enabled/disabled state)
59
- * shortcut methods for changing text color (`Rainbow("foo").red`)
62
+ * option for forcing coloring even when STDOUT is not a TTY (CLICOLOR_FORCE env var)
63
+ * fix for frozen strings
60
64
 
61
- ## 1.99.2 (2014-01-24)
65
+ ## 1.1.3 (2011-12-6)
62
66
 
63
- * bring back ruby 1.8 support
67
+ * improved compatibility with MRI 1.8.7
68
+ * fix for regression with regards to original string mutation
64
69
 
65
- ## 2.0.0 (2014-01-24)
70
+ ## 1.1.2 (2011-11-13)
66
71
 
67
- * disable string mixin by default
72
+ * improved compatibility with MRI 1.9.3
68
73
 
69
- ## 2.1.0 (2016-01-24)
74
+ ## 1.1.1 (2011-2-7)
70
75
 
71
- * added X11 color support
72
- * fixed `require` issue when rainbow is used as a dependency in another gem
73
76
  * improved Windows support
77
+
78
+ ## 1.1 (2010-6-7)
79
+
80
+ * option for enabling/disabling of escape code wrapping
81
+ * auto-disabling when STDOUT is not a TTY
82
+
83
+ ## 1.0.4 (2009-11-27)
84
+
85
+ * support for 256 colors
86
+
87
+ ## 1.0.3 (2009-7-26)
88
+
89
+ * rainbow methods don't mutate the original string object anymore
90
+
91
+ ## 1.0.2 (2009-5-15)
92
+
93
+ * improved support for ruby 1.8.6 and 1.9.1
94
+
95
+ ## 1.0.1 (2009-3-19)
96
+
97
+ * Windows support
98
+
99
+ ## 1.0.0 (2008-7-21)
100
+
101
+ * initial version
data/README.markdown CHANGED
@@ -1,8 +1,10 @@
1
1
  # Rainbow
2
2
 
3
- [![Build Status](https://travis-ci.org/sickill/rainbow.png?branch=master)](https://travis-ci.org/sickill/rainbow)
4
- [![Code Climate](https://codeclimate.com/github/sickill/rainbow.png)](https://codeclimate.com/github/sickill/rainbow)
5
- [![Coverage Status](https://coveralls.io/repos/sickill/rainbow/badge.png)](https://coveralls.io/r/sickill/rainbow)
3
+ [![Gem Version](https://badge.fury.io/rb/rainbow.svg)](https://rubygems.org/gems/rainbow)
4
+ [![Build Status](https://travis-ci.org/sickill/rainbow.svg?branch=master)](https://travis-ci.org/sickill/rainbow)
5
+ [![Build status](https://ci.appveyor.com/api/projects/status/vq4acb2c38642s5q?svg=true)](https://ci.appveyor.com/project/sickill/rainbow)
6
+ [![Code Climate](https://codeclimate.com/github/sickill/rainbow.svg)](https://codeclimate.com/github/sickill/rainbow)
7
+ [![Coverage Status](https://coveralls.io/repos/sickill/rainbow/badge.svg)](https://coveralls.io/r/sickill/rainbow)
6
8
 
7
9
  Rainbow is a ruby gem for colorizing printed text on ANSI terminals.
8
10
 
@@ -27,6 +29,10 @@ puts Rainbow("this is red").red + " and " + Rainbow("this on yellow bg").bg(:yel
27
29
  # => "\e[31mthis is red\e[0m and \e[43mthis on yellow bg\e[0m and \e[4m\e[1meven bright underlined!\e[0m"
28
30
  ```
29
31
 
32
+ ![Screenshot of the previous code in a terminal](https://user-images.githubusercontent.com/132/132943811-93747cc5-bdaf-43a2-a1a4-a1f18e805eba.png)
33
+
34
+ Or, [watch this video example](https://asciinema.org/a/J928KpHoUQ0sl54ulOSOLE71E?rows=20&speed=2.5)
35
+
30
36
  ### Rainbow presenter API
31
37
 
32
38
  Rainbow presenter adds the following methods to presented string:
@@ -38,7 +44,9 @@ Rainbow presenter adds the following methods to presented string:
38
44
  * `blink`
39
45
  * `inverse`
40
46
  * `hide`
41
- * `italic` (not well supported by terminal emulators).
47
+ * `faint` (not well supported by terminal emulators)
48
+ * `italic` (not well supported by terminal emulators)
49
+ * `cross_out`, `strike`
42
50
 
43
51
  Text color can also be changed by calling a method named by a color:
44
52
 
@@ -62,28 +70,27 @@ calls:
62
70
  Rainbow("hola!").blue.bright.underline
63
71
  ```
64
72
 
65
- ### String mixin
73
+ ### Refinement
66
74
 
67
- If you don't like wrapping every string you want to colorize with `Rainbow()`
68
- you can include all the rainbow presenter methods directly in a String class by
69
- requiring `rainbow/ext/string`:
75
+ If you want to use the Refinements version, you can:
70
76
 
71
77
  ```ruby
72
- require 'rainbow/ext/string'
73
-
74
- puts "this is red".color(:red) + " and " + "this on yellow bg".background(:yellow) + " and " + "even bright underlined!".underline.bright
78
+ require 'rainbow/refinement'
79
+ using Rainbow
80
+ puts "Hi!".green
75
81
  ```
76
82
 
77
- This way of using Rainbow is not recommended though as it pollutes String's
78
- public interface with methods that are presentation specific.
79
-
80
- NOTE: the mixin doesn't include shortcut methods for changing text color, you
81
- should use "string".color(:blue) instead of "string".blue
83
+ Here's an IRB session example:
82
84
 
83
- NOTE: the mixin is included in String by default in rainbow 1.x versions.
84
- In rainbow 2.x the behavior was changed - if you're upgrading from 1.x to 2.x
85
- and you used direct String methods then you can either require the string
86
- extension as shown above or update your code to use the new presenter API.
85
+ ```
86
+ >> 'Hello, World!'.blue.bright.underline
87
+ NoMethodError: undefined method `blue' for "Hello, World!":String
88
+ (ripl):1:in `<main>'
89
+ >> using Rainbow
90
+ => main
91
+ >> 'Hello, World!'.blue.bright.underline
92
+ => "\e[34m\e[1m\e[4mHello, World!\e[0m"
93
+ ```
87
94
 
88
95
  ### Color specification
89
96
 
@@ -111,6 +118,20 @@ When you specify a color with a RGB triplet rainbow finds the nearest match
111
118
  from 256 colors palette. Note that it requires a 256-colors capable terminal to
112
119
  display correctly.
113
120
 
121
+ #### Example: Choose a random color
122
+
123
+ You can pick a random color with Rainbow, it's a one-liner:
124
+
125
+ ```ruby
126
+ colors = Range.new(0,7).to_a
127
+ "whoop dee doop".chars.map { |char| Rainbow(char).color(colors.sample) }.join
128
+ # => "\e[36mw\e[0m\e[37mh\e[0m\e[34mo\e[0m\e[34mo\e[0m\e[37mp\e[0m\e[34m \e[0m\e[36md\e[0m\e[33me\e[0m\e[34me\e[0m\e[37m \e[0m\e[32md\e[0m\e[35mo\e[0m\e[33mo\e[0m\e[36mp\e[0m"
129
+
130
+ colors = [:aliceblue, :antiquewhite, :aqua, :aquamarine, :azure, :beige, :bisque, :blanchedalmond, :blueviolet]
131
+ "whoop dee doop".chars.map { |char| Rainbow(char).color(colors.sample) }.join
132
+ # => "\e[38;5;135mw\e[0m\e[38;5;230mh\e[0m\e[38;5;231mo\e[0m\e[38;5;135mo\e[0m\e[38;5;231mp\e[0m\e[38;5;231m \e[0m\e[38;5;122md\e[0m\e[38;5;231me\e[0m\e[38;5;231me\e[0m\e[38;5;230m \e[0m\e[38;5;122md\e[0m\e[38;5;51mo\e[0m\e[38;5;51mo\e[0m\e[38;5;51mp\e[0m"
133
+ ```
134
+
114
135
  ### Configuration
115
136
 
116
137
  Rainbow can be enabled/disabled globally by setting:
@@ -153,16 +174,6 @@ colorize all the strings, even the ones that go through file writing
153
174
  formatters. You can easily solve that by disabling coloring for the Rainbow
154
175
  instances that are used by formatters with file output.
155
176
 
156
- ## Windows support
157
-
158
- For Windows support, you should install the following gems:
159
-
160
- ```ruby
161
- gem install windows-pr win32console
162
- ```
163
-
164
- If the above gems aren't installed then all strings are returned unmodified.
165
-
166
177
  ## Installation
167
178
 
168
179
  Add it to your Gemfile:
@@ -181,154 +192,35 @@ gem install rainbow
181
192
 
182
193
  ### ANSI colors
183
194
 
184
- * `black`
185
- * `red`
186
- * `green`
187
- * `yellow`
188
- * `blue`
189
- * `magenta`
190
- * `cyan`
191
- * `white`
195
+ `black`, `red`, `green`, `yellow`, `blue`, `magenta`, `cyan`, `white`
192
196
 
193
197
  ### X11 colors
194
198
 
195
- * `aqua`
196
- * `aquamarine`
197
- * `mediumaquamarine`
198
- * `azure`
199
- * `beige`
200
- * `bisque`
201
- * `blanchedalmond`
202
- * `darkblue`
203
- * `lightblue`
204
- * `mediumblue`
205
- * `aliceblue`
206
- * `cadetblue`
207
- * `dodgerblue`
208
- * `midnightblue`
209
- * `navyblue`
210
- * `powderblue`
211
- * `royalblue`
212
- * `skyblue`
213
- * `deepskyblue`
214
- * `lightskyblue`
215
- * `slateblue`
216
- * `darkslateblue`
217
- * `mediumslateblue`
218
- * `steelblue`
219
- * `lightsteelblue`
220
- * `brown`
221
- * `rosybrown`
222
- * `saddlebrown`
223
- * `sandybrown`
224
- * `burlywood`
225
- * `chartreuse`
226
- * `chocolate`
227
- * `coral`
228
- * `lightcoral`
229
- * `cornflower`
230
- * `cornsilk`
231
- * `crimson`
232
- * `darkcyan`
233
- * `lightcyan`
234
- * `firebrick`
235
- * `fuchsia`
236
- * `gainsboro`
237
- * `gold`
238
- * `goldenrod`
239
- * `darkgoldenrod`
240
- * `lightgoldenrod`
241
- * `palegoldenrod`
242
- * `gray`
243
- * `darkgray`
244
- * `dimgray`
245
- * `lightgray`
246
- * `slategray`
247
- * `lightslategray`
248
- * `webgray`
249
- * `darkgreen`
250
- * `lightgreen`
251
- * `palegreen`
252
- * `darkolivegreen`
253
- * `yellowgreen`
254
- * `forestgreen`
255
- * `lawngreen`
256
- * `limegreen`
257
- * `seagreen`
258
- * `darkseagreen`
259
- * `lightseagreen`
260
- * `mediumseagreen`
261
- * `springgreen`
262
- * `mediumspringgreen`
263
- * `webgreen`
264
- * `honeydew`
265
- * `indianred`
266
- * `indigo`
267
- * `ivory`
268
- * `khaki`
269
- * `darkkhaki`
270
- * `lavender`
271
- * `lavenderblush`
272
- * `lemonchiffon`
273
- * `lime`
274
- * `linen`
275
- * `darkmagenta`
276
- * `maroon`
277
- * `webmaroon`
278
- * `mintcream`
279
- * `mistyrose`
280
- * `moccasin`
281
- * `oldlace`
282
- * `olive`
283
- * `olivedrab`
284
- * `orange`
285
- * `darkorange`
286
- * `orchid`
287
- * `darkorchid`
288
- * `mediumorchid`
289
- * `papayawhip`
290
- * `peachpuff`
291
- * `peru`
292
- * `pink`
293
- * `deeppink`
294
- * `lightpink`
295
- * `hotpink`
296
- * `plum`
297
- * `purple`
298
- * `mediumpurple`
299
- * `rebeccapurple`
300
- * `webpurple`
301
- * `darkred`
302
- * `orangered`
303
- * `mediumvioletred`
304
- * `palevioletred`
305
- * `salmon`
306
- * `darksalmon`
307
- * `lightsalmon`
308
- * `seashell`
309
- * `sienna`
310
- * `silver`
311
- * `darkslategray`
312
- * `snow`
313
- * `tan`
314
- * `teal`
315
- * `thistle`
316
- * `tomato`
317
- * `turquoise`
318
- * `darkturquoise`
319
- * `mediumturquoise`
320
- * `paleturquoise`
321
- * `violet`
322
- * `darkviolet`
323
- * `blueviolet`
324
- * `wheat`
325
- * `antiquewhite`
326
- * `floralwhite`
327
- * `ghostwhite`
328
- * `navajowhite`
329
- * `whitesmoke`
330
- * `lightyellow`
331
- * `greenyellow`
199
+ `aliceblue`, `antiquewhite`, `aqua`, `aquamarine`, `azure`, `beige`, `bisque`,
200
+ `blanchedalmond`, `blueviolet`, `brown`, `burlywood`, `cadetblue`, `chartreuse`,
201
+ `chocolate`, `coral`, `cornflower`, `cornsilk`, `crimson`, `darkblue`,
202
+ `darkcyan`, `darkgoldenrod`, `darkgray`, `darkgreen`, `darkkhaki`,
203
+ `darkmagenta`, `darkolivegreen`, `darkorange`, `darkorchid`, `darkred`,
204
+ `darksalmon`, `darkseagreen`, `darkslateblue`, `darkslategray`, `darkturquoise`,
205
+ `darkviolet`, `deeppink`, `deepskyblue`, `dimgray`, `dodgerblue`, `firebrick`,
206
+ `floralwhite`, `forestgreen`, `fuchsia`, `gainsboro`, `ghostwhite`, `gold`,
207
+ `goldenrod`, `gray`, `greenyellow`, `honeydew`, `hotpink`, `indianred`,
208
+ `indigo`, `ivory`, `khaki`, `lavender`, `lavenderblush`, `lawngreen`,
209
+ `lemonchiffon`, `lightblue`, `lightcoral`, `lightcyan`, `lightgoldenrod`,
210
+ `lightgray`, `lightgreen`, `lightpink`, `lightsalmon`, `lightseagreen`,
211
+ `lightskyblue`, `lightslategray`, `lightsteelblue`, `lightyellow`, `lime`,
212
+ `limegreen`, `linen`, `maroon`, `mediumaquamarine`, `mediumblue`,
213
+ `mediumorchid`, `mediumpurple`, `mediumseagreen`, `mediumslateblue`,
214
+ `mediumspringgreen`, `mediumturquoise`, `mediumvioletred`, `midnightblue`,
215
+ `mintcream`, `mistyrose`, `moccasin`, `navajowhite`, `navyblue`, `oldlace`,
216
+ `olive`, `olivedrab`, `orange`, `orangered`, `orchid`, `palegoldenrod`,
217
+ `palegreen`, `paleturquoise`, `palevioletred`, `papayawhip`, `peachpuff`,
218
+ `peru`, `pink`, `plum`, `powderblue`, `purple`, `rebeccapurple`, `rosybrown`,
219
+ `royalblue`, `saddlebrown`, `salmon`, `sandybrown`, `seagreen`, `seashell`,
220
+ `sienna`, `silver`, `skyblue`, `slateblue`, `slategray`, `snow`, `springgreen`,
221
+ `steelblue`, `tan`, `teal`, `thistle`, `tomato`, `turquoise`, `violet`,
222
+ `webgray`, `webgreen`, `webmaroon`, `webpurple`, `wheat`, `whitesmoke`,
223
+ `yellowgreen`
332
224
 
333
225
  ## Authors
334
226
 
metadata CHANGED
@@ -1,29 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rainbow
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Kulik
8
- autorequire:
8
+ - Olle Jonsson
9
+ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2016-01-24 00:00:00.000000000 Z
12
+ date: 2022-01-11 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
- - - "~>"
18
+ - - ">="
18
19
  - !ruby/object:Gem::Version
19
20
  version: '1.3'
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: '3'
20
24
  type: :development
21
25
  prerelease: false
22
26
  version_requirements: !ruby/object:Gem::Requirement
23
27
  requirements:
24
- - - "~>"
28
+ - - ">="
25
29
  - !ruby/object:Gem::Version
26
30
  version: '1.3'
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '3'
27
34
  description: Colorize printed text on ANSI terminals
28
35
  email:
29
36
  - m@ku1ik.com
@@ -31,43 +38,14 @@ executables: []
31
38
  extensions: []
32
39
  extra_rdoc_files: []
33
40
  files:
34
- - ".gitignore"
35
- - ".rubocop.yml"
36
- - ".travis.yml"
37
41
  - Changelog.md
38
- - Gemfile
39
- - Guardfile
40
42
  - LICENSE
41
43
  - README.markdown
42
- - Rakefile
43
- - lib/rainbow.rb
44
- - lib/rainbow/color.rb
45
- - lib/rainbow/ext/string.rb
46
- - lib/rainbow/global.rb
47
- - lib/rainbow/legacy.rb
48
- - lib/rainbow/null_presenter.rb
49
- - lib/rainbow/presenter.rb
50
- - lib/rainbow/string_utils.rb
51
- - lib/rainbow/version.rb
52
- - lib/rainbow/wrapper.rb
53
- - lib/rainbow/x11_color_names.rb
54
- - rainbow.gemspec
55
- - spec/integration/instance_spec.rb
56
- - spec/integration/rainbow_spec.rb
57
- - spec/integration/string_spec.rb
58
- - spec/spec_helper.rb
59
- - spec/support/presenter_shared_examples.rb
60
- - spec/unit/color_spec.rb
61
- - spec/unit/namespace_spec.rb
62
- - spec/unit/null_presenter_spec.rb
63
- - spec/unit/presenter_spec.rb
64
- - spec/unit/string_utils_spec.rb
65
- - spec/unit/wrapper_spec.rb
66
44
  homepage: https://github.com/sickill/rainbow
67
45
  licenses:
68
46
  - MIT
69
47
  metadata: {}
70
- post_install_message:
48
+ post_install_message:
71
49
  rdoc_options: []
72
50
  require_paths:
73
51
  - lib
@@ -75,27 +53,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
53
  requirements:
76
54
  - - ">="
77
55
  - !ruby/object:Gem::Version
78
- version: 1.9.2
56
+ version: 2.3.0
79
57
  required_rubygems_version: !ruby/object:Gem::Requirement
80
58
  requirements:
81
59
  - - ">="
82
60
  - !ruby/object:Gem::Version
83
61
  version: '0'
84
62
  requirements: []
85
- rubyforge_project:
86
- rubygems_version: 2.2.2
87
- signing_key:
63
+ rubygems_version: 3.0.9
64
+ signing_key:
88
65
  specification_version: 4
89
66
  summary: Colorize printed text on ANSI terminals
90
- test_files:
91
- - spec/integration/instance_spec.rb
92
- - spec/integration/rainbow_spec.rb
93
- - spec/integration/string_spec.rb
94
- - spec/spec_helper.rb
95
- - spec/support/presenter_shared_examples.rb
96
- - spec/unit/color_spec.rb
97
- - spec/unit/namespace_spec.rb
98
- - spec/unit/null_presenter_spec.rb
99
- - spec/unit/presenter_spec.rb
100
- - spec/unit/string_utils_spec.rb
101
- - spec/unit/wrapper_spec.rb
67
+ test_files: []
data/.gitignore DELETED
@@ -1,17 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
data/.rubocop.yml DELETED
@@ -1,14 +0,0 @@
1
- Documentation:
2
- Enabled: false
3
-
4
- EmptyLinesAroundBody:
5
- Enabled: false
6
-
7
- HashSyntax:
8
- Enabled: false
9
-
10
- MethodName:
11
- Enabled: false
12
-
13
- StringLiterals:
14
- Enabled: false
data/.travis.yml DELETED
@@ -1,11 +0,0 @@
1
- bundler_args: --without guard development
2
- rvm:
3
- - 1.9.2
4
- - 1.9.3
5
- - 2.0.0
6
- - 2.1.0
7
- - rbx
8
- - jruby
9
-
10
- script: "bundle exec rake"
11
- sudo: false
data/Gemfile DELETED
@@ -1,23 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in rainbow.gemspec
4
- gemspec
5
-
6
- gem 'rake'
7
- gem 'coveralls', require: false
8
- gem 'mime-types', '< 2.0.0', platforms: [:ruby_18]
9
- gem 'rspec', '3.0.0beta2'
10
-
11
- group :development do
12
- gem 'mutant-rspec'
13
- end
14
-
15
- group :guard do
16
- gem 'guard'
17
- gem 'guard-rspec'
18
- end
19
-
20
- platform :rbx do
21
- gem 'json'
22
- gem 'rubysl'
23
- end
data/Guardfile DELETED
@@ -1,9 +0,0 @@
1
- # A sample Guardfile
2
- # More info at https://github.com/guard/guard#readme
3
-
4
- guard :rspec, cmd: 'rspec --color' do
5
- watch(%r{^spec/.+_spec\.rb$})
6
- watch(%r{^lib/(.+)\.rb$}) { "spec" }
7
- watch('spec/spec_helper.rb') { "spec" }
8
- end
9
-
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require 'rspec/core/rake_task'
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task :default => :spec