let_it_fall 0.2.0 → 0.3.0
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 -2
- data/let_it_fall.gemspec +1 -0
- data/lib/let_it_fall/cli.rb +1 -1
- data/lib/let_it_fall/code.rb +26 -75
- data/lib/let_it_fall/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dd3794554e29ba6e0554bd677774d30392b8472
|
4
|
+
data.tar.gz: 15d66efe35fad03439c2d02438bb339453f4c485
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6adabe767049d0bb0eb4da0bff6a1f2d854835bd9d51ff3c178bf47242476a02ed98462bd1495d6212d9011807dd50483120688dde53981a9f219838108e3289
|
7
|
+
data.tar.gz: ec79449d9d2ef563c3f747fc4b89a23cd4761fec23d9ca93fbd89e37cf85475a85821f5a709bef86496e05784f15dae86c743cc451c812aaf17d53df8bf5decc
|
data/README.md
CHANGED
@@ -22,7 +22,7 @@ Open the Mac terminal, then try following command.
|
|
22
22
|
|
23
23
|
$ let_it_fall beer
|
24
24
|
|
25
|
-
You also enjoy over
|
25
|
+
You also enjoy over 800 commands other than `beer` like `sunflower`, `faces` or `moons`.
|
26
26
|
|
27
27
|
During the fall running, hitting a return key will change the character to fall.
|
28
28
|
|
@@ -38,7 +38,7 @@ Or try `matrix` command.
|
|
38
38
|
|
39
39
|
If you prefer another character rather than latin one, pass it to the command.
|
40
40
|
|
41
|
-
$ let_it_fall matrix
|
41
|
+
$ let_it_fall matrix kanjis
|
42
42
|
|
43
43
|
These command takes `--speed` option(ex. -s=2), and some also takes `--color` option(ex. -c=31). `let_it_fall -h` for more info.
|
44
44
|
|
data/let_it_fall.gemspec
CHANGED
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.required_ruby_version = '>=2.0.0'
|
22
22
|
|
23
23
|
spec.add_dependency "thor"
|
24
|
+
spec.add_dependency "emot", ">= 0.0.2"
|
24
25
|
spec.add_development_dependency "bundler", "~> 1.6"
|
25
26
|
spec.add_development_dependency "rake"
|
26
27
|
spec.add_development_dependency "rspec"
|
data/lib/let_it_fall/cli.rb
CHANGED
@@ -24,7 +24,7 @@ module LetItFall
|
|
24
24
|
desc "matrix [MARK]", "Let it matrix"
|
25
25
|
option :speed, aliases:'-s', default:1, type: :numeric
|
26
26
|
option :color, aliases:'-c', default:32, type: :numeric
|
27
|
-
def matrix(mark=:
|
27
|
+
def matrix(mark=:latins)
|
28
28
|
run(mark, options[:speed], options[:color], true)
|
29
29
|
end
|
30
30
|
|
data/lib/let_it_fall/code.rb
CHANGED
@@ -1,77 +1,28 @@
|
|
1
|
-
|
2
|
-
CODESET = {
|
3
|
-
face: [*0x1F600..0x1F64F] - [*0x1F641..0x1F644],
|
4
|
-
snow: 0x2736,
|
5
|
-
gem: 0x1F48E,
|
6
|
-
python: 0x1F40D,
|
7
|
-
ghost: 0x1F47B,
|
8
|
-
cocktail: 0x1F378,
|
9
|
-
kanji: (0x4E00..0x4F00),
|
10
|
-
juice: 0x1F379,
|
11
|
-
time: (0x1F550..0x1f567),
|
12
|
-
beer: 0x1F37A,
|
13
|
-
tower: 0x1F5FC,
|
14
|
-
sorry: 0x1F647,
|
15
|
-
cake: 0x1F382,
|
16
|
-
sparkle: 0x2728,
|
17
|
-
animal: (0x1F40C..0x1F43C),
|
18
|
-
cyclone: 0x1F300,
|
19
|
-
octopus: 0x1F419,
|
20
|
-
perl: 0x1F42A,
|
21
|
-
dancer: 0x1F483,
|
22
|
-
bee: 0x1F41D,
|
23
|
-
downarrow: 0x2935,
|
24
|
-
cross: 0x274C,
|
25
|
-
dolphin: 0x1F42C,
|
26
|
-
wine: 0x1F377,
|
27
|
-
food: (0x1F344..0x1F373),
|
28
|
-
japan: 0x1F5FE,
|
29
|
-
bikini: 0x1F459,
|
30
|
-
oden: 0x1F362,
|
31
|
-
wavy: 0x3030,
|
32
|
-
please: 0x1F64F,
|
33
|
-
apple: 0x1F34E,
|
34
|
-
paw: 0x1F43E,
|
35
|
-
eyes: 0x1F440,
|
36
|
-
smoking: 0x1F6AC,
|
37
|
-
m: 0x24C2,
|
38
|
-
thunder: 0x26A1,
|
39
|
-
toilet: 0x1F6BD,
|
40
|
-
cactus: 0x1F335,
|
41
|
-
mouth: 0x1F444,
|
42
|
-
love: (0x1F493..0x1F49F),
|
43
|
-
nose: 0x1F443,
|
44
|
-
snowman: 0x26C4,
|
45
|
-
latin: [*0x0021..0x007E, *0x00A1..0x00FF, *0x0100..0x017F, *0x0250..0x02AF],
|
46
|
-
poo: 0x1F4A9,
|
47
|
-
money: [0x1F4B0, 0x1F4B3, 0x1F4B4, 0x1F4B5, 0x1F4B6, 0x1F4B7, 0x1F4B8],
|
48
|
-
pushpin: 0x1F4CD,
|
49
|
-
ear: 0x1F442,
|
50
|
-
sushi: 0x1F363,
|
51
|
-
arrow: (0x2190..0x21FF),
|
52
|
-
hocho: 0x1F52A,
|
53
|
-
tongue: 0x1F445,
|
54
|
-
soccer: 0x26BD,
|
55
|
-
beers: 0x1F37B,
|
56
|
-
oreilly: (0x1F40C..0x1F43C),
|
57
|
-
beginner: 0x1F530,
|
58
|
-
helicopter: 0x1F681,
|
59
|
-
earth: [0x1F30D, 0x1F30E],
|
60
|
-
liberty: 0x1F5FD,
|
61
|
-
angel: 0x1F47C,
|
62
|
-
alien: 0x1F47D,
|
63
|
-
uparrow: 0x2934,
|
64
|
-
pistol: 0x1F52B,
|
65
|
-
kiss: 0x1F48B,
|
66
|
-
alphabet: [*0x0041..0x005A, *0x0061..0x007A],
|
67
|
-
pizza: 0x1F355,
|
68
|
-
dingbat: (0x2701..0x27BF),
|
69
|
-
naruto: 0x1F365,
|
70
|
-
moon: (0x1F311..0x1F315),
|
71
|
-
cookie: 0x1F36A,
|
72
|
-
christmas: [0x1F384, 0x1F385, 0x1F370],
|
73
|
-
fuji: 0x1F5FB,
|
74
|
-
lollipop: 0x1F36D,
|
1
|
+
require "emot"
|
75
2
|
|
76
|
-
|
3
|
+
module LetItFall
|
4
|
+
CODESET =
|
5
|
+
Emot::MAP.reject do |name, codes|
|
6
|
+
(codes.size != 1) || (name.match /shell/)
|
7
|
+
end.merge(
|
8
|
+
{
|
9
|
+
faces: [*0x1F600..0x1F64F] - [*0x1F641..0x1F644],
|
10
|
+
kanjis: (0x4E00..0x4F00),
|
11
|
+
times: (0x1F550..0x1f567),
|
12
|
+
animals: (0x1F40C..0x1F43C),
|
13
|
+
foods: (0x1F344..0x1F373),
|
14
|
+
loves: (0x1F493..0x1F49F),
|
15
|
+
latins: [*0x0021..0x007E, *0x00A1..0x00FF, *0x0100..0x017F, *0x0250..0x02AF],
|
16
|
+
moneys: [0x1F4B0, 0x1F4B3, 0x1F4B4, 0x1F4B5, 0x1F4B6, 0x1F4B7, 0x1F4B8],
|
17
|
+
arrows: (0x2190..0x21FF),
|
18
|
+
oreillys: (0x1F40C..0x1F43C),
|
19
|
+
alphabets: [*0x0041..0x005A, *0x0061..0x007A],
|
20
|
+
dingbats: (0x2701..0x27BF),
|
21
|
+
moons: (0x1F311..0x1F315),
|
22
|
+
christmas: [0x1F384, 0x1F385, 0x1F370],
|
23
|
+
snow: 0x2736,
|
24
|
+
python: 0x1F40D,
|
25
|
+
perl: 0x1F42A,
|
26
|
+
}
|
27
|
+
).freeze
|
77
28
|
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.
|
4
|
+
version: 0.3.0
|
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-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: emot
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.0.2
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.0.2
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bundler
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|