whirly 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d86b20b619830ad0f5a6a91233f718d2ec5013b2
4
- data.tar.gz: 01f56d888e248d61c3f8a93963cd39280a836482
3
+ metadata.gz: 27c78b557a26c8556df8bed870f97d256d9b13f9
4
+ data.tar.gz: 0740cc05c8e08ec9fd361dd97f84f3d7d5d0e875
5
5
  SHA512:
6
- metadata.gz: e959c6a547673ad48be7e05370c15ac0e7ac0e93e0a7ef4f7dc95a9ec64ffcbe86a0409c524d0f07ef6f6bec07e4219e08c19f87e12e18eb8dd4d02ada1aca24
7
- data.tar.gz: 345b15765db9728785617f8031881c7569596a559f8ad17db0367986efe59a706d09c28072de0b5ead41986f979cbff59c8c7eb7f2b3d354aa739199a1644d20
6
+ metadata.gz: 07acf32c1433564b728587786c9e3ef0610d3b4e740341de46b648d784a7a470b6cf764287760068d38af0861ec2bfd0f324e88ebf3905001d2f110cdda6c1d6
7
+ data.tar.gz: 5e69bb87239a176c16f83e16cf154ad984e2b6132256c721d027794154b1ce5feee7d7a77ebfbc23ceace195660044b5693db466ea3e2aee07924a54f4aa7297
@@ -1,5 +1,10 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 0.2.2
4
+
5
+ - More emotions for whirly (the spinner)
6
+ - Add cat spinner
7
+
3
8
  ### 0.2.1
4
9
 
5
10
  - Use macOS terminal app compatible ANSI sequences
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 17 custom spinners and also includes those from the [cli-spinners](https://github.com/sindresorhus/cli-spinners) project.
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
+ ![](whirly.gif)
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:* `"false"`
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 },
@@ -1,4 +1,4 @@
1
1
  module Whirly
2
- VERSION = "0.2.1".freeze
2
+ VERSION = "0.2.2".freeze
3
3
  end
4
4
 
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.1
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-05 00:00:00.000000000 Z
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
Binary file
Binary file
Binary file