awesome_print 1.2.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -3
- data/CHANGELOG +13 -1
- data/Gemfile +39 -1
- data/Gemfile.lock +91 -0
- data/LICENSE +1 -1
- data/README.md +3 -0
- data/lib/ap.rb +0 -0
- data/lib/awesome_print.rb +6 -1
- data/lib/awesome_print/ext/active_record.rb +2 -1
- data/lib/awesome_print/ext/mongoid.rb +1 -1
- data/lib/awesome_print/ext/ostruct.rb +27 -0
- data/lib/awesome_print/formatter.rb +1 -1
- data/lib/awesome_print/inspector.rb +0 -0
- data/lib/awesome_print/version.rb +1 -1
- data/spec/active_record_helper.rb +42 -0
- data/spec/colors_spec.rb +8 -8
- data/spec/formats_spec.rb +70 -70
- data/spec/methods_spec.rb +61 -61
- data/spec/misc_spec.rb +53 -34
- data/spec/objects_spec.rb +6 -6
- data/spec/spec_helper.rb +1 -1
- metadata +22 -24
data/spec/objects_spec.rb
CHANGED
@@ -30,8 +30,8 @@ describe "Objects" do
|
|
30
30
|
attr_writer :ca = 2
|
31
31
|
>
|
32
32
|
EOS
|
33
|
-
out.gsub(/0x([a-f\d]+)/, "0x01234567").
|
34
|
-
hello.ai(:plain => true, :raw => false).
|
33
|
+
expect(out.gsub(/0x([a-f\d]+)/, "0x01234567")).to eq(str)
|
34
|
+
expect(hello.ai(:plain => true, :raw => false)).to eq(hello.inspect)
|
35
35
|
end
|
36
36
|
|
37
37
|
it "instance variables" do
|
@@ -50,8 +50,8 @@ EOS
|
|
50
50
|
@dabra = 3
|
51
51
|
>
|
52
52
|
EOS
|
53
|
-
out.gsub(/0x([a-f\d]+)/, "0x01234567").
|
54
|
-
hello.ai(:plain => true, :raw => false).
|
53
|
+
expect(out.gsub(/0x([a-f\d]+)/, "0x01234567")).to eq(str)
|
54
|
+
expect(hello.ai(:plain => true, :raw => false)).to eq(hello.inspect)
|
55
55
|
end
|
56
56
|
|
57
57
|
it "attributes and instance variables" do
|
@@ -78,8 +78,8 @@ EOS
|
|
78
78
|
attr_writer :ca = 2
|
79
79
|
>
|
80
80
|
EOS
|
81
|
-
out.gsub(/0x([a-f\d]+)/, "0x01234567").
|
82
|
-
hello.ai(:plain => true, :raw => false).
|
81
|
+
expect(out.gsub(/0x([a-f\d]+)/, "0x01234567")).to eq(str)
|
82
|
+
expect(hello.ai(:plain => true, :raw => false)).to eq(hello.inspect)
|
83
83
|
end
|
84
84
|
end
|
85
85
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -20,7 +20,7 @@ require 'awesome_print'
|
|
20
20
|
|
21
21
|
def stub_dotfile!
|
22
22
|
dotfile = File.join(ENV["HOME"], ".aprc")
|
23
|
-
File.
|
23
|
+
expect(File).to receive(:readable?).at_least(:once).with(dotfile).and_return(false)
|
24
24
|
end
|
25
25
|
|
26
26
|
def capture!
|
metadata
CHANGED
@@ -1,62 +1,59 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awesome_print
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.6.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Michael Dvorkin
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-12-29 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rspec
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
19
|
+
version: 3.0.0
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
26
|
+
version: 3.0.0
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: fakefs
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: 0.2.1
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: 0.2.1
|
46
|
-
description:
|
41
|
+
description: 'Great Ruby dubugging companion: pretty print Ruby objects to visualize
|
47
42
|
their structure. Supports custom object formatting via plugins'
|
48
43
|
email: mike@dvorkin.net
|
49
44
|
executables: []
|
50
45
|
extensions: []
|
51
46
|
extra_rdoc_files: []
|
52
47
|
files:
|
48
|
+
- ".gitignore"
|
53
49
|
- CHANGELOG
|
54
50
|
- Gemfile
|
55
51
|
- Gemfile.lock
|
56
52
|
- LICENSE
|
57
|
-
- Rakefile
|
58
53
|
- README.md
|
54
|
+
- Rakefile
|
59
55
|
- lib/ap.rb
|
56
|
+
- lib/awesome_print.rb
|
60
57
|
- lib/awesome_print/core_ext/array.rb
|
61
58
|
- lib/awesome_print/core_ext/class.rb
|
62
59
|
- lib/awesome_print/core_ext/kernel.rb
|
@@ -71,44 +68,45 @@ files:
|
|
71
68
|
- lib/awesome_print/ext/mongoid.rb
|
72
69
|
- lib/awesome_print/ext/no_brainer.rb
|
73
70
|
- lib/awesome_print/ext/nokogiri.rb
|
71
|
+
- lib/awesome_print/ext/ostruct.rb
|
74
72
|
- lib/awesome_print/ext/ripple.rb
|
75
73
|
- lib/awesome_print/ext/sequel.rb
|
76
74
|
- lib/awesome_print/formatter.rb
|
77
75
|
- lib/awesome_print/inspector.rb
|
78
76
|
- lib/awesome_print/version.rb
|
79
|
-
-
|
77
|
+
- spec/active_record_helper.rb
|
80
78
|
- spec/colors_spec.rb
|
81
79
|
- spec/formats_spec.rb
|
82
80
|
- spec/methods_spec.rb
|
83
81
|
- spec/misc_spec.rb
|
84
82
|
- spec/objects_spec.rb
|
85
83
|
- spec/spec_helper.rb
|
86
|
-
- .gitignore
|
87
84
|
homepage: http://github.com/michaeldv/awesome_print
|
88
|
-
licenses:
|
85
|
+
licenses:
|
86
|
+
- MIT
|
87
|
+
metadata: {}
|
89
88
|
post_install_message:
|
90
89
|
rdoc_options: []
|
91
90
|
require_paths:
|
92
91
|
- lib
|
93
92
|
required_ruby_version: !ruby/object:Gem::Requirement
|
94
|
-
none: false
|
95
93
|
requirements:
|
96
|
-
- -
|
94
|
+
- - ">="
|
97
95
|
- !ruby/object:Gem::Version
|
98
96
|
version: '0'
|
99
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
|
-
none: false
|
101
98
|
requirements:
|
102
|
-
- -
|
99
|
+
- - ">="
|
103
100
|
- !ruby/object:Gem::Version
|
104
101
|
version: '0'
|
105
102
|
requirements: []
|
106
103
|
rubyforge_project: awesome_print
|
107
|
-
rubygems_version:
|
104
|
+
rubygems_version: 2.2.2
|
108
105
|
signing_key:
|
109
|
-
specification_version:
|
106
|
+
specification_version: 4
|
110
107
|
summary: Pretty print Ruby objects with proper indentation and colors
|
111
108
|
test_files:
|
109
|
+
- spec/active_record_helper.rb
|
112
110
|
- spec/colors_spec.rb
|
113
111
|
- spec/formats_spec.rb
|
114
112
|
- spec/methods_spec.rb
|