descartes 0.3.7.2 → 0.3.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/descartes/modules/rpn.rb +3 -3
- data/lib/descartes/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfcdaa72c4b9b1b0d871fb80b6237848babb8ec6
|
4
|
+
data.tar.gz: cafd0650c236880ea5ca8ae37cb6ceb402a614ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1ee6d70b6b9c1425a05994341e15d6e65a8215dd1798fbea64a9464fc1c44b6f7e6a957ce55d02e7860214e13bd96815b161ec4b839b4eec67dac70c952d50b
|
7
|
+
data.tar.gz: 9a5668dd9913b67af14996a0e61dfa547758f9ea12e7816593eaae56084d832a4c7b5f77eda5ddfd10b2f638cc2e632dc869a3c8a8f38ce248547f659ad899a7
|
@@ -17,8 +17,8 @@ class Descartes
|
|
17
17
|
include Cinch::Plugin
|
18
18
|
|
19
19
|
match /rpn (.+)/, method: :rpn
|
20
|
-
def rpn(m
|
21
|
-
query = m.split('!rpn ')[1]
|
20
|
+
def rpn(m)
|
21
|
+
query = m.params[1].split('!rpn ')[1]
|
22
22
|
|
23
23
|
m.reply [].tap { |res|
|
24
24
|
query.split.each { |i|
|
@@ -40,4 +40,4 @@ class Descartes
|
|
40
40
|
m.reply '!rpn n1 n2 (...) n3 [+|-|*|/|^]'
|
41
41
|
end
|
42
42
|
end
|
43
|
-
end
|
43
|
+
end
|
data/lib/descartes/version.rb
CHANGED