Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 README Examples Don't Work #326

Closed
tonytino opened this issue Nov 10, 2017 · 1 comment
Closed

2 README Examples Don't Work #326

tonytino opened this issue Nov 10, 2017 · 1 comment

Comments

@tonytino
Copy link

$ cat 7.rb # Should be cat > 7.rb
require "awesome_print"
some_array = (1..1000).to_a
ap some_array, :limit => true
^D
$ ruby 7.rb
[
    [  0] 1,
    [  1] 2,
    [  2] 3,
    [  3] .. [996],
    [997] 998,
    [998] 999,
    [999] 1000
]

$ cat 8.rb # Should be cat > 8.rb
require "awesome_print"
some_array = (1..1000).to_a
ap some_array, :limit => 5
^D
$ ruby 8.rb
[
    [  0] 1,
    [  1] 2,
    [  2] .. [997],
    [998] 999,
    [999] 1000
]

Really enjoying the gem! The documentation is wonderful, and I really love these examples, but I noticed the last two don't work because of the same typo. I've noted the typo via comments above.

@BryanH
Copy link
Collaborator

BryanH commented Jan 18, 2021

Good catch! I'll fix it

@BryanH BryanH closed this as completed Jan 18, 2021
jclusso added a commit to jclusso/awesome_print that referenced this issue Jul 19, 2022
* source/master:
  Update PRY integration section (awesome-print#411)
  BigDecimal required; test fixes for ruby 3 (awesome-print#408)
  Bump canonical (awesome-print#406)
  Ruby 2.6, 2.7 and 3 fixes (awesome-print#405)
  Added canonical for rubygems (awesome-print#401)
  Updated nokogiri to fix vulnerability scan failures (awesome-print#400)
  Corrected bug in examples (issue awesome-print#326); added example headers (awesome-print#398)
  Updated config to remove deprecations (awesome-print#397)
  Update CHANGELOG & fixed travis fails (awesome-print#394)
  Added mongoid 7 gemsets; ignore vendor/bundle (awesome-print#395)
  Added rails 6.0 and 6.1 tests to travis (awesome-print#396)
  Fix method signature after change in IRB (awesome-print#390)
  Fixes block and proc definition to work with Ruby 3.0.0 (awesome-print#392)
  Retire eol rubies (awesome-print#393)
  Use rails 5.2 when testing frozen strings
  Fix frozen string errors
  Run frozen string specs against ruby 2.6
  Run builds against ruby 2.6 instead of head
  Lock rails 5 to correct sqlite3 version
obourdon pushed a commit to obourdon/awesome_print that referenced this issue Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants