gameon-points 0.0.0.pre12 → 0.0.0.pre13
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 +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: 90b1558177f85d9e26be062d2be019a57d720fcc
|
4
|
+
data.tar.gz: 4e931c0cf8fe243d854339fdc36d62c1496f7f65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ca6d8a79fac2cf296a6812f837dc2820a5d79927b368c31c95dc2391d21fac1eef61c4fdb8f9d417f6490c81e89533eaa5dd645b0cd3efb6600ad223fcf822a
|
7
|
+
data.tar.gz: 0a3cd1be88f86ce82190da50eb847d89cca818435ddc1b3261d308330f01df2c023c8f53fc535c396460e0a1095c7736cd044f4c1ec1a27a4ce05ff965d317a9
|
data/lib/gameon-points/base.rb
CHANGED
@@ -30,8 +30,8 @@ module GameOn
|
|
30
30
|
def call(env)
|
31
31
|
if !@params.nil? && @params.has_key?(:add)
|
32
32
|
#env[:gameon].add_points(@params[:add] * @opts[:inc_by])
|
33
|
-
|
34
|
-
GameOn::Env.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])
|
35
35
|
end
|
36
36
|
if !@params.nil? && @params.has_key?(:remove)
|
37
37
|
env[:gameon].remove_points(@params[:remove] * @opts[:dec_by])
|