spin_r 0.0.2.beta → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTORS.md +1 -0
- data/Gemfile.lock +1 -1
- data/README.md +34 -6
- data/demo.rb +4 -3
- data/lib/spin_r/spinners.rb +1 -0
- data/lib/spin_r/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b01212f3cf3685572e747caee1b7f6cb658429f
|
4
|
+
data.tar.gz: 31357fddb31515a48b1b2428a0bb5fdd3a1454c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 296bca66f0b5b8361adca2e297db92a93b6b7a65294b7172820b6001a404b4d2a60da062916af45b6c642367af68830625a24ed8e8bce039b46881d223e62c0f
|
7
|
+
data.tar.gz: f861f8e5af750a4a42ca5bced7018a8f3af4208a069cac3458ad50b18267e6317654eaeab939e4d376dc82e3bae79bd1cc0b7d40d1148111a2315837a4f69580
|
data/CONTRIBUTORS.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
* **indrajit** ([eendroroy](https://github.com/eendroroy)) - *Owner*
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
# SpinR
|
2
2
|
|
3
|
-
|
3
|
+
[![GitHub tag](https://img.shields.io/github/tag/eendroroy/spin_r.svg)](https://github.com/eendroroy/spin_r)
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/spin_r.svg)](https://rubygems.org/gems/spin_r)
|
5
|
+
[![Downloads](https://img.shields.io/gem/dt/spin_r.svg)](https://rubygems.org/gems/spin_r)
|
6
|
+
[![Contributors](https://img.shields.io/github/contributors/eendroroy/spin_r.svg)](CONTRIBUTORS.md)
|
4
7
|
|
5
|
-
|
8
|
+
|
9
|
+
Show any time consuming process's output with a spinner.
|
6
10
|
|
7
11
|
## Installation
|
8
12
|
|
@@ -22,13 +26,37 @@ Or install it yourself as:
|
|
22
26
|
|
23
27
|
## Usage
|
24
28
|
|
25
|
-
|
29
|
+
```ruby
|
30
|
+
SpinR.spin do
|
31
|
+
sleep 4
|
32
|
+
puts 'You spin my head right round!'
|
33
|
+
end
|
34
|
+
```
|
35
|
+
|
36
|
+
Define spinner style:
|
37
|
+
|
38
|
+
```ruby
|
39
|
+
SpinR.spin SpinR::Spinners::TRIANGLE do
|
40
|
+
sleep 4
|
41
|
+
puts 'You spin my head right round!'
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
Available spinners:
|
26
46
|
|
27
|
-
|
47
|
+
- SpinR::Spinners::TRADITIONAL
|
48
|
+
- SpinR::Spinners::BLOCK
|
49
|
+
- SpinR::Spinners::DOTTED_1
|
50
|
+
- SpinR::Spinners::DOTTED_2
|
51
|
+
- SpinR::Spinners::DOTTED_3
|
52
|
+
- SpinR::Spinners::DOTTED_4
|
53
|
+
- SpinR::Spinners::WORLD
|
54
|
+
- SpinR::Spinners::TRIANGLE
|
55
|
+
- SpinR::Spinners::EMOJI
|
28
56
|
|
29
|
-
|
57
|
+
## asciicast
|
30
58
|
|
31
|
-
|
59
|
+
[![asciicast](http://asciinema.org/a/141149.png)](https://asciinema.org/a/141149)
|
32
60
|
|
33
61
|
## Contributing
|
34
62
|
|
data/demo.rb
CHANGED
@@ -4,11 +4,11 @@ require 'spin_r'
|
|
4
4
|
def test_spinner(spinner, name)
|
5
5
|
block = proc do
|
6
6
|
sleep 1
|
7
|
-
puts '
|
7
|
+
puts 'You spin my head right round! right round!'
|
8
8
|
sleep 2
|
9
|
-
puts '
|
9
|
+
puts 'When you go down!'
|
10
10
|
sleep 3
|
11
|
-
puts '
|
11
|
+
puts 'When you go down town!'
|
12
12
|
end
|
13
13
|
|
14
14
|
puts "SpinR::Spinners::#{name} Spinner"
|
@@ -26,3 +26,4 @@ test_spinner SpinR::Spinners::DOTTED_3, 'DOTTED_3'
|
|
26
26
|
test_spinner SpinR::Spinners::DOTTED_4, 'DOTTED_4'
|
27
27
|
test_spinner SpinR::Spinners::WORLD, 'WORLD'
|
28
28
|
test_spinner SpinR::Spinners::TRIANGLE, 'TRIANGLE'
|
29
|
+
test_spinner SpinR::Spinners::EMOJI, 'EMOJI'
|
data/lib/spin_r/spinners.rb
CHANGED
data/lib/spin_r/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spin_r
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- indrajit
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -92,6 +92,7 @@ files:
|
|
92
92
|
- ".rubocop.yml"
|
93
93
|
- ".travis.yml"
|
94
94
|
- CODE_OF_CONDUCT.md
|
95
|
+
- CONTRIBUTORS.md
|
95
96
|
- Gemfile
|
96
97
|
- Gemfile.lock
|
97
98
|
- LICENSE.txt
|
@@ -121,9 +122,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
121
122
|
version: '0'
|
122
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
124
|
requirements:
|
124
|
-
- - "
|
125
|
+
- - ">="
|
125
126
|
- !ruby/object:Gem::Version
|
126
|
-
version:
|
127
|
+
version: '0'
|
127
128
|
requirements: []
|
128
129
|
rubyforge_project:
|
129
130
|
rubygems_version: 2.6.11
|