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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab76db037a1c38f0bd372838a92ae03e453f2d81eb73e9c9df5c272b600747dc
4
- data.tar.gz: 45a2b9d7de1d5b9f04a57277364646762fd0b84021e91ee71d7a01e966a9e6e7
3
+ metadata.gz: 4c54bf5089bc3eb9ecb72f953d2b7972ec91f512d17d85f64e0e68bfffe963eb
4
+ data.tar.gz: e25109a0515688c4a3212e2dfa1a9a65a615959f67372a88f77011d8e0a531e0
5
5
  SHA512:
6
- metadata.gz: ba4f13b020e16874a0313582279b5e8d5e32455da5d8cdb6ccfac4fd21a150e6061000099558e5ae280c01ddd8c460bf8b2a1ea40301dec4e87fc47046678013
7
- data.tar.gz: 1f60c6eb6b2b302aabb011323dae7d78ec37855b727d884c5b83256d075b416de84c87b35e6eb6d21d72e9a5670f53331f639a8310e8bbee285235e24a9c5782
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
  [![Gitter](https://badges.gitter.im/amazing-print/community.svg)](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
  ![GitHub API demo](github-api-demo.gif)
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 (ex: in Sinatra templates) you can explicitly request HTML
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
 
@@ -15,7 +15,7 @@ module AmazingPrint
15
15
  end
16
16
 
17
17
  def format
18
- if array.empty?
18
+ if array.length.zero? # rubocop:disable Style/ZeroLengthPredicate
19
19
  '[]'
20
20
  elsif methods_array?
21
21
  methods_array
@@ -7,6 +7,6 @@
7
7
  #------------------------------------------------------------------------------
8
8
  module AmazingPrint
9
9
  def self.version
10
- '1.8.0'
10
+ '1.8.1'
11
11
  end
12
12
  end
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.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Dvorkin
8
- - Kevin McCormackPatrik Wenger
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