amazing_print 1.8.0 → 1.8.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +7 -7
- data/lib/amazing_print/formatters/array_formatter.rb +1 -1
- data/lib/amazing_print/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c54bf5089bc3eb9ecb72f953d2b7972ec91f512d17d85f64e0e68bfffe963eb
|
4
|
+
data.tar.gz: e25109a0515688c4a3212e2dfa1a9a65a615959f67372a88f77011d8e0a531e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53eb2f3a3bba9510f098ea1d550a2c4ce2080f21c4b19daea1e40e7b4fdc8df4336ef494bdb2626892e73f17ab6dc4bc2001dea1f64168d8d331baeb998ee273
|
7
|
+
data.tar.gz: 5cf3937b23f27e89a75c2a0adbf0353f8a2fb5f936f836b44f7e152559bdb0c7f8b1e30c95f9bca506342bf08b2da3e29b377bf1757ccf031de7e24cf7ccdc99
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## Unreleased
|
4
|
+
|
5
|
+
## v1.8.1
|
6
|
+
|
7
|
+
- Fix authors list in gemspec #128
|
8
|
+
- Use array.length.zero? to avoid issues with ActiveRecord collection proxy #129
|
9
|
+
- grammar glowup in README.md #130
|
10
|
+
|
3
11
|
## v1.8.0
|
4
12
|
|
5
13
|
- Drop Ruby 3.0 and add Ruby 3.4 #125
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
|
9
9
|
[](https://gitter.im/amazing-print/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
|
10
10
|
|
11
|
-
AmazingPrint is a fork of [AwesomePrint](https://github.com/awesome-print/awesome_print) which became stale and should be used in its place to avoid conflicts. It is a Ruby library that pretty prints Ruby objects in full color exposing their internal structure with proper indentation. Rails ActiveRecord objects and usage within Rails templates are supported via included mixins.
|
11
|
+
AmazingPrint is a fork of [AwesomePrint](https://github.com/awesome-print/awesome_print), which became stale, and should be used in its place to avoid conflicts. It is a Ruby library that pretty prints Ruby objects in full color, exposing their internal structure with proper indentation. Rails ActiveRecord objects and usage within Rails templates are supported via included mixins.
|
12
12
|
|
13
13
|

|
14
14
|
|
@@ -266,7 +266,7 @@ rails>
|
|
266
266
|
```
|
267
267
|
|
268
268
|
### IRB integration ###
|
269
|
-
To use amazing_print as default formatter in irb and Rails console add the following
|
269
|
+
To use amazing_print as the default formatter in irb and the Rails console, add the following
|
270
270
|
code to your ~/.irbrc file:
|
271
271
|
|
272
272
|
```ruby
|
@@ -293,7 +293,7 @@ By default, this logs at the :debug level. You can override that globally with:
|
|
293
293
|
|
294
294
|
:log_level => :info
|
295
295
|
|
296
|
-
in the custom defaults (see below). You can also override on a per call basis with:
|
296
|
+
in the custom defaults (see below). You can also override it on a per call basis with:
|
297
297
|
|
298
298
|
logger.ap object, :warn
|
299
299
|
# or
|
@@ -310,7 +310,7 @@ within Rails templates. For example:
|
|
310
310
|
<%= ap @accounts.first %> # ERB
|
311
311
|
!= ap @accounts.first # HAML
|
312
312
|
|
313
|
-
With other web frameworks (
|
313
|
+
With other web frameworks (for example in Sinatra templates) you can explicitly request HTML
|
314
314
|
formatting:
|
315
315
|
|
316
316
|
<%= ap @accounts.first, :html => true %>
|
@@ -324,8 +324,8 @@ red text # (it's red)
|
|
324
324
|
```
|
325
325
|
|
326
326
|
### Setting Custom Defaults ###
|
327
|
-
You can set your own default options by creating ``aprc`` file in your `$XDG_CONFIG_HOME`
|
328
|
-
directory (defaults to `~/.config` if undefined). Within that file assign your defaults
|
327
|
+
You can set your own default options by creating an ``aprc`` file in your `$XDG_CONFIG_HOME`
|
328
|
+
directory (which defaults to `~/.config` if undefined). Within that file assign your defaults
|
329
329
|
to ``AmazingPrint.defaults``.
|
330
330
|
For example:
|
331
331
|
|
@@ -340,7 +340,7 @@ AmazingPrint.defaults = {
|
|
340
340
|
}
|
341
341
|
```
|
342
342
|
|
343
|
-
The previous `~/.aprc` location is still supported as fallback.
|
343
|
+
The previous `~/.aprc` location is still supported as a fallback.
|
344
344
|
|
345
345
|
## Versioning
|
346
346
|
|
metadata
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amazing_print
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Dvorkin
|
8
|
-
- Kevin
|
8
|
+
- Kevin McCormack
|
9
|
+
- Patrik Wenger
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
12
|
date: 1980-01-02 00:00:00.000000000 Z
|