File tree 4 files changed +18
-16
lines changed
4 files changed +18
-16
lines changed Original file line number Diff line number Diff line change 1
1
eval_gemfile File . join ( __dir__ , 'BCDice/Gemfile' )
2
2
3
- gem 'opal' , ">= 1.4 .1"
3
+ gem 'opal' , ">= 1.7 .1"
Original file line number Diff line number Diff line change 14
14
docile (1.4.0 )
15
15
i18n (1.8.11 )
16
16
concurrent-ruby (~> 1.0 )
17
- opal (1.4 .1 )
17
+ opal (1.7 .1 )
18
18
ast (>= 2.3.0 )
19
19
parser (~> 3.0 , >= 3.0.3.2 )
20
- parallel (1.21.0 )
21
- parser (3.1.1 .0 )
20
+ parallel (1.22.1 )
21
+ parser (3.1.3 .0 )
22
22
ast (~> 2.4.1 )
23
23
power_assert (2.0.1 )
24
24
racc (1.5.2 )
25
25
rainbow (3.1.1 )
26
26
rake (13.0.6 )
27
- regexp_parser (2.2 .1 )
27
+ regexp_parser (2.6 .1 )
28
28
rexml (3.2.5 )
29
29
rubocop (1.7.0 )
30
30
parallel (~> 1.10 )
35
35
rubocop-ast (>= 1.2.0 , < 2.0 )
36
36
ruby-progressbar (~> 1.7 )
37
37
unicode-display_width (>= 1.4.0 , < 2.0 )
38
- rubocop-ast (1.16 .0 )
38
+ rubocop-ast (1.24 .0 )
39
39
parser (>= 3.1.1.0 )
40
40
ruby-progressbar (1.11.0 )
41
41
simplecov (0.21.2 )
@@ -59,7 +59,7 @@ PLATFORMS
59
59
DEPENDENCIES
60
60
bcdice !
61
61
codecov (~> 0.4.2 )
62
- opal (>= 1.4 .1 )
62
+ opal (>= 1.7 .1 )
63
63
racc (~> 1.5.1 )
64
64
rake (~> 13.0.3 )
65
65
rubocop (~> 1.7.0 )
Original file line number Diff line number Diff line change @@ -45,7 +45,17 @@ diff --git a/lib/bcdice/arithmetic/node.rb b/lib/bcdice/arithmetic/node.rb
45
45
diff --git a/lib/bcdice/base.rb b/lib/bcdice/base.rb
46
46
--- a/lib/bcdice/base.rb
47
47
+++ b/lib/bcdice/base.rb
48
- @@ -328,7 +328,7 @@ module BCDice
48
+ @@ -20,8 +20,7 @@ module BCDice
49
+ # 応答するコマンドのprefixを登録する
50
+ # @param prefixes [Array<String>]
51
+ def register_prefix(*prefixes)
52
+ - @prefixes ||= []
53
+ - @prefixes.concat(prefixes.flatten)
54
+ + @prefixes = (@prefixes || []) + prefixes.flatten
55
+ end
56
+
57
+ def register_prefix_from_super_class
58
+ @@ -328,7 +327,7 @@ module BCDice
49
59
num = @randomizer.roll_sum(count, 6)
50
60
debug("num", num)
51
61
Original file line number Diff line number Diff line change @@ -11,14 +11,6 @@ def []
11
11
end
12
12
end
13
13
14
- # Stub
15
- module ObjectFreezeStub
16
- def freeze
17
- self
18
- end
19
- end
20
- Object . prepend ObjectFreezeStub
21
-
22
14
# Opal Fix
23
15
module StringScannerPatch
24
16
# rubocop:disable Lint/UnusedMethodArgument
You can’t perform that action at this time.
0 commit comments