gameon-points 0.0.0.pre13 → 0.0.0.pre14
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: dbfe89a54acd9d4f4072a99ca42f09a0591a3013
|
4
|
+
data.tar.gz: 0f9ce7294b0c922af39002c7cdb4fce708990122
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7efaf6a30471239529fb6a411e732bb1e8ee73c770bbce6f601dc5f1c1eb18b1fe471f6907555902426ac6ea8c5ce92311e5184f5fe6e0c28249c9bd9c078368
|
7
|
+
data.tar.gz: e5f70cc8fea0b4c0b61169c77116d3f75927fabaef7cb078a8029e831536b5d748fece71f91a2fe877b4fae5eb223d762618fe34eebee4553aa56be8e9a48490
|
data/lib/gameon-points/base.rb
CHANGED
@@ -29,8 +29,8 @@ module GameOn
|
|
29
29
|
end
|
30
30
|
def call(env)
|
31
31
|
if !@params.nil? && @params.has_key?(:add)
|
32
|
-
|
33
|
-
env[:gameon].points = GameOn::Env.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
34
|
#GameOn::Env.add_points(@params[:add] * @opts[:inc_by])
|
35
35
|
end
|
36
36
|
if !@params.nil? && @params.has_key?(:remove)
|