firew0rks 0.2.0 → 0.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 596195788e67951a2d044b9f116fccb51c5a55f6269d1eb78b19ed4206d046e6
4
- data.tar.gz: 39231044034cfafb1ffcc704b297bf86e19df5b732897b4ac2336cd55c903b7c
3
+ metadata.gz: 0e27f82bdc52c7baedbdd6e6cef27334dcead8d04047e984a9af9536e2147c75
4
+ data.tar.gz: 0aa153b8662574c41c7889bb8123965bd2edf561d93c3086bbb45897de292ce3
5
5
  SHA512:
6
- metadata.gz: 2cc443a96481e40c9a15211ea2f8449e5e09dddf07e609f0ff6aea2a48246ef5fa8dce3bf32692704af79d921171290766edaf79f07c6d54cba7fbfbb0234024
7
- data.tar.gz: 5c940bc4b31813098c3a5b330cf6c9198681fcc41b2dc460a50d30e6463f58ea61c2b10d181d666832e075886b76da926c36785e26d8abfa8612fa5548d2a48c
6
+ metadata.gz: 71f396074db45724013b28183faf85f41451d2d668c253235f7de7cbcfb3ef9b96b547466ddb41f203009aef4dd4a677bbe4481c2e68094f67b7273e0e0d69d5
7
+ data.tar.gz: 2383c755732bc302e570a0078689b60f256dd6a4e2d68907eb7809c003bcb9af190c12adcba7a236c11a2b746b9906f8a2e83901397ee2244ee3f3c69da8bf16
data/README.md CHANGED
@@ -2,17 +2,19 @@
2
2
 
3
3
  Play fireworks text art animations in your terminal!
4
4
 
5
+ ![fireworks_show](./fireworks_show.gif)
6
+
5
7
  ## Installation
6
8
 
7
- `gem install firew0rks`
9
+ `$ gem install firew0rks`
8
10
 
9
11
  ## Usage
10
12
 
11
- 1) run program
13
+ 1) Run program
12
14
 
13
- `firew0rks`
15
+ `$ firew0rks`
14
16
 
15
- 2) quit
17
+ 2) Quit
16
18
 
17
19
  `Ctrl + C`
18
20
 
data/exe/firew0rks CHANGED
@@ -5,6 +5,14 @@ require 'reline'
5
5
  terminal = Reline::ANSI.new
6
6
  terminal.hide_cursor
7
7
 
8
+ trap("INT") {
9
+ terminal.show_cursor
10
+ puts ""
11
+ puts "Bye."
12
+ exit 0
13
+ }
14
+
15
+
8
16
  begin
9
17
  Fireworks.new.run
10
18
  rescue => error
@@ -12,13 +20,3 @@ rescue => error
12
20
  ensure
13
21
  terminal.show_cursor
14
22
  end
15
-
16
-
17
- trap("INT") {
18
- terminal.show_cursor
19
- exit 0
20
- }
21
-
22
- at_exit {
23
- terminal.show_cursor
24
- }
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Firew0rks
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firew0rks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark24
@@ -21,6 +21,7 @@ files:
21
21
  - README.md
22
22
  - Rakefile
23
23
  - exe/firew0rks
24
+ - fireworks_show.gif
24
25
  - lib/firew0rks.rb
25
26
  - lib/firew0rks/error.rb
26
27
  - lib/firew0rks/frame.rb