awesome_print 0.2.1 → 0.4.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.
@@ -0,0 +1,428 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "Single method" do
4
+ after do
5
+ Object.instance_eval{ remove_const :Hello } if defined?(Hello)
6
+ end
7
+
8
+ it "plain: should handle a method with no arguments" do
9
+ method = ''.method(:upcase)
10
+ method.ai(:plain => true).should == 'String#upcase()'
11
+ end
12
+
13
+ it "color: should handle a method with no arguments" do
14
+ method = ''.method(:upcase)
15
+ method.ai.should == "\e[1;33mString\e[0m#\e[0;35mupcase\e[0m\e[0;37m()\e[0m"
16
+ end
17
+
18
+ it "plain: should handle a method with one argument" do
19
+ method = ''.method(:include?)
20
+ method.ai(:plain => true).should == 'String#include?(arg1)'
21
+ end
22
+
23
+ it "color: should handle a method with one argument" do
24
+ method = ''.method(:include?)
25
+ method.ai.should == "\e[1;33mString\e[0m#\e[0;35minclude?\e[0m\e[0;37m(arg1)\e[0m"
26
+ end
27
+
28
+ it "plain: should handle a method with two arguments" do
29
+ method = ''.method(:tr)
30
+ method.ai(:plain => true).should == 'String#tr(arg1, arg2)'
31
+ end
32
+
33
+ it "color: should handle a method with two arguments" do
34
+ method = ''.method(:tr)
35
+ method.ai.should == "\e[1;33mString\e[0m#\e[0;35mtr\e[0m\e[0;37m(arg1, arg2)\e[0m"
36
+ end
37
+
38
+ it "plain: should handle a method with multiple arguments" do
39
+ method = ''.method(:split)
40
+ method.ai(:plain => true).should == 'String#split(*arg1)'
41
+ end
42
+
43
+ it "color: should handle a method with multiple arguments" do
44
+ method = ''.method(:split)
45
+ method.ai.should == "\e[1;33mString\e[0m#\e[0;35msplit\e[0m\e[0;37m(*arg1)\e[0m"
46
+ end
47
+
48
+ it "plain: should handle a method defined in mixin" do
49
+ method = ''.method(:is_a?)
50
+ method.ai(:plain => true).should == 'String (Kernel)#is_a?(arg1)'
51
+ end
52
+
53
+ it "color: should handle a method defined in mixin" do
54
+ method = ''.method(:is_a?)
55
+ method.ai.should == "\e[1;33mString (Kernel)\e[0m#\e[0;35mis_a?\e[0m\e[0;37m(arg1)\e[0m"
56
+ end
57
+
58
+ it "plain: should handle an unbound method" do
59
+ class Hello
60
+ def world; end
61
+ end
62
+ method = Hello.instance_method(:world)
63
+ method.ai(:plain => true).should == 'Hello (unbound)#world()'
64
+ end
65
+
66
+ it "color: should handle an unbound method" do
67
+ class Hello
68
+ def world(a,b); end
69
+ end
70
+ method = Hello.instance_method(:world)
71
+ if RUBY_VERSION < '1.9.2'
72
+ method.ai.should == "\e[1;33mHello (unbound)\e[0m#\e[0;35mworld\e[0m\e[0;37m(arg1, arg2)\e[0m"
73
+ else
74
+ method.ai.should == "\e[1;33mHello (unbound)\e[0m#\e[0;35mworld\e[0m\e[0;37m(a, b)\e[0m"
75
+ end
76
+ end
77
+ end
78
+
79
+ describe "Object methods" do
80
+ after do
81
+ Object.instance_eval{ remove_const :Hello } if defined?(Hello)
82
+ end
83
+
84
+ describe "object.methods" do
85
+ it "index: should handle object.methods" do
86
+ out = nil.methods.ai(:plain => true).split("\n").grep(/is_a\?/).first
87
+ out.should =~ /^\s+\[\s*\d+\]\s+is_a\?\(arg1\)\s+NilClass \(Kernel\)$/
88
+ end
89
+
90
+ it "no index: should handle object.methods" do
91
+ out = nil.methods.ai(:plain => true, :index => false).split("\n").grep(/is_a\?/).first
92
+ out.should =~ /^\s+is_a\?\(arg1\)\s+NilClass \(Kernel\)$/
93
+ end
94
+ end
95
+
96
+ describe "object.public_methods" do
97
+ it "index: should handle object.public_methods" do
98
+ out = nil.public_methods.ai(:plain => true).split("\n").grep(/is_a\?/).first
99
+ out.should =~ /^\s+\[\s*\d+\]\s+is_a\?\(arg1\)\s+NilClass \(Kernel\)$/
100
+ end
101
+
102
+ it "no index: should handle object.public_methods" do
103
+ out = nil.public_methods.ai(:plain => true, :index => false).split("\n").grep(/is_a\?/).first
104
+ out.should =~ /^\s+is_a\?\(arg1\)\s+NilClass \(Kernel\)$/
105
+ end
106
+ end
107
+
108
+ describe "object.private_methods" do
109
+ it "index: should handle object.private_methods" do
110
+ out = nil.private_methods.ai(:plain => true).split("\n").grep(/sleep/).first
111
+ out.should =~ /^\s+\[\s*\d+\]\s+sleep\(\*arg1\)\s+NilClass \(Kernel\)$/
112
+ end
113
+
114
+ it "no index: should handle object.private_methods" do
115
+ out = nil.private_methods.ai(:plain => true, :index => false).split("\n").grep(/sleep/).first
116
+ out.should =~ /^\s+sleep\(\*arg1\)\s+NilClass \(Kernel\)$/
117
+ end
118
+ end
119
+
120
+ describe "object.protected_methods" do
121
+ it "index: should handle object.protected_methods" do
122
+ class Hello
123
+ protected
124
+ def m1; end
125
+ def m2; end
126
+ end
127
+ Hello.new.protected_methods.ai(:plain => true).should == "[\n [0] m1() Hello\n [1] m2() Hello\n]"
128
+ end
129
+
130
+ it "no index: should handle object.protected_methods" do
131
+ class Hello
132
+ protected
133
+ def m3(a,b); end
134
+ end
135
+ if RUBY_VERSION < '1.9.2'
136
+ Hello.new.protected_methods.ai(:plain => true, :index => false).should == "[\n m3(arg1, arg2) Hello\n]"
137
+ else
138
+ Hello.new.protected_methods.ai(:plain => true, :index => false).should == "[\n m3(a, b) Hello\n]"
139
+ end
140
+ end
141
+ end
142
+
143
+ describe "object.private_methods" do
144
+ it "index: should handle object.private_methods" do
145
+ class Hello
146
+ private
147
+ def m1; end
148
+ def m2; end
149
+ end
150
+ out = Hello.new.private_methods.ai(:plain => true).split("\n").grep(/m\d/)
151
+ out.first.should =~ /^\s+\[\d+\]\s+m1\(\)\s+Hello$/
152
+ out.last.should =~ /^\s+\[\d+\]\s+m2\(\)\s+Hello$/
153
+ end
154
+
155
+ it "no index: should handle object.private_methods" do
156
+ class Hello
157
+ private
158
+ def m3(a,b); end
159
+ end
160
+ out = Hello.new.private_methods.ai(:plain => true).split("\n").grep(/m\d/)
161
+ if RUBY_VERSION < '1.9.2'
162
+ out.first.should =~ /^\s+\[\d+\]\s+m3\(arg1, arg2\)\s+Hello$/
163
+ else
164
+ out.first.should =~ /^\s+\[\d+\]\s+m3\(a, b\)\s+Hello$/
165
+ end
166
+ end
167
+ end
168
+
169
+ describe "object.singleton_methods" do
170
+ it "index: should handle object.singleton_methods" do
171
+ class Hello
172
+ class << self
173
+ def m1; end
174
+ def m2; end
175
+ end
176
+ end
177
+ out = Hello.singleton_methods.ai(:plain => true).split("\n").grep(/m\d/)
178
+ out.first.should =~ /^\s+\[\d+\]\s+m1\(\)\s+Hello$/
179
+ out.last.should =~ /^\s+\[\d+\]\s+m2\(\)\s+Hello$/
180
+ end
181
+
182
+ it "no index: should handle object.singleton_methods" do
183
+ class Hello
184
+ def self.m3(a,b); end
185
+ end
186
+ out = Hello.singleton_methods.ai(:plain => true, :index => false).split("\n").grep(/m\d/)
187
+ if RUBY_VERSION < '1.9.2'
188
+ out.first.should =~ /^\s+m3\(arg1, arg2\)\s+Hello$/
189
+ else
190
+ out.first.should =~ /^\s+m3\(a, b\)\s+Hello$/
191
+ end
192
+ end
193
+ end
194
+ end
195
+
196
+ describe "Class methods" do
197
+ after do
198
+ Object.instance_eval{ remove_const :Hello } if defined?(Hello)
199
+ end
200
+
201
+ describe "class.instance_methods" do
202
+ it "index: should handle unbound class.instance_methods" do
203
+ class Hello
204
+ def m1; end
205
+ def m2; end
206
+ end
207
+ out = Hello.instance_methods.ai(:plain => true).split("\n").grep(/m\d/)
208
+ out.first.should =~ /^\s+\[\s*\d+\]\s+m1\(\)\s+Hello\s\(unbound\)$/
209
+ out.last.should =~ /^\s+\[\s*\d+\]\s+m2\(\)\s+Hello\s\(unbound\)$/
210
+ end
211
+
212
+ it "no index: should handle unbound class.instance_methods" do
213
+ class Hello
214
+ def m3(a,b); end
215
+ end
216
+ out = Hello.instance_methods.ai(:plain => true, :index => false).split("\n").grep(/m\d/)
217
+ if RUBY_VERSION < '1.9.2'
218
+ out.first.should =~ /^\s+m3\(arg1, arg2\)\s+Hello\s\(unbound\)$/
219
+ else
220
+ out.first.should =~ /^\s+m3\(a, b\)\s+Hello\s\(unbound\)$/
221
+ end
222
+ end
223
+ end
224
+
225
+ describe "class.public_instance_methods" do
226
+ it "index: should handle class.public_instance_methods" do
227
+ class Hello
228
+ def m1; end
229
+ def m2; end
230
+ end
231
+ out = Hello.public_instance_methods.ai(:plain => true).split("\n").grep(/m\d/)
232
+ out.first.should =~ /^\s+\[\s*\d+\]\s+m1\(\)\s+Hello\s\(unbound\)$/
233
+ out.last.should =~ /^\s+\[\s*\d+\]\s+m2\(\)\s+Hello\s\(unbound\)$/
234
+ end
235
+
236
+ it "no index: should handle class.public_instance_methods" do
237
+ class Hello
238
+ def m3(a,b); end
239
+ end
240
+ out = Hello.public_instance_methods.ai(:plain => true, :index => false).split("\n").grep(/m\d/)
241
+ if RUBY_VERSION < '1.9.2'
242
+ out.first.should =~ /^\s+m3\(arg1, arg2\)\s+Hello\s\(unbound\)$/
243
+ else
244
+ out.first.should =~ /^\s+m3\(a, b\)\s+Hello\s\(unbound\)$/
245
+ end
246
+ end
247
+ end
248
+
249
+ describe "class.protected_instance_methods" do
250
+ it "index: should handle class.protected_instance_methods" do
251
+ class Hello
252
+ protected
253
+ def m1; end
254
+ def m2; end
255
+ end
256
+ out = Hello.protected_instance_methods.ai(:plain => true).split("\n").grep(/m\d/)
257
+ out.first.should =~ /^\s+\[\d+\]\s+m1\(\)\s+Hello\s\(unbound\)$/
258
+ out.last.should =~ /^\s+\[\d+\]\s+m2\(\)\s+Hello\s\(unbound\)$/
259
+ end
260
+
261
+ it "no index: should handle class.protected_instance_methods" do
262
+ class Hello
263
+ protected
264
+ def m3(a,b); end
265
+ end
266
+ out = Hello.protected_instance_methods.ai(:plain => true, :index => false).split("\n").grep(/m\d/)
267
+ if RUBY_VERSION < '1.9.2'
268
+ out.first.should =~ /^\s+m3\(arg1, arg2\)\s+Hello\s\(unbound\)$/
269
+ else
270
+ out.first.should =~ /^\s+m3\(a, b\)\s+Hello\s\(unbound\)$/
271
+ end
272
+ end
273
+ end
274
+
275
+ describe "class.private_instance_methods" do
276
+ it "index: should handle class.private_instance_methods" do
277
+ class Hello
278
+ private
279
+ def m1; end
280
+ def m2; end
281
+ end
282
+ out = Hello.private_instance_methods.ai(:plain => true).split("\n").grep(/m\d/)
283
+ out.first.should =~ /^\s+\[\s*\d+\]\s+m1\(\)\s+Hello\s\(unbound\)$/
284
+ out.last.should =~ /^\s+\[\s*\d+\]\s+m2\(\)\s+Hello\s\(unbound\)$/
285
+ end
286
+
287
+ it "no index: should handle class.private_instance_methods" do
288
+ class Hello
289
+ private
290
+ def m3(a,b); end
291
+ end
292
+ out = Hello.private_instance_methods.ai(:plain => true, :index => false).split("\n").grep(/m\d/)
293
+ if RUBY_VERSION < '1.9.2'
294
+ out.first.should =~ /^\s+m3\(arg1, arg2\)\s+Hello\s\(unbound\)$/
295
+ else
296
+ out.first.should =~ /^\s+m3\(a, b\)\s+Hello\s\(unbound\)$/
297
+ end
298
+ end
299
+ end
300
+ end
301
+
302
+ if RUBY_VERSION >= '1.9.2'
303
+ describe "Ruby 1.9.2+ Method#parameters" do
304
+ after do
305
+ Object.instance_eval{ remove_const :Hello } if defined?(Hello)
306
+ end
307
+
308
+ it "()" do
309
+ class Hello
310
+ def m1; end
311
+ end
312
+ out = Hello.new.methods.ai(:plain => true).split("\n").grep(/m1/)
313
+ out.first.should =~ /^\s+\[\s*\d+\]\s+m1\(\)\s+Hello$/
314
+ end
315
+
316
+ it ":req" do
317
+ class Hello
318
+ def m1(a, b, c); end
319
+ end
320
+ out = Hello.new.methods.ai(:plain => true).split("\n").grep(/m1/)
321
+ out.first.should =~ /^\s+\[\s*\d+\]\s+m1\(a, b, c\)\s+Hello$/
322
+ end
323
+
324
+ it ":opt" do
325
+ class Hello
326
+ def m1(a, b = 1, c = 2); end # m1(a, *b, *c)
327
+ end
328
+ out = Hello.new.methods.ai(:plain => true).split("\n").grep(/m1/)
329
+ out.first.should =~ /^\s+\[\s*\d+\]\s+m1\(a, \*b, \*c\)\s+Hello$/
330
+ end
331
+
332
+ it ":rest" do
333
+ class Hello
334
+ def m1(*a); end # m1(*a)
335
+ end
336
+ out = Hello.new.methods.ai(:plain => true).split("\n").grep(/m1/)
337
+ out.first.should =~ /^\s+\[\s*\d+\]\s+m1\(\*a\)\s+Hello$/
338
+ end
339
+
340
+ it ":block" do
341
+ class Hello
342
+ def m1(a, b = nil, &blk); end # m1(a, *b, &blk)
343
+ end
344
+ out = Hello.new.methods.ai(:plain => true).split("\n").grep(/m1/)
345
+ out.first.should =~ /^\s+\[\s*\d+\]\s+m1\(a, \*b, &blk\)\s+Hello$/
346
+ end
347
+ end
348
+ end
349
+
350
+ describe "Methods arrays" do
351
+ after do
352
+ Object.instance_eval{ remove_const :Hello } if defined?(Hello)
353
+ Object.instance_eval{ remove_const :World } if defined?(World)
354
+ end
355
+
356
+ it "obj1.methods - obj2.methods should be awesome printed" do
357
+ class Hello
358
+ def self.m1; end
359
+ end
360
+ out = (Hello.methods - Class.methods).ai(:plain => true)
361
+ out.should == "[\n [0] m1() Hello\n]"
362
+ end
363
+
364
+ it "obj1.methods & obj2.methods should be awesome printed" do
365
+ class Hello
366
+ def self.m1; end
367
+ def self.m2; end
368
+ end
369
+ class World
370
+ def self.m1; end
371
+ end
372
+ out = (Hello.methods & World.methods - Class.methods).ai(:plain => true)
373
+ out.should == "[\n [0] m1() Hello\n]"
374
+ end
375
+
376
+ it "obj1.methods.grep(pattern) should be awesome printed" do
377
+ class Hello
378
+ def self.m1; end
379
+ def self.m2; end
380
+ def self.m3; end
381
+ end
382
+ out = Hello.methods.grep(/^m1$/).ai(:plain => true)
383
+ out.should == "[\n [0] m1() Hello\n]"
384
+ out = Hello.methods.grep(/^m\d$/).ai(:plain => true)
385
+ out.should == "[\n [0] m1() Hello\n [1] m2() Hello\n [2] m3() Hello\n]"
386
+ end
387
+
388
+ it "obj1.methods.grep(pattern, &block) should pass the matching string within the block" do
389
+ class Hello
390
+ def self.m_one; end
391
+ def self.m_two; end
392
+ end
393
+
394
+ out = Hello.methods.grep(/^m_(.+)$/) { $1.to_sym }
395
+ out.should == [:one, :two]
396
+ end
397
+
398
+ it "obj1.methods.grep(pattern, &block) should be awesome printed" do
399
+ class Hello
400
+ def self.m0; end
401
+ def self.none; end
402
+ def self.m1; end
403
+ def self.one; end
404
+ end
405
+
406
+ out = Hello.methods.grep(/^m(\d)$/) { %w(none one)[$1.to_i] }.ai(:plain => true)
407
+ out.should == "[\n [0] none() Hello\n [1] one() Hello\n]"
408
+ end
409
+
410
+ # See https://github.com/michaeldv/awesome_print/issues/30 for details.
411
+ it "grepping methods and converting them to_sym should work as expected" do
412
+ class Hello
413
+ private
414
+ def him; end
415
+
416
+ def his
417
+ private_methods.grep(/^h..$/) { |n| n.to_sym }
418
+ end
419
+
420
+ def her
421
+ private_methods.grep(/^.e.$/) { |n| n.to_sym }
422
+ end
423
+ end
424
+
425
+ hello = Hello.new
426
+ (hello.send(:his) - hello.send(:her)).sort_by { |x| x.to_s }.should == [ :him, :his ]
427
+ end
428
+ end
@@ -0,0 +1,63 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ begin
4
+ require "mongo_mapper"
5
+ require "ap/mixin/mongo_mapper"
6
+
7
+ describe "AwesomePrint/MongoMapper" do
8
+ before :all do
9
+ class MongoUser
10
+ include MongoMapper::Document
11
+
12
+ key :first_name, String
13
+ key :last_name, String
14
+ end
15
+ end
16
+
17
+ before :each do
18
+ @ap = AwesomePrint.new(:plain => true)
19
+ end
20
+
21
+ it "should print for a class instance" do
22
+ user = MongoUser.new(:first_name => "Al", :last_name => "Capone")
23
+ out = @ap.send(:awesome, user)
24
+ str = <<-EOS.strip
25
+ #<MongoUser:0x01234567> {
26
+ "_id" => BSON::ObjectId('4d9183739a546f6806000001'),
27
+ "first_name" => "Al",
28
+ "last_name" => "Capone"
29
+ }
30
+ EOS
31
+ out.gsub!(/'([\w]+){23}'/, "'4d9183739a546f6806000001'")
32
+ out.gsub!(/0x([a-f\d]+)/, "0x01234567")
33
+ out.should == str
34
+ end
35
+
36
+ it "should print for a class" do
37
+ @ap.send(:awesome, MongoUser).should == <<-EOS.strip
38
+ class MongoUser < Object {
39
+ "_id" => :object_id,
40
+ "first_name" => :string,
41
+ "last_name" => :string
42
+ }
43
+ EOS
44
+ end
45
+
46
+ it "should print for a class when type is undefined" do
47
+ class Chamelion
48
+ include MongoMapper::Document
49
+ key :last_attribute
50
+ end
51
+
52
+ @ap.send(:awesome, Chamelion).should == <<-EOS.strip
53
+ class Chamelion < Object {
54
+ "_id" => :object_id,
55
+ "last_attribute" => :undefined
56
+ }
57
+ EOS
58
+ end
59
+ end
60
+
61
+ rescue LoadError
62
+ puts "Skipping MongoMapper specs..."
63
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,14 +1,51 @@
1
+ # Copyright (c) 2010-2011 Michael Dvorkin
2
+ #
3
+ # Awesome Print is freely distributable under the terms of MIT license.
4
+ # See LICENSE file or http://www.opensource.org/licenses/mit-license.php
5
+ #------------------------------------------------------------------------------
6
+ #
7
+ # Running specs from the command line:
8
+ # $ rake spec # Entire spec suite.
9
+ # $ rspec spec/logger_spec.rb # Individual spec file.
10
+ #
1
11
  $LOAD_PATH.unshift(File.dirname(__FILE__))
