bingo_game 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +96 -0
- data/README.md +2 -0
- data/image/saikou.gif +0 -0
- data/lib/bingo_game/cli.rb +5 -1
- data/lib/bingo_game/flipper.rb +1 -1
- data/lib/bingo_game/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bc035846272789ceb1e70bddaa8baf73f716cd9
|
4
|
+
data.tar.gz: e49e937258ee1db64e8063074f05b1759fd61e71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c21bc4a64776ddc39759dcfd1a9c8cd55298a73af85e77ffe7e705db670bb138a0aaca445d20894af84e9a07c7bdd7112dacb7de8646434ac25d5e123f45a5c1
|
7
|
+
data.tar.gz: 6544e800c134c0d4c8e6577b75f4731f53c7bf4a23922eef5780d7cf41eda012a19fa4d622ac96a4424fe7f5f009c4b9e80d780ae440eadf27abeb714bc2fabe
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
AllCops:
|
2
|
+
Exclude:
|
3
|
+
- "vendor/**/*"
|
4
|
+
- "db/schema.rb"
|
5
|
+
DisplayCopNames: true
|
6
|
+
|
7
|
+
Style/AndOr:
|
8
|
+
EnforcedStyle: conditionals
|
9
|
+
|
10
|
+
Style/AsciiComments:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
Style/BracesAroundHashParameters:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
Style/CollectionMethods:
|
17
|
+
PreferredMethods:
|
18
|
+
detect: "detect"
|
19
|
+
find: "detect"
|
20
|
+
|
21
|
+
Style/DeprecatedHashMethods:
|
22
|
+
Enabled: false
|
23
|
+
|
24
|
+
Style/Documentation:
|
25
|
+
Enabled: false
|
26
|
+
|
27
|
+
Style/DoubleNegation:
|
28
|
+
Enabled: false
|
29
|
+
|
30
|
+
Style/DotPosition:
|
31
|
+
EnforcedStyle: trailing
|
32
|
+
|
33
|
+
Style/EmptyElse:
|
34
|
+
EnforcedStyle: empty
|
35
|
+
|
36
|
+
Style/FormatString:
|
37
|
+
EnforcedStyle: percent
|
38
|
+
|
39
|
+
Style/GuardClause:
|
40
|
+
MinBodyLength: 5
|
41
|
+
|
42
|
+
Style/IfUnlessModifier:
|
43
|
+
Enabled: false
|
44
|
+
|
45
|
+
Style/IndentHash:
|
46
|
+
EnforcedStyle: consistent
|
47
|
+
|
48
|
+
Style/Lambda:
|
49
|
+
Enabled: false
|
50
|
+
|
51
|
+
Style/NumericLiterals:
|
52
|
+
MinDigits: 7
|
53
|
+
|
54
|
+
Style/PredicateName:
|
55
|
+
NamePrefixBlacklist:
|
56
|
+
- "is_"
|
57
|
+
- "have_"
|
58
|
+
NamePrefix:
|
59
|
+
- "is_"
|
60
|
+
- "have_"
|
61
|
+
|
62
|
+
Style/RedundantReturn:
|
63
|
+
AllowMultipleReturnValues: true
|
64
|
+
|
65
|
+
Style/SignalException:
|
66
|
+
EnforcedStyle: only_raise
|
67
|
+
|
68
|
+
Style/SpaceAroundOperators:
|
69
|
+
MultiSpaceAllowedForOperators:
|
70
|
+
- "="
|
71
|
+
- "=>"
|
72
|
+
- "||"
|
73
|
+
|
74
|
+
Style/SingleLineBlockParams:
|
75
|
+
Enabled: false
|
76
|
+
|
77
|
+
Style/TrailingComma:
|
78
|
+
EnforcedStyleForMultiline: comma
|
79
|
+
|
80
|
+
Lint/UnderscorePrefixedVariableName:
|
81
|
+
Enabled: false
|
82
|
+
|
83
|
+
Lint/UnusedMethodArgument:
|
84
|
+
Enabled: false
|
85
|
+
|
86
|
+
Metrics/AbcSize:
|
87
|
+
Max: 30
|
88
|
+
|
89
|
+
Metrics/CyclomaticComplexity:
|
90
|
+
Max: 10
|
91
|
+
|
92
|
+
Metrics/LineLength:
|
93
|
+
Max: 120
|
94
|
+
|
95
|
+
Metrics/PerceivedComplexity:
|
96
|
+
Max: 8
|
data/README.md
CHANGED
data/image/saikou.gif
ADDED
Binary file
|
data/lib/bingo_game/cli.rb
CHANGED
@@ -15,7 +15,9 @@ module BingoGame
|
|
15
15
|
puts 'Success'
|
16
16
|
else
|
17
17
|
shutto_suruyatu
|
18
|
-
flipper.call
|
18
|
+
v = flipper.call
|
19
|
+
puts v
|
20
|
+
exec("say #{v}")
|
19
21
|
end
|
20
22
|
end
|
21
23
|
|
@@ -29,6 +31,8 @@ module BingoGame
|
|
29
31
|
gets # for stopping roulette
|
30
32
|
Thread.kill(t)
|
31
33
|
printf "\e[2A"
|
34
|
+
puts ' '
|
35
|
+
printf "\e[1A"
|
32
36
|
end
|
33
37
|
|
34
38
|
def random_number
|
data/lib/bingo_game/flipper.rb
CHANGED
data/lib/bingo_game/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bingo_game
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ganmacs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -64,6 +64,7 @@ extra_rdoc_files: []
|
|
64
64
|
files:
|
65
65
|
- ".gitignore"
|
66
66
|
- ".rspec"
|
67
|
+
- ".rubocop.yml"
|
67
68
|
- ".travis.yml"
|
68
69
|
- Gemfile
|
69
70
|
- README.md
|
@@ -72,6 +73,7 @@ files:
|
|
72
73
|
- bin/console
|
73
74
|
- bin/setup
|
74
75
|
- bingo_game.gemspec
|
76
|
+
- image/saikou.gif
|
75
77
|
- lib/bingo_game.rb
|
76
78
|
- lib/bingo_game/cli.rb
|
77
79
|
- lib/bingo_game/flipper.rb
|