wirb 0.4.2 → 0.5.0
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.
- data/CHANGELOG.rdoc +7 -0
- data/README.rdoc +5 -3
- data/data/wirb/classic_paint.yml +9 -4
- data/data/wirb/classic_wirb0.yml +5 -2
- data/data/wirb/colorless.yml +4 -0
- data/lib/wirb/tokenizer.rb +54 -6
- data/lib/wirb/version.rb +1 -1
- data/lib/wirb.rb +3 -3
- data/spec/colorizer_spec.rb +2 -2
- data/spec/tokenizer_number_spec.rb +58 -0
- data/spec/tokenizer_object_spec.rb +32 -17
- data/spec/tokenizer_rubygems_spec.rb +69 -67
- data/wirb.gemspec +1 -0
- metadata +27 -27
data/CHANGELOG.rdoc
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
== 0.5.0
|
2
|
+
* Use magenta instead of black for strings (better readable)
|
3
|
+
* Fix bug with StringScanner objects
|
4
|
+
* Support complex numbers
|
5
|
+
* Support Infinity and NaN as valid numbers
|
6
|
+
* Default colorizer is now Paint
|
7
|
+
|
1
8
|
== 0.4.2
|
2
9
|
* Fix a symbol string bug
|
3
10
|
* Don't fail on nil input for Wirb.tokenize
|
data/README.rdoc
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
== Wavy Interactive Ruby
|
2
2
|
*Wirb* colorizes your inspected Ruby objects. It is based on Wirble[http://pablotron.org/software/wirble/], but only provides and improves result highlighting. It also provides a colorization engine abstraction layer and offers flexible schemas using yaml. Wirb is part of the {irbtools suite}[https://github.com/janlelis/irbtools].
|
3
3
|
|
4
|
-
{
|
4
|
+
{<img src="https://travis-ci.org/janlelis/wirb.png" />}[https://travis-ci.org/janlelis/wirb]
|
5
|
+
|
6
|
+
|
5
7
|
|
6
8
|
== Install
|
7
9
|
Install the gem with:
|
@@ -30,7 +32,7 @@ Add to your <tt>~/.irbrc</tt>
|
|
30
32
|
To only tweak some colors, take a look at the <tt>Wirb.schema</tt> hash. To use a custom schema, inspect the yaml files in the <tt>data/wirb/</tt> directory. You can create your own schema and load it using <tt>Wirb.load_schema(path_to_yaml_file)</tt>. Alternatively, you can use one of the bundled ones by passing a symbol instead of a path.
|
31
33
|
|
32
34
|
=== Colorizer
|
33
|
-
Wirb supports multiple colorization engines. Available engines can be found in <tt>lib/wirb/colorizer/*</tt>. Some of them require external gems as dependencies (e.g. HighLine). The current default engine is <em>
|
35
|
+
Wirb supports multiple colorization engines. Available engines can be found in <tt>lib/wirb/colorizer/*</tt>. Some of them require external gems as dependencies (e.g. HighLine). The current default engine is <em>Paint</em>. You can change the colorizer using:
|
34
36
|
|
35
37
|
Wirb.load_colorizer :Paint # or :HighLine or whatever
|
36
38
|
|
@@ -71,7 +73,7 @@ You can colorize any object with <tt>wp</tt> (wavy_print):
|
|
71
73
|
== Todo
|
72
74
|
* Tests for schema stuff
|
73
75
|
* More colorizers and themes
|
74
|
-
*
|
76
|
+
* Keep up with latest core/stdlib/rubygems inspects
|
75
77
|
|
76
78
|
== Credits
|
77
79
|
* Copyright (c) 2011 Jan Lelis <http://rbjl.net>, see COPYING for details.
|
data/data/wirb/classic_paint.yml
CHANGED
@@ -54,7 +54,7 @@ object_line:
|
|
54
54
|
- :yellow
|
55
55
|
- :underline
|
56
56
|
object_line_number:
|
57
|
-
- :
|
57
|
+
- :yellow
|
58
58
|
- :underline
|
59
59
|
object_variable_prefix:
|
60
60
|
- :magenta
|
@@ -84,8 +84,7 @@ close_symbol_string:
|
|
84
84
|
open_string:
|
85
85
|
- :white
|
86
86
|
string:
|
87
|
-
- :
|
88
|
-
- :bright
|
87
|
+
- :magenta
|
89
88
|
close_string:
|
90
89
|
- :white
|
91
90
|
|
@@ -94,7 +93,7 @@ open_regexp:
|
|
94
93
|
- :blue
|
95
94
|
- :bright
|
96
95
|
regexp:
|
97
|
-
- :
|
96
|
+
- :magenta
|
98
97
|
close_regexp:
|
99
98
|
- :blue
|
100
99
|
- :bright
|
@@ -105,6 +104,8 @@ regexp_flags:
|
|
105
104
|
# number
|
106
105
|
number:
|
107
106
|
- :cyan
|
107
|
+
special_number:
|
108
|
+
- :cyan
|
108
109
|
range:
|
109
110
|
- :red
|
110
111
|
open_rational:
|
@@ -116,6 +117,10 @@ rational_separator:
|
|
116
117
|
close_rational:
|
117
118
|
- :cyan
|
118
119
|
- :bright
|
120
|
+
open_complex:
|
121
|
+
- :cyan
|
122
|
+
close_complex:
|
123
|
+
- :cyan
|
119
124
|
|
120
125
|
# misc
|
121
126
|
#default:
|
data/data/wirb/classic_wirb0.yml
CHANGED
@@ -42,21 +42,24 @@ close_symbol_string: brown
|
|
42
42
|
|
43
43
|
# string
|
44
44
|
open_string: light_gray
|
45
|
-
string:
|
45
|
+
string: purple
|
46
46
|
close_string: light_gray
|
47
47
|
|
48
48
|
# regexp
|
49
49
|
open_regexp: light_blue
|
50
|
-
regexp:
|
50
|
+
regexp: purple
|
51
51
|
close_regexp: light_blue
|
52
52
|
regexp_flags: light_red
|
53
53
|
|
54
54
|
# number
|
55
55
|
number: cyan
|
56
|
+
special_number: cyan
|
56
57
|
range: red
|
57
58
|
open_rational: light_cyan
|
58
59
|
rational_separator: light_cyan
|
59
60
|
close_rational: light_cyan
|
61
|
+
open_complex: cyan
|
62
|
+
close_complex: cyan
|
60
63
|
|
61
64
|
# misc
|
62
65
|
#default:
|
data/data/wirb/colorless.yml
CHANGED
data/lib/wirb/tokenizer.rb
CHANGED
@@ -93,8 +93,15 @@ class << Wirb
|
|
93
93
|
push_state[:gem_requirement_condition, :repeat]
|
94
94
|
end
|
95
95
|
when '('
|
96
|
-
|
97
|
-
|
96
|
+
peek = chars[i+1..-1].join
|
97
|
+
if peek =~ /^-?(?:Infinity|NaN|[0-9.e]+)[+-](?:Infinity|NaN|[0-9.e]+)\*?i\)/
|
98
|
+
push_state[:complex, :repeat]
|
99
|
+
elsif nc =~ /[0-9-]/
|
100
|
+
if @passed =~ /Complex$/ # cheat for old 1.8
|
101
|
+
push_state[:complex, :repeat]
|
102
|
+
else
|
103
|
+
push_state[:rational, :repeat]
|
104
|
+
end
|
98
105
|
else
|
99
106
|
push_state[:object_description, :repeat]
|
100
107
|
open_brackets = 0
|
@@ -150,7 +157,9 @@ class << Wirb
|
|
150
157
|
when /[a-z0-9_]/i
|
151
158
|
@token << c
|
152
159
|
else
|
153
|
-
if
|
160
|
+
if @token =~ /^(Infinity|NaN)$/
|
161
|
+
set_state[:special_number, :repeat]
|
162
|
+
elsif c ==':' && nc == ':'
|
154
163
|
pass_state[]
|
155
164
|
pass[:class_separator, '::']
|
156
165
|
elsif !(c == ':' && lc == ':')
|
@@ -228,7 +237,9 @@ class << Wirb
|
|
228
237
|
when :number
|
229
238
|
if c == '-' && @token != '' && @token[-1] != 'e'
|
230
239
|
set_state[:time, :repeat]
|
231
|
-
elsif c =~ /[
|
240
|
+
elsif c =~ /[IN]/
|
241
|
+
set_state[:special_number, :repeat]
|
242
|
+
elsif c =~ /[0-9e.*i+-]/ && !(c == '.' && nc == '.')
|
232
243
|
@token << c
|
233
244
|
elsif c == '/' # ruby 1.8 mathn
|
234
245
|
pass_state[]
|
@@ -253,6 +264,24 @@ class << Wirb
|
|
253
264
|
@token << c
|
254
265
|
pop_state[:remove]
|
255
266
|
end
|
267
|
+
|
268
|
+
when :special_number # like time, refactor if code is needed a third time
|
269
|
+
peek = chars[i..-1].join
|
270
|
+
if [
|
271
|
+
/^[-+]?Infinity/,
|
272
|
+
/^[-+]?NaN/,
|
273
|
+
].any?{ |regex|
|
274
|
+
( @token + peek ) =~ regex
|
275
|
+
} # found, adjust parsing-pointer:
|
276
|
+
i = i + $&.size - @token.size - 1
|
277
|
+
@token = $&
|
278
|
+
pass_state[]
|
279
|
+
set_state[:number]
|
280
|
+
else
|
281
|
+
# TODO verify...
|
282
|
+
@token << c
|
283
|
+
set_state[:number]
|
284
|
+
end
|
256
285
|
|
257
286
|
when :range
|
258
287
|
if c == '.'
|
@@ -276,6 +305,21 @@ class << Wirb
|
|
276
305
|
pop_state[]
|
277
306
|
end
|
278
307
|
|
308
|
+
when :complex
|
309
|
+
case c
|
310
|
+
when '('
|
311
|
+
pass[:open_complex, '(']
|
312
|
+
when /[0-9+-]/
|
313
|
+
push_state[:number, :repeat]
|
314
|
+
when ','
|
315
|
+
pass[:number, c] # complex_separator
|
316
|
+
when ' '
|
317
|
+
pass[:whitespace, c]
|
318
|
+
when ')'
|
319
|
+
pass[:close_complex, ')']
|
320
|
+
pop_state[]
|
321
|
+
end
|
322
|
+
|
279
323
|
when :object
|
280
324
|
case c
|
281
325
|
when '<'
|
@@ -328,8 +372,12 @@ class << Wirb
|
|
328
372
|
open_brackets += 1
|
329
373
|
@token << c
|
330
374
|
when '@'
|
331
|
-
|
332
|
-
|
375
|
+
if nc =~ /[a-z]/i
|
376
|
+
pass_state[]
|
377
|
+
push_state[:object_variable]
|
378
|
+
else
|
379
|
+
@token << c
|
380
|
+
end
|
333
381
|
when '"'
|
334
382
|
pass_state[]
|
335
383
|
push_state[:string]
|
data/lib/wirb/version.rb
CHANGED
data/lib/wirb.rb
CHANGED
@@ -27,7 +27,7 @@ class << Wirb
|
|
27
27
|
|
28
28
|
# extend getter & setter for colorizer & schema
|
29
29
|
def colorizer
|
30
|
-
@colorizer ||= Wirb::Colorizer::
|
30
|
+
@colorizer ||= Wirb::Colorizer::Paint
|
31
31
|
end
|
32
32
|
|
33
33
|
def colorizer=(col)
|
@@ -54,7 +54,7 @@ class << Wirb
|
|
54
54
|
# Loads a color schema from a yaml file
|
55
55
|
# If first argument is a String: path to yaml file
|
56
56
|
# If first argument is a Symbol: bundled schema
|
57
|
-
def load_schema!(yaml_path = :
|
57
|
+
def load_schema!(yaml_path = :classic_paint)
|
58
58
|
if yaml_path.is_a? Symbol # bundled themes
|
59
59
|
schema_name = yaml_path.to_s
|
60
60
|
schema_yaml = YAML.load_file(File.join(Gem.datadir('wirb'), schema_name + '.yml'))
|
@@ -77,7 +77,7 @@ class << Wirb
|
|
77
77
|
end
|
78
78
|
|
79
79
|
# Loads a color schema from a yaml file and sets colorizer to first suggested one in schema
|
80
|
-
def load_schema(yaml_path = :
|
80
|
+
def load_schema(yaml_path = :classic_paint)
|
81
81
|
load_schema! yaml_path
|
82
82
|
load_colorizer schema[:colorizer].first
|
83
83
|
@schema
|
data/spec/colorizer_spec.rb
CHANGED
@@ -17,11 +17,11 @@ end
|
|
17
17
|
describe "Colorizer loading" do
|
18
18
|
before(:each) {Wirb.colorizer = nil}
|
19
19
|
|
20
|
-
it "defaults to using the
|
20
|
+
it "defaults to using the Paint colorizer" do
|
21
21
|
Wirb.colorizer = nil
|
22
22
|
Wirb.instance_variable_get(:@colorizer).should be_nil
|
23
23
|
foo = Wirb.colorizer # Force a colorizer to be loaded
|
24
|
-
Wirb.colorizer.should == Wirb::Colorizer::
|
24
|
+
Wirb.colorizer.should == Wirb::Colorizer::Paint
|
25
25
|
end
|
26
26
|
|
27
27
|
it "attempts to load the appropriate colorizer" do
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'complex'
|
2
|
+
|
1
3
|
describe tokenizer(__FILE__) do
|
2
4
|
after :each do check_value end
|
3
5
|
|
@@ -101,4 +103,60 @@ describe tokenizer(__FILE__) do
|
|
101
103
|
]
|
102
104
|
end
|
103
105
|
end
|
106
|
+
|
107
|
+
please do check (1/0.0)
|
108
|
+
tokens.should == [
|
109
|
+
[:special_number, "Infinity"],
|
110
|
+
]
|
111
|
+
end
|
112
|
+
please do check [-(1/0.0), (0/0.0), -(1/0.0), -(0/0.0)]
|
113
|
+
tokens.should == [
|
114
|
+
[:open_array, "["],
|
115
|
+
[:special_number, "-Infinity"],
|
116
|
+
[:comma, ","],
|
117
|
+
[:whitespace, " "],
|
118
|
+
[:special_number, "NaN"],
|
119
|
+
[:comma, ","],
|
120
|
+
[:whitespace, " "],
|
121
|
+
[:special_number, "-Infinity"],
|
122
|
+
[:comma, ","],
|
123
|
+
[:whitespace, " "],
|
124
|
+
[:special_number, "NaN"],
|
125
|
+
[:close_array, "]"],
|
126
|
+
]
|
127
|
+
end
|
128
|
+
|
129
|
+
only19 do
|
130
|
+
please do check Complex(-2.2,-3.3)
|
131
|
+
tokens.should == [
|
132
|
+
[:open_complex, "("],
|
133
|
+
[:number, "-2.2-3.3i"],
|
134
|
+
[:close_complex, ")"],
|
135
|
+
]
|
136
|
+
end
|
137
|
+
|
138
|
+
please do check Complex(-1/0.0, 0/0.0)
|
139
|
+
tokens.should == [
|
140
|
+
[:open_complex, "("],
|
141
|
+
[:special_number, "-Infinity"],
|
142
|
+
[:special_number, "+NaN"],
|
143
|
+
[:number, '*i'],
|
144
|
+
[:close_complex, ")"],
|
145
|
+
]
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
only18 do
|
150
|
+
please do check Complex(-2.2,-3.3)
|
151
|
+
tokens.should == [
|
152
|
+
[:class, "Complex"],
|
153
|
+
[:open_complex, "("],
|
154
|
+
[:number, "-2.2"],
|
155
|
+
[:number, ","],
|
156
|
+
[:whitespace, " "],
|
157
|
+
[:number, "-3.3"],
|
158
|
+
[:close_complex, ")"],
|
159
|
+
]
|
160
|
+
end
|
161
|
+
end
|
104
162
|
end
|
@@ -40,6 +40,19 @@ describe tokenizer(__FILE__) do
|
|
40
40
|
].compact
|
41
41
|
end
|
42
42
|
|
43
|
+
please do check StringScanner.new('wirb')
|
44
|
+
tokens.should == [
|
45
|
+
[:open_object, "#<"],
|
46
|
+
[:object_class, "StringScanner"],
|
47
|
+
[:object_description_prefix, " "],
|
48
|
+
[:object_description, "0/4 @ "],
|
49
|
+
[:open_string, "\""],
|
50
|
+
[:string, "wirb"],
|
51
|
+
[:close_string, "\""],
|
52
|
+
[:close_object, ">"],
|
53
|
+
]
|
54
|
+
end
|
55
|
+
|
43
56
|
unless RubyEngine.rbx? # rubinius provides more information
|
44
57
|
please do check binding
|
45
58
|
tokens.should be_like [
|
@@ -53,24 +66,26 @@ describe tokenizer(__FILE__) do
|
|
53
66
|
end
|
54
67
|
|
55
68
|
only19 do
|
56
|
-
|
57
|
-
|
58
|
-
[
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
69
|
+
unless RubyEngine.jruby?
|
70
|
+
please do check STDOUT
|
71
|
+
tokens.should == [
|
72
|
+
[:open_object, "#<"],
|
73
|
+
[:object_class, "IO"],
|
74
|
+
[:object_description_prefix, ":"],
|
75
|
+
[:object_description, "<STDOUT>"],
|
76
|
+
[:close_object, ">"],
|
77
|
+
]
|
78
|
+
end
|
65
79
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
80
|
+
please do check STDIN
|
81
|
+
tokens.should == [
|
82
|
+
[:open_object, "#<"],
|
83
|
+
[:object_class, "IO"],
|
84
|
+
[:object_description_prefix, ":"],
|
85
|
+
[:object_description, "<STDIN>"],
|
86
|
+
[:close_object, ">"],
|
87
|
+
]
|
88
|
+
end
|
74
89
|
end
|
75
90
|
|
76
91
|
please do check Module.new.singleton_class.singleton_class
|
@@ -1,80 +1,82 @@
|
|
1
1
|
describe tokenizer(__FILE__) do
|
2
2
|
after :each do check_value end
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
[
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
4
|
+
unless RubyEngine.jruby?
|
5
|
+
please do check_inspected "> 3.0.0.beta.4"
|
6
|
+
tokens.should == [
|
7
|
+
[:gem_requirement_condition, ">"],
|
8
|
+
[:whitespace, " "],
|
9
|
+
[:gem_requirement_version, "3.0.0.beta.4"],
|
10
|
+
]
|
11
|
+
end
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
13
|
+
please do check_inspected "< 3"
|
14
|
+
tokens.should == [
|
15
|
+
[:gem_requirement_condition, "<"],
|
16
|
+
[:whitespace, " "],
|
17
|
+
[:gem_requirement_version, "3"],
|
18
|
+
]
|
19
|
+
end
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
21
|
+
please do check_inspected "<= 3"
|
22
|
+
tokens.should == [
|
23
|
+
[:gem_requirement_condition, "<="],
|
24
|
+
[:whitespace, " "],
|
25
|
+
[:gem_requirement_version, "3"],
|
26
|
+
]
|
27
|
+
end
|
27
28
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
29
|
+
please do check_inspected "{1=>>= 0}"
|
30
|
+
tokens.should == [
|
31
|
+
[:open_hash, '{'],
|
32
|
+
[:number, '1'],
|
33
|
+
[:refers, '=>'],
|
34
|
+
[:gem_requirement_condition, ">="],
|
35
|
+
[:whitespace, " "],
|
36
|
+
[:gem_requirement_version, "0"],
|
37
|
+
[:close_hash, '}'],
|
38
|
+
]
|
39
|
+
end
|
40
|
+
|
41
|
+
if Gem::Specification.respond_to? :find_by_name
|
42
|
+
only19 do
|
43
|
+
please do
|
44
|
+
require 'rspec'
|
45
|
+
check [Gem::Specification.find_by_name('rspec').dependencies.first.requirement]*2
|
46
|
+
tokens.should == [
|
47
|
+
[:open_array, '['],
|
48
|
+
[:gem_requirement_condition, "~>"],
|
49
|
+
[:whitespace, " "],
|
50
|
+
[:gem_requirement_version, RSpec::Version::STRING],
|
51
|
+
[:comma, ","],
|
52
|
+
[:whitespace, " "],
|
53
|
+
[:gem_requirement_condition, "~>"],
|
54
|
+
[:whitespace, " "],
|
55
|
+
[:gem_requirement_version, RSpec::Version::STRING],
|
56
|
+
[:close_array, ']'],
|
57
|
+
]
|
58
|
+
end
|
59
|
+
end
|
39
60
|
|
40
|
-
if Gem::Specification.respond_to? :find_by_name
|
41
|
-
only19 do
|
42
61
|
please do
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
[:
|
47
|
-
[:
|
48
|
-
[:
|
49
|
-
[:
|
50
|
-
[:
|
51
|
-
[:
|
52
|
-
[:
|
53
|
-
[:
|
54
|
-
[:
|
55
|
-
[:
|
62
|
+
check Gem::Specification.find_by_name('wirb').dependencies.first
|
63
|
+
tokens.should == [ # <Gem::Dependency type=:development name="rspec" requirements=">= 0">
|
64
|
+
[:open_object, "<"],
|
65
|
+
[:object_class, "Gem"],
|
66
|
+
[:class_separator, "::"],
|
67
|
+
[:object_class, "Dependency"],
|
68
|
+
[:object_description_prefix, " "],
|
69
|
+
[:object_description, "type=:development name="],
|
70
|
+
[:open_string, "\""],
|
71
|
+
[:string, "rspec"],
|
72
|
+
[:close_string, "\""],
|
73
|
+
[:object_description, " requirements="],
|
74
|
+
[:open_string, "\""],
|
75
|
+
[:string, ">= 0"],
|
76
|
+
[:close_string, "\""],
|
77
|
+
[:close_object, ">"],
|
56
78
|
]
|
57
79
|
end
|
58
80
|
end
|
59
|
-
|
60
|
-
please do
|
61
|
-
check Gem::Specification.find_by_name('wirb').dependencies.first
|
62
|
-
tokens.should == [ # <Gem::Dependency type=:development name="rspec" requirements=">= 0">
|
63
|
-
[:open_object, "<"],
|
64
|
-
[:object_class, "Gem"],
|
65
|
-
[:class_separator, "::"],
|
66
|
-
[:object_class, "Dependency"],
|
67
|
-
[:object_description_prefix, " "],
|
68
|
-
[:object_description, "type=:development name="],
|
69
|
-
[:open_string, "\""],
|
70
|
-
[:string, "rspec"],
|
71
|
-
[:close_string, "\""],
|
72
|
-
[:object_description, " requirements="],
|
73
|
-
[:open_string, "\""],
|
74
|
-
[:string, ">= 0"],
|
75
|
-
[:close_string, "\""],
|
76
|
-
[:close_object, ">"],
|
77
|
-
]
|
78
|
-
end
|
79
81
|
end
|
80
82
|
end
|
data/wirb.gemspec
CHANGED
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.add_development_dependency 'zucker', '>= 12.1'
|
22
22
|
#s.add_development_dependency 'highline'
|
23
23
|
s.add_development_dependency 'paint'
|
24
|
+
# s.add_development_dependency 'debugger'
|
24
25
|
|
25
26
|
len = s.homepage.size
|
26
27
|
s.post_install_message = \
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wirb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -102,48 +102,48 @@ extra_rdoc_files:
|
|
102
102
|
- README.rdoc
|
103
103
|
- COPYING.txt
|
104
104
|
files:
|
105
|
-
- lib/wirb/
|
105
|
+
- lib/wirb/tokenizer.rb
|
106
|
+
- lib/wirb/irb.rb
|
106
107
|
- lib/wirb/wp.rb
|
107
108
|
- lib/wirb/colorizer.rb
|
108
|
-
- lib/wirb/
|
109
|
-
- lib/wirb/colorizer/wirble.rb
|
110
|
-
- lib/wirb/colorizer/wirb0.rb
|
111
|
-
- lib/wirb/colorizer/highline.rb
|
109
|
+
- lib/wirb/version.rb
|
112
110
|
- lib/wirb/colorizer/paint.rb
|
111
|
+
- lib/wirb/colorizer/highline.rb
|
112
|
+
- lib/wirb/colorizer/wirb0_paint.rb
|
113
113
|
- lib/wirb/colorizer/wirb0_highline.rb
|
114
|
-
- lib/wirb/
|
115
|
-
- lib/wirb/
|
114
|
+
- lib/wirb/colorizer/wirb0.rb
|
115
|
+
- lib/wirb/colorizer/wirble.rb
|
116
116
|
- lib/wirb.rb
|
117
|
-
- spec/spec_helper.rb
|
118
|
-
- spec/colorizer_highline_spec.rb
|
119
|
-
- spec/tokenizer_rails_spec.rb
|
120
117
|
- spec/tokenizer_enumerator_spec.rb
|
118
|
+
- spec/colorizer_wirb0_highline_spec.rb
|
119
|
+
- spec/colorizer_highline_spec.rb
|
120
|
+
- spec/tokenizer_set_spec.rb
|
121
|
+
- spec/colorizer_wirb0_spec.rb
|
122
|
+
- spec/tokenizer_rubygems_spec.rb
|
123
|
+
- spec/spec_helper.rb
|
124
|
+
- spec/tokenizer_rubyvm_spec.rb
|
125
|
+
- spec/colorizer_wirb0_paint_spec.rb
|
126
|
+
- spec/tokenizer_string_spec.rb
|
127
|
+
- spec/tokenizer_nil_false_true_spec.rb
|
121
128
|
- spec/tokenizer_array_spec.rb
|
129
|
+
- spec/tokenizer_symbol_spec.rb
|
122
130
|
- spec/tokenizer_hash_spec.rb
|
131
|
+
- spec/tokenizer_nested_spec.rb
|
132
|
+
- spec/tokenizer_rails_spec.rb
|
133
|
+
- spec/colorizer_spec.rb
|
123
134
|
- spec/colorizer_paint_spec.rb
|
135
|
+
- spec/tokenizer_time_spec.rb
|
124
136
|
- spec/tokenizer_misc_spec.rb
|
125
|
-
- spec/
|
126
|
-
- spec/colorizer_wirb0_spec.rb
|
137
|
+
- spec/tokenizer_regexp_spec.rb
|
127
138
|
- spec/tokenizer_object_spec.rb
|
128
|
-
- spec/colorizer_wirb0_highline_spec.rb
|
129
|
-
- spec/tokenizer_symbol_spec.rb
|
130
|
-
- spec/colorizer_spec.rb
|
131
|
-
- spec/tokenizer_string_spec.rb
|
132
|
-
- spec/tokenizer_rubyvm_spec.rb
|
133
|
-
- spec/tokenizer_rubygems_spec.rb
|
134
|
-
- spec/tokenizer_set_spec.rb
|
135
|
-
- spec/tokenizer_nested_spec.rb
|
136
139
|
- spec/tokenizer_number_spec.rb
|
137
|
-
- spec/tokenizer_regexp_spec.rb
|
138
140
|
- spec/colorizer_wirble_spec.rb
|
139
|
-
- spec/tokenizer_nil_false_true_spec.rb
|
140
|
-
- spec/tokenizer_time_spec.rb
|
141
141
|
- COPYING.txt
|
142
142
|
- CHANGELOG.rdoc
|
143
143
|
- README.rdoc
|
144
|
+
- data/wirb/classic_wirb0.yml
|
144
145
|
- data/wirb/classic_paint.yml
|
145
146
|
- data/wirb/colorless.yml
|
146
|
-
- data/wirb/classic_wirb0.yml
|
147
147
|
- Rakefile
|
148
148
|
- wirb.gemspec
|
149
149
|
- .gemtest
|
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
170
|
version: 1.3.6
|
171
171
|
requirements: []
|
172
172
|
rubyforge_project:
|
173
|
-
rubygems_version: 1.8.
|
173
|
+
rubygems_version: 1.8.24
|
174
174
|
signing_key:
|
175
175
|
specification_version: 3
|
176
176
|
summary: ! 'Wavy IRB: Colorizes irb results.'
|