2
12
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
- require 'ap'
4
- require 'spec'
5
- require 'spec/autorun'
6
- require 'rubygems'
7
-
8
- Spec::Runner.configure do |config|
9
- end
13
+ require 'awesome_print'
10
14
 
11
15
  def stub_dotfile!
12
16
  dotfile = File.join(ENV["HOME"], ".aprc")
13
17
  File.should_receive(:readable?).at_least(:once).with(dotfile).and_return(false)
14
18
  end
19
+
20
+ # The following is needed for the Infinity Test. It runs tests as subprocesses,
21
+ # which sets STDOUT.tty? to false and would otherwise prematurely disallow colors.
22
+ AwesomePrint.force_colors!
23
+
24
+ # Ruby 1.8.6 only: define missing String methods that are needed for the specs to pass.
25
+ if RUBY_VERSION < '1.8.7'
26
+ class String
27
+ def shellescape # Taken from Ruby 1.9.2 standard library, see lib/shellwords.rb.
28
+ return "''" if self.empty?
29
+ str = self.dup
30
+ str.gsub!(/([^A-Za-z0-9_\-.,:\/@\n])/n, "\\\\\\1")
31
+ str.gsub!(/\n/, "'\n'")
32
+ str
33
+ end
34
+
35
+ def start_with?(*prefixes)
36
+ prefixes.each do |prefix|
37
+ prefix = prefix.to_s
38
+ return true if prefix == self[0, prefix.size]
39
+ end
40
+ false
41
+ end
42
+
43
+ def end_with?(*suffixes)
44
+ suffixes.each do |suffix|
45
+ suffix = suffix.to_s
46
+ return true if suffix == self[-suffix.size, suffix.size]
47
+ end
48
+ false
49
+ end
50
+ end
51
+ end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awesome_print
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 15
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
- - 2
8
- - 1
9
- version: 0.2.1
8
+ - 4
9
+ - 0
10
+ version: 0.4.0
10
11
  platform: ruby
