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 +4 -4
- data/README.md +2 -0
- data/lib/let_it_fall.rb +4 -5
- data/lib/let_it_fall/code.rb +7 -0
- data/lib/let_it_fall/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb432064d5ae7d3f47bf9f16fdb330264a0f7b57
|
4
|
+
data.tar.gz: 9770afc1020ad1d5b0d8932ea205e5b2fff8d256
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/let_it_fall/code.rb
CHANGED
@@ -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
|
data/lib/let_it_fall/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|