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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c7dfac830b2226873d8743473dd83d61876b6a9
4
- data.tar.gz: 855c675468c4279a96a440ece3c4d5de295366c2
3
+ metadata.gz: 7b01212f3cf3685572e747caee1b7f6cb658429f
4
+ data.tar.gz: 31357fddb31515a48b1b2428a0bb5fdd3a1454c6
5
5
  SHA512:
6
- metadata.gz: d34a18daf49f026a9a15250434b3c542f8dd23178169034c3ca3e3dd3bde3ea08fbfe6bc3457b12adc6e5df6757c25e779206d765050cb75c44b311871a1a511
7
- data.tar.gz: c608dcda1b61452952a30750cc0f050db3e7c55c31cecf6959f94274cf26584bd51ed213dd23f86c32bf37e83470870944941ccc4b1dd4f43c400f8f21642b6f
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- spin_r (0.0.2.beta)
4
+ spin_r (0.1.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # SpinR
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/spin_r`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- TODO: Delete this and the text above, and describe your gem
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
- TODO: Write usage instructions here
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
- ## Development
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
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
57
+ ## asciicast
30
58
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
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 'test line'
7
+ puts 'You spin my head right round! right round!'
8
8
  sleep 2
9
- puts 'another test line'
9
+ puts 'When you go down!'
10
10
  sleep 3
11
- puts 'yet another test line'
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'
@@ -8,5 +8,6 @@ module SpinR
8
8
  DOTTED_4 = %w[⠁ ⠂ ⠄ ⡀ ⢀ ⠠ ⠐ ⠈].freeze
9
9
  WORLD = %w[🌍 🌎 🌏].freeze
10
10
  TRIANGLE = %w[◢ ◣ ◤ ◥].freeze
11
+ EMOJI = %w[🌑 🌒 🌓 🌔 🌕 🌝 🌖 🌗 🌘 🌚].freeze
11
12
  end
12
13
  end
@@ -1,3 +1,3 @@
1
1
  module SpinR
2
- VERSION = '0.0.2.beta'.freeze
2
+ VERSION = '0.1.0'.freeze
3
3
  end
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.2.beta
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-05 00:00:00.000000000 Z
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: 1.3.1
127
+ version: '0'
127
128
  requirements: []
128
129
  rubyforge_project:
129
130
  rubygems_version: 2.6.11