11
12
  authors:
12
13
  - Michael Dvorkin
@@ -14,21 +15,23 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-06-03 00:00:00 -07:00
18
+ date: 2011-05-13 00:00:00 -07:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: rspec
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 27
27
30
  segments:
28
- - 1
29
31
  - 2
30
- - 9
31
- version: 1.2.9
32
+ - 5
33
+ - 0
34
+ version: 2.5.0
32
35
  type: :development
33
36
  version_requirements: *id001
34
37
  description: "Great Ruby dubugging companion: pretty print Ruby objects to visualize their structure. Supports Rails ActiveRecord objects via included mixin."
@@ -49,18 +52,26 @@ files:
49
52
  - init.rb
50
53
  - lib/ap.rb
51
54
  - lib/ap/awesome_print.rb
55
+ - lib/ap/core_ext/array.rb
56
+ - lib/ap/core_ext/class.rb
52
57
  - lib/ap/core_ext/kernel.rb
53
58
  - lib/ap/core_ext/logger.rb
59
+ - lib/ap/core_ext/method.rb
60
+ - lib/ap/core_ext/object.rb
54
61
  - lib/ap/core_ext/string.rb
55
62
  - lib/ap/mixin/action_view.rb
56
63
  - lib/ap/mixin/active_record.rb
