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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gameon-points/base.rb +3 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10cde766d8df64cd1c889acbb8ca95f88c083417
4
- data.tar.gz: acde817bc0bc8bf2774980cf6f998e095cd08476
3
+ metadata.gz: de0ec5d923d88e6e642725516b17bdd3b6e23c6f
4
+ data.tar.gz: ee297f9f471e33b6e07cde5a32f27ac6297e2cf7
5
5
  SHA512:
6
- metadata.gz: 21e0f10db743222f185316bb10e94259c2914155d81a805106c7261ffcfc87c2a5e501acfb9b81cbfae7dab70c6028d41454d4a4365c77afae6c97e358828a6a
7
- data.tar.gz: fe51ab1ea4354f5fc3b2e909d89099937c825583137bc2a125c8493ad543e2b46b74fab9de6b5e02f6bbb30579601727167b2e4e78e94be7e054b4cc76c8a330
6
+ metadata.gz: a0a2598796c5642db19510416d996cef4d25d1e8d4a2d3c4147a8e4238ebd1bda165608dc34bde27201148966376527a8cf3b028a948aa67c4a20304af345865
7
+ data.tar.gz: 970eea17996cb7f983a55f249ba6d5aea632f433628316baca495247ce8dfafefdadecbde0a2d71c248c7dde013a02038465e50c515009113b971fa2e91b05d9
@@ -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])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gameon-points
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.pre10
4
+ version: 0.0.0.pre11
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy