whirly 0.2.1 → 0.2.2
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +9 -6
- data/data/whirly-static-spinners.json +89 -0
- data/lib/whirly/spinners/whirly.rb +0 -1
- data/lib/whirly/version.rb +1 -1
- data/whirly.gif +0 -0
- metadata +3 -6
- data/.CHANGELOG.md.swp +0 -0
- data/lib/.whirly.rb.swp +0 -0
- data/spec/.whirly_spec.rb.swp +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27c78b557a26c8556df8bed870f97d256d9b13f9
|
4
|
+
data.tar.gz: 0740cc05c8e08ec9fd361dd97f84f3d7d5d0e875
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07acf32c1433564b728587786c9e3ef0610d3b4e740341de46b648d784a7a470b6cf764287760068d38af0861ec2bfd0f324e88ebf3905001d2f110cdda6c1d6
|
7
|
+
data.tar.gz: 5e69bb87239a176c16f83e16cf154ad984e2b6132256c721d027794154b1ce5feee7d7a77ebfbc23ceace195660044b5693db466ea3e2aee07924a54f4aa7297
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
# Whirly 😀 [![[version]](https://badge.fury.io/rb/whirly.svg)](http://badge.fury.io/rb/whirly) [![[travis]](https://travis-ci.org/janlelis/whirly.png)](https://travis-ci.org/janlelis/whirly)
|
2
2
|
|
3
|
-
A simple, colorful and customizable terminal spinner library for Ruby. It comes with
|
3
|
+
A simple, colorful and customizable terminal spinner library for Ruby. It comes with 18 custom spinners and also includes those from the [cli-spinners](https://github.com/sindresorhus/cli-spinners) project.
|
4
4
|
|
5
5
|
## Demonstration
|
6
|
+
|
7
|
+

|
8
|
+
|
6
9
|
### Bundled Whirly Spinners
|
7
10
|
|
8
11
|
[Play on asciinema](https://asciinema.org/a/88198?size=big)
|
@@ -104,10 +107,10 @@ See [`data/whirly-static-spinnes.json`](https://github.com/janlelis/whirly/blob/
|
|
104
107
|
|
105
108
|
#### `spinner:`
|
106
109
|
|
107
|
-
You have multiple ways of telling *Whirly* which spinner should be used. You can pass the following to the `spinner:` option:
|
108
|
-
|
109
110
|
*Default:* `"whirly"`
|
110
111
|
|
112
|
+
You have multiple ways of telling *Whirly* which spinner should be used. You can pass the following to the `spinner:` option:
|
113
|
+
|
111
114
|
- The name of a bundled spinner
|
112
115
|
- An array of spinner frames to use
|
113
116
|
- A proc which generates the frames dynamically
|
@@ -137,7 +140,7 @@ If set to `2`, ambiguous Unicode charatcers will be treated as 2 colums wide. Se
|
|
137
140
|
|
138
141
|
*Default:* `"restore"`
|
139
142
|
|
140
|
-
Can be set to `"line"` to use an different way of producing ANSI escape sequences (experimental)
|
143
|
+
Can be set to `"line"` to use an different way of producing ANSI escape sequences necessary (experimental).
|
141
144
|
|
142
145
|
#### `append_newline:`
|
143
146
|
|
@@ -167,7 +170,7 @@ By default, the terminal cursor gets hidden while displaying the spinner. This a
|
|
167
170
|
|
168
171
|
*Default:* `"linear"`
|
169
172
|
|
170
|
-
Instructs Whirly to play the frames in a different order. Possible values: `"linear"`, `"reverse"`, `"swing"`, and `"random"`. See spinner format section for more details.
|
173
|
+
Instructs Whirly to play the frames in a different order. Possible values: `"linear"`, `"reverse"`, `"swing"`, and `"random"`. See [spinner format section](https://github.com/janlelis/whirly#mode-1) for more details.
|
171
174
|
|
172
175
|
#### `non_tty:`
|
173
176
|
|
@@ -183,7 +186,7 @@ You can set this to `"below"` to let Whirly appear one line below its normal pos
|
|
183
186
|
|
184
187
|
#### `remove_after_stop:`
|
185
188
|
|
186
|
-
*Default:* `
|
189
|
+
*Default:* `false`
|
187
190
|
|
188
191
|
Causes the last frame to be removed after the spinner stopped.
|
189
192
|
|
@@ -82,5 +82,94 @@
|
|
82
82
|
"𝍬",
|
83
83
|
"𝍭"
|
84
84
|
]
|
85
|
+
},
|
86
|
+
"whirly": {
|
87
|
+
"interval": 200,
|
88
|
+
"mode": "random",
|
89
|
+
"frames": [
|
90
|
+
"😀",
|
91
|
+
"😁",
|
92
|
+
"😂",
|
93
|
+
"😃",
|
94
|
+
"😄",
|
95
|
+
"😅",
|
96
|
+
"😆",
|
97
|
+
"😇",
|
98
|
+
"😈",
|
99
|
+
"😉",
|
100
|
+
"😊",
|
101
|
+
"😋",
|
102
|
+
"😌",
|
103
|
+
"😍",
|
104
|
+
"😎",
|
105
|
+
"😏",
|
106
|
+
"😐",
|
107
|
+
"😑",
|
108
|
+
"😒",
|
109
|
+
"😓",
|
110
|
+
"😔",
|
111
|
+
"😕",
|
112
|
+
"😖",
|
113
|
+
"😗",
|
114
|
+
"😘",
|
115
|
+
"😙",
|
116
|
+
"😚",
|
117
|
+
"😛",
|
118
|
+
"😜",
|
119
|
+
"😝",
|
120
|
+
"😞",
|
121
|
+
"😟",
|
122
|
+
"😠",
|
123
|
+
"😡",
|
124
|
+
"😢",
|
125
|
+
"😣",
|
126
|
+
"😤",
|
127
|
+
"😥",
|
128
|
+
"😦",
|
129
|
+
"😧",
|
130
|
+
"😨",
|
131
|
+
"😩",
|
132
|
+
"😪",
|
133
|
+
"😫",
|
134
|
+
"😬",
|
135
|
+
"😭",
|
136
|
+
"😮",
|
137
|
+
"😯",
|
138
|
+
"😰",
|
139
|
+
"😱",
|
140
|
+
"😲",
|
141
|
+
"😳",
|
142
|
+
"😴",
|
143
|
+
"😵",
|
144
|
+
"😶",
|
145
|
+
"🙁",
|
146
|
+
"🙂",
|
147
|
+
"🙃",
|
148
|
+
"🙄",
|
149
|
+
"😷",
|
150
|
+
"🤐",
|
151
|
+
"🤑",
|
152
|
+
"🤒",
|
153
|
+
"🤓",
|
154
|
+
"🤔",
|
155
|
+
"🤕",
|
156
|
+
"🤖",
|
157
|
+
"🤗"
|
158
|
+
]
|
159
|
+
},
|
160
|
+
"cat": {
|
161
|
+
"interval": 200,
|
162
|
+
"mode": "random",
|
163
|
+
"frames": [
|
164
|
+
"😸",
|
165
|
+
"😹",
|
166
|
+
"😺",
|
167
|
+
"😻",
|
168
|
+
"😼",
|
169
|
+
"😽",
|
170
|
+
"😾",
|
171
|
+
"😿",
|
172
|
+
"🙀"
|
173
|
+
]
|
85
174
|
}
|
86
175
|
}
|
@@ -3,7 +3,6 @@ require "json"
|
|
3
3
|
module Whirly
|
4
4
|
module Spinners
|
5
5
|
WHIRLY = {
|
6
|
-
"whirly" => { "proc" => ->(){ [0x1F600 + rand(55) ].pack("U") }, "interval" => 200 },
|
7
6
|
"random_dots" => { "proc" => ->(){ [ 0x2800 + rand(256)].pack("U") }, "interval" => 100 },
|
8
7
|
"circled_letter" => { "proc" => ->(){ [ 0x24B6 + rand(26) ].pack("U") }, "interval" => 120 },
|
9
8
|
"circled_number" => { "proc" => ->(){ [ 0x2460 + rand(9) ].pack("U") }, "interval" => 120 },
|
data/lib/whirly/version.rb
CHANGED
data/whirly.gif
ADDED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whirly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Lelis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unicode-display_width
|
@@ -32,7 +32,6 @@ executables: []
|
|
32
32
|
extensions: []
|
33
33
|
extra_rdoc_files: []
|
34
34
|
files:
|
35
|
-
- ".CHANGELOG.md.swp"
|
36
35
|
- ".gitignore"
|
37
36
|
- ".gitmodules"
|
38
37
|
- ".travis.yml"
|
@@ -51,15 +50,14 @@ files:
|
|
51
50
|
- examples/multi_lines.rb
|
52
51
|
- examples/single.rb
|
53
52
|
- examples/status.rb
|
54
|
-
- lib/.whirly.rb.swp
|
55
53
|
- lib/whirly.rb
|
56
54
|
- lib/whirly/spinners.rb
|
57
55
|
- lib/whirly/spinners/cli.rb
|
58
56
|
- lib/whirly/spinners/whirly.rb
|
59
57
|
- lib/whirly/version.rb
|
60
|
-
- spec/.whirly_spec.rb.swp
|
61
58
|
- spec/whirly_spec.rb
|
62
59
|
- whirly.gemspec
|
60
|
+
- whirly.gif
|
63
61
|
homepage: https://github.com/janlelis/whirly
|
64
62
|
licenses:
|
65
63
|
- MIT
|
@@ -85,5 +83,4 @@ signing_key:
|
|
85
83
|
specification_version: 4
|
86
84
|
summary: 'Whirly: The friendly terminal spinner'
|
87
85
|
test_files:
|
88
|
-
- spec/.whirly_spec.rb.swp
|
89
86
|
- spec/whirly_spec.rb
|
data/.CHANGELOG.md.swp
DELETED
Binary file
|
data/lib/.whirly.rb.swp
DELETED
Binary file
|
data/spec/.whirly_spec.rb.swp
DELETED
Binary file
|