let_it_fall 0.1.2 → 0.1.3

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: dae8e6225963938ab9048a2ab1f5be6cbfd435d8
4
- data.tar.gz: 68addd2e604c735d14fdf608d8845d1a05d811c9
3
+ metadata.gz: bb432064d5ae7d3f47bf9f16fdb330264a0f7b57
4
+ data.tar.gz: 9770afc1020ad1d5b0d8932ea205e5b2fff8d256
5
5
  SHA512:
6
- metadata.gz: 07e11407764b1b2809a79459ce81160a8210766e8e6422e0c4f370cb17bd95fecb0fe8311b0457819c93333daa727e51dfacb536b1921ce27cbb5cd1eb4bec45
7
- data.tar.gz: 2f93cfc60afe58dca31e6bd53e2d603b33ed765a904d1cc8a48603674c04d1334e6b384c1fa964e84e4c8f1f98277441c8cd32c429b6cd902f68bbf4766dd771
6
+ metadata.gz: 67efe32729bc5715b816eacfc577888cd2bd52c91b4b8b8b14478d4bed9c21c71315410e90dafafa0cf6e48e10a4152483cb05891e79f872a866edfba47b88af
7
+ data.tar.gz: 7f70a65b63bc666071563a1ad4e8f7dce3f01aa3d7dc3a731eed3a463528024111886ac2731bf690c74e3dc60598388730f428a1fa42d431a0e295e045d1ff2b
data/README.md CHANGED
@@ -24,6 +24,8 @@ Open the Mac terminal, then try following command.
24
24
 
25
25
  You also enjoy over 40 commands other than `beer` like `money`, `face` or `kanji`.
26
26
 
27
+ During the fall running, hitting a return key will change the character to fall.
28
+
27
29
  `code` command is a special. It takes one or more unicodes which specify characters to fall.
28
30
 
29
31
  $ let_it_fall code 0x2660 0x2666 -r # code command with --range option
data/lib/let_it_fall.rb CHANGED
@@ -31,17 +31,16 @@ module LetItFall
31
31
  end
32
32
  end
33
33
 
34
+ trap(:INT) do
35
+ exit(0)
36
+ end
37
+
34
38
  loop do
35
- trap(:INT) do
36
- reset_screen
37
- exit(0)
38
- end
39
39
  print_marks(rand(@x), 0, marks)
40
40
  sleep @interval
41
41
  end
42
42
  ensure
43
43
  reset_screen
44
- exit(0)
45
44
  end
46
45
 
47
46
  private
@@ -51,5 +51,12 @@ module LetItFall
51
51
  latin: [*0x0021..0x007E, *0x00A1..0x00FF, *0x0100..0x017F, *0x0250..0x02AF],
52
52
  dingbat: (0x2701..0x27BF),
53
53
  arrow: (0x2190..0x21FF),
54
+ pizza: 0x1F355,
55
+ oden: 0x1F362,
56
+ sushi: 0x1F363,
57
+ naruto: 0x1F365,
58
+ cookie: 0x1F36A,
59
+ lollipop: 0x1F36D,
60
+
54
61
  }
55
62
  end
@@ -1,3 +1,3 @@
1
1
  module LetItFall
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: let_it_fall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - kyoendo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-05 00:00:00.000000000 Z
11
+ date: 2014-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor