README.md in whirly-0.2.6 vs README.md in whirly-0.3.0

- old
+ new

@@ -1,6 +1,6 @@ -# Whirly 😀 [![[version]](https://badge.fury.io/rb/whirly.svg)](http://badge.fury.io/rb/whirly) [![[travis]](https://travis-ci.org/janlelis/whirly.svg)](https://travis-ci.org/janlelis/whirly) +# Whirly 😀 [![[version]](https://badge.fury.io/rb/whirly.svg)](https://badge.fury.io/rb/whirly) [<img src="https://github.com/janlelis/whirly/workflows/Test/badge.svg" />](https://github.com/janlelis/whirly/actions/workflows/test.yml) A simple, colorful and customizable terminal spinner library for Ruby. It comes with 24 custom spinners and also includes those from the [cli-spinners](https://github.com/sindresorhus/cli-spinners) project. ## Demonstration @@ -10,11 +10,11 @@ [Play on asciinema](https://asciinema.org/a/88198?size=big) ### Bundled Spinners from CLI Spinners -![](https://raw.githubusercontent.com/sindresorhus/cli-spinners/master/screenshot.gif) +![](https://raw.githubusercontent.com/sindresorhus/cli-spinners/main/screenshot.gif) [Play on asciinema](https://asciinema.org/a/9mlcoussb137m32swwuqtb2p1?size=big) ## Setup @@ -63,11 +63,11 @@ Whirly.start spinner: "pong", color: false, status: "The Game of Pong" do sleep 10 end ``` -Also see the [examples directory](https://github.com/janlelis/whirly/tree/master/examples) for example scripts. +Also see the [examples directory](https://github.com/janlelis/whirly/tree/main/examples) for example scripts. ### Configuring Whirly You can pass the same options you would pass to `.start` to `.configure` instead to create a persistent configuration that will be used by `.start`: @@ -97,11 +97,11 @@ ## Spinners ### Included Spinners -See [`data/whirly-static-spinnes.json`](https://github.com/janlelis/whirly/blob/master/data/whirly-static-spinners.json), [`lib/whirly/spinners/whirly.rb`](https://github.com/janlelis/whirly/blob/master/lib/whirly/spinners/whirly.rb) and [cli-spinners](https://github.com/sindresorhus/cli-spinners). You can get a demonstration of all bundled spinners by running the [`examples/all_spinners.rb`](https://github.com/janlelis/whirly/blob/master/examples/all_spinners.rb) script. +See [`data/whirly-static-spinnes.json`](https://github.com/janlelis/whirly/blob/main/data/whirly-static-spinners.json), [`lib/whirly/spinners/whirly.rb`](https://github.com/janlelis/whirly/blob/main/lib/whirly/spinners/whirly.rb) and [cli-spinners](https://github.com/sindresorhus/cli-spinners). You can get a demonstration of all bundled spinners by running the [`examples/all_spinners.rb`](https://github.com/janlelis/whirly/blob/main/examples/all_spinners.rb) script. ## All `Whirly.start` / `Whirly.configure` Configuration Options ### Main Options @@ -210,19 +210,19 @@ #### `stream:` *Default:* `$stdout` -You can pass in an [IO](https://ruby-doc.org/core-2.3.1/IO.html)-like object, if you want to display *Whirly* on an other stream than `$stdout`. +You can pass in an [IO](https://ruby-doc.org/core/IO.html)-like object, if you want to display *Whirly* on an other stream than `$stdout`. ## Full Spinner Hash Format A full spinner is defined by a hash which can have the following key-value pairs. Please note that in order to keep the format more portable, all keys are strings and not Ruby symbols. Except for `"frames"` and `"proc"`, all options are overwritable when starting/configuring Whirly. See the included spinners for example definitions of spinners. ### `"frames"` -An [Array](https://ruby-doc.org/core-2.3.1/Array.html) or [Enumerable](https://ruby-doc.org/core-2.3.1/Enumerable.html) of strings that will be used as the spinner icon. +An [Array](https://ruby-doc.org/core/Array.html) or [Enumerable](https://ruby-doc.org/core/Enumerable.html) of strings that will be used as the spinner icon. ### `"proc"` Instead of using `"frames"`: A proc which will generate the next frame with each call. @@ -237,22 +237,22 @@ - `"linear"`: Cycle through all frames in normal order - `"reverse"`: Cycle through all frames in reverse order - `"swing"`: Cycle through all frames in normal order, and then in reverse order, but only play first and last frame once each round - `"random"`: Play random frames -Please note: While `"linear"` also works with frames that are just an [Enumerable](https://ruby-doc.org/core-2.3.1/Enumerable.html), all other frame modes require the object to be representable as an [Array](https://ruby-doc.org/core-2.3.1/Array.html). +Please note: While `"linear"` also works with frames that are just an [Enumerable](https://ruby-doc.org/core/Enumerable.html), all other frame modes require the object to be representable as an [Array](https://ruby-doc.org/core/Array.html). ### `"stop"` A frame to be used to end the spinner icon animation. ## Remarks, Troubleshooting, Caveats - Interval is milliseconds, but don't rely on exact timing - Will not do anything if stream is not a real console (or `non_tty: true` is passed) - Colors not working? Be sure to include the [paint](https://github.com/janlelis/paint/) gem in your Gemfile -- Don't set very short intervals (or it might affect performance substantly) +- Don't set very short intervals (or it might affect performance substantially) ## MIT License -- Copyright (C) 2016 Jan Lelis <http://janlelis.com>. Released under the MIT license. +- Copyright (C) 2016 Jan Lelis <https://janlelis.com>. Released under the MIT license. - Contains data from cli-spinners: MIT License, Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)