1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00

Update urls to point to awesome-print organization

Before this commit a number or our urls were out of date which
lead to problems such as our build status on Travis being invalid
and people being asked to clone from an old version of the
repository.

Thanks to Michael Dvorkin for his many years of incredible work
on this project and for creating this organization so that the
project could live on with the help of others.
This commit is contained in:
Gerard Caulfield 2016-06-21 23:07:59 +10:00
parent 10a815fd1a
commit fb01426c4f
No known key found for this signature in database
GPG key ID: 623B327128A9BEC3
4 changed files with 14 additions and 14 deletions

View file

@ -6,7 +6,7 @@ We love pull requests. Here's a quick guide:
1. Create your feature branch (`git checkout -b my-new-feature`) 1. Create your feature branch (`git checkout -b my-new-feature`)
1. Update [CHANGELOG.md](https://github.com/michaeldv/awesome_print/blob/master/CHANGELOG.md) with a brief description of your changes under the `unreleased` heading. 1. Update [CHANGELOG.md](https://github.com/awesome-print/awesome_print/blob/master/CHANGELOG.md) with a brief description of your changes under the `unreleased` heading.
1. Add/Update tests were appropriate 1. Add/Update tests were appropriate

View file

@ -5,7 +5,7 @@
[![Code Climate][code_climate_badge]][code_climate] [![Code Climate][code_climate_badge]][code_climate]
[![Code Climate Coverage][code_climate_coverage_badge]][code_climate] [![Code Climate Coverage][code_climate_coverage_badge]][code_climate]
[![RubyGems][gem_downloads_badge]][ruby_gems] [![RubyGems][gem_downloads_badge]][ruby_gems]
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/michaeldv/awesome_print?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/awesome-print/awesome_print?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Awesome Print is a Ruby library that pretty prints Ruby objects in full color Awesome Print is a Ruby library that pretty prints Ruby objects in full color
@ -21,7 +21,7 @@ v2.0 will *require* Ruby v1.9.3 or later and Rails v3.0 or later.
$ gem install awesome_print $ gem install awesome_print
# Cloning the repository # Cloning the repository
$ git clone git://github.com/michaeldv/awesome_print.git $ git clone git://github.com/awesome-print/awesome_print.git
### Usage ### ### Usage ###
@ -340,8 +340,8 @@ Released under the MIT license. See LICENSE file for details.
[gem_version_badge]: https://img.shields.io/gem/v/awesome_print.svg?style=flat [gem_version_badge]: https://img.shields.io/gem/v/awesome_print.svg?style=flat
[gem_downloads_badge]: http://img.shields.io/gem/dt/awesome_print.svg?style=flat [gem_downloads_badge]: http://img.shields.io/gem/dt/awesome_print.svg?style=flat
[ruby_gems]: http://rubygems.org/gems/awesome_print [ruby_gems]: http://rubygems.org/gems/awesome_print
[travis_ci]: http://travis-ci.org/michaeldv/awesome_print [travis_ci]: http://travis-ci.org/awesome-print/awesome_print
[travis_ci_badge]: https://img.shields.io/travis/michaeldv/awesome_print/master.svg?style=flat [travis_ci_badge]: https://img.shields.io/travis/awesome-print/awesome_print/master.svg?style=flat
[code_climate]: https://codeclimate.com/github/michaeldv/awesome_print [code_climate]: https://codeclimate.com/github/awesome-print/awesome_print
[code_climate_badge]: http://img.shields.io/codeclimate/github/michaeldv/awesome_print.svg?style=flat [code_climate_badge]: http://img.shields.io/codeclimate/github/awesome-print/awesome_print.svg?style=flat
[code_climate_coverage_badge]: https://codeclimate.com/github/michaeldv/awesome_print/badges/coverage.svg [code_climate_coverage_badge]: https://codeclimate.com/github/awesome-print/awesome_print/badges/coverage.svg

View file

@ -428,7 +428,7 @@ RSpec.describe "Methods arrays" do
expect(out).to eq("[\n [0] none() Hello\n [1] one() Hello\n]") expect(out).to eq("[\n [0] none() Hello\n [1] one() Hello\n]")
end end
# See https://github.com/michaeldv/awesome_print/issues/30 for details. # See https://github.com/awesome-print/awesome_print/issues/30 for details.
it "grepping methods and converting them to_sym should work as expected" do it "grepping methods and converting them to_sym should work as expected" do
class Hello class Hello
private private

View file

@ -25,14 +25,14 @@ RSpec.describe "AwesomePrint" do
expect(weird.new.ai(:plain => false)).to eq("ice") expect(weird.new.ai(:plain => false)).to eq("ice")
end end
# See https://github.com/michaeldv/awesome_print/issues/35 # See https://github.com/awesome-print/awesome_print/issues/35
it "handle array grep when pattern contains / chapacter" do it "handle array grep when pattern contains / chapacter" do
hash = { "1/x" => 1, "2//x" => :"2" } hash = { "1/x" => 1, "2//x" => :"2" }
grepped = hash.keys.sort.grep(/^(\d+)\//) { $1 } grepped = hash.keys.sort.grep(/^(\d+)\//) { $1 }
expect(grepped.ai(:plain => true, :multiline => false)).to eq('[ "1", "2" ]') expect(grepped.ai(:plain => true, :multiline => false)).to eq('[ "1", "2" ]')
end end
# See https://github.com/michaeldv/awesome_print/issues/85 # See https://github.com/awesome-print/awesome_print/issues/85
if RUBY_VERSION >= "1.8.7" if RUBY_VERSION >= "1.8.7"
it "handle array grep when a method is defined in C and thus doesn't have a binding" do it "handle array grep when a method is defined in C and thus doesn't have a binding" do
arr = (0..6).to_a arr = (0..6).to_a
@ -58,14 +58,14 @@ RSpec.describe "AwesomePrint" do
expect(ENV.ai).to eq(ENV.to_hash.ai) expect(ENV.ai).to eq(ENV.to_hash.ai)
end end
# See https://github.com/michaeldv/awesome_print/issues/134 # See https://github.com/awesome-print/awesome_print/issues/134
it "IPAddr workaround" do it "IPAddr workaround" do
require "ipaddr" require "ipaddr"
ipaddr = IPAddr.new("3ffe:505:2::1") ipaddr = IPAddr.new("3ffe:505:2::1")
expect(ipaddr.ai).to eq("#<IPAddr: IPv6:3ffe:0505:0002:0000:0000:0000:0000:0001/ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff>") expect(ipaddr.ai).to eq("#<IPAddr: IPv6:3ffe:0505:0002:0000:0000:0000:0000:0001/ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff>")
end end
# See https://github.com/michaeldv/awesome_print/issues/139 # See https://github.com/awesome-print/awesome_print/issues/139
it "Object that overrides == and expects the :id method" do it "Object that overrides == and expects the :id method" do
weird = Class.new do weird = Class.new do
# Raises NoMethodError: undefined method `id' when "other" is nil or ENV. # Raises NoMethodError: undefined method `id' when "other" is nil or ENV.
@ -137,7 +137,7 @@ EOS
AwesomePrint.defaults = nil AwesomePrint.defaults = nil
end end
# See https://github.com/michaeldv/awesome_print/issues/98 # See https://github.com/awesome-print/awesome_print/issues/98
it "should properly merge the defaults" do it "should properly merge the defaults" do
AwesomePrint.defaults = { :indent => -2, :sort_keys => true } AwesomePrint.defaults = { :indent => -2, :sort_keys => true }
hash = { [0, 0, 255] => :yellow, :red => "rgb(255, 0, 0)", "magenta" => "rgb(255, 0, 255)" } hash = { [0, 0, 255] => :yellow, :red => "rgb(255, 0, 0)", "magenta" => "rgb(255, 0, 255)" }