57
64
  - lib/ap/mixin/active_support.rb
65
+ - lib/ap/mixin/mongo_mapper.rb
66
+ - lib/awesome_print.rb
58
67
  - rails/init.rb
59
68
  - spec/action_view_spec.rb
60
69
  - spec/active_record_spec.rb
61
70
  - spec/awesome_print_spec.rb
71
+ - spec/colorization_spec.rb
62
72
  - spec/logger_spec.rb
63
- - spec/spec.opts
73
+ - spec/methods_spec.rb
74
+ - spec/mongo_mapper_spec.rb
64
75
  - spec/spec_helper.rb
65
76
  - spec/string_spec.rb
66
77
  has_rdoc: true
@@ -68,35 +79,34 @@ homepage: http://github.com/michaeldv/awesome_print
68
79
  licenses: []
69
80
 
70
81
  post_install_message:
71
- rdoc_options:
72
- - --charset=UTF-8
82
+ rdoc_options: []
83
+
73
84
  require_paths:
74
85
  - lib
75
86
  required_ruby_version: !ruby/object:Gem::Requirement
87
+ none: false
76
88
  requirements:
77
89
  - - ">="
78
90
  - !ruby/object:Gem::Version
91
+ hash: 3
79
92
  segments:
80
93
  - 0
81
94
  version: "0"
82
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
+ none: false
83
97
  requirements:
84
98
  - - ">="
85
99
  - !ruby/object:Gem::Version
100
+ hash: 3
86
101
  segments:
87
102
  - 0
88
103
  version: "0"
89
104
  requirements: []
90
105
 
91
106
  rubyforge_project: awesome_print
92
- rubygems_version: 1.3.6
107
+ rubygems_version: 1.3.7
93
108
  signing_key:
94
109
  specification_version: 3
95
110
  summary: Pretty print Ruby objects with proper indentation and colors.
96
- test_files:
97
- - spec/action_view_spec.rb
98
- - spec/active_record_spec.rb
99
- - spec/awesome_print_spec.rb
100
- - spec/logger_spec.rb
101
- - spec/spec_helper.rb
102
- - spec/string_spec.rb
111
+ test_files: []
112
+
data/spec/spec.opts DELETED
@@ -1 +0,0 @@
1
- --color