gameon-points 0.0.0.pre10 → 0.0.0.pre11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gameon-points/base.rb +3 -1
- 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: de0ec5d923d88e6e642725516b17bdd3b6e23c6f
|
4
|
+
data.tar.gz: ee297f9f471e33b6e07cde5a32f27ac6297e2cf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0a2598796c5642db19510416d996cef4d25d1e8d4a2d3c4147a8e4238ebd1bda165608dc34bde27201148966376527a8cf3b028a948aa67c4a20304af345865
|
7
|
+
data.tar.gz: 970eea17996cb7f983a55f249ba6d5aea632f433628316baca495247ce8dfafefdadecbde0a2d71c248c7dde013a02038465e50c515009113b971fa2e91b05d9
|
data/lib/gameon-points/base.rb
CHANGED
@@ -29,7 +29,9 @@ module GameOn
|
|
29
29
|
end
|
30
30
|
def call(env)
|
31
31
|
if !@params.nil? && @params.has_key?(:add)
|
32
|
-
env[:gameon].add_points(@params[:add] * @opts[:inc_by])
|
32
|
+
#env[:gameon].add_points(@params[:add] * @opts[:inc_by])
|
33
|
+
#env[:gameon].points = GameOn::Env.add_points(@params[:add] * @opts[:inc_by])
|
34
|
+
GameOn::Env.add_points(@params[:add] * @opts[:inc_by])
|
33
35
|
end
|
34
36
|
if !@params.nil? && @params.has_key?(:remove)
|
35
37
|
env[:gameon].remove_points(@params[:remove] * @opts[:dec_by])
|