gameon-points 0.0.0.pre4 → 0.0.0.pre5
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 -3
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a69cf3636ad3310c50692cb800df7353aeeb262b
|
4
|
+
data.tar.gz: 84faf2010832df07c8ff7c7445d1b6803821b5ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aad6f58066e444b85c9a1e3bb5c87dc35eeba9727f8c63e68d6740f5594e7de1647d1e7fe66d6aa522c31161192614f5052de5cf531b4d55f9c093f47972aa3
|
7
|
+
data.tar.gz: 9d2b7c9b68efc2686b814f5a905165831c143be00026bb34e8004cacd6b0d353890c5c74129f4a839b9f16974857adc338ca65ecc0f8a94d9cc2b451c05f030c
|
data/lib/gameon-points/base.rb
CHANGED
@@ -24,11 +24,10 @@ module GameOn
|
|
24
24
|
@params = params
|
25
25
|
end
|
26
26
|
def call(env)
|
27
|
-
if @params.has_key?(:add)
|
27
|
+
if @params.has_key?(:add) && !@params.nil?
|
28
28
|
env[:gameon].add_points(@params[:add] * @opts[:inc_by])
|
29
|
-
|
30
29
|
end
|
31
|
-
if @params.has_key?(:remove)
|
30
|
+
if @params.has_key?(:remove) && !@params.nil?
|
32
31
|
env[:gameon].remove_points(@params[:remove] * @opts[:dec_by])
|
33
32
|
end
|
34
33
|
@app.call(env) # run the next middleware
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gameon-points
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.0.
|
4
|
+
version: 0.0.0.pre5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- theotherstupidguy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gameon
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: gameon-redis
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: ''
|
@@ -57,17 +57,17 @@ require_paths:
|
|
57
57
|
- lib
|
58
58
|
required_ruby_version: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- -
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0'
|
63
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- -
|
65
|
+
- - ">"
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: 1.3.1
|
68
68
|
requirements: []
|
69
69
|
rubyforge_project:
|
70
|
-
rubygems_version: 2.2.
|
70
|
+
rubygems_version: 2.2.0
|
71
71
|
signing_key:
|
72
72
|
specification_version: 4
|
73
73
|
summary: simple points system for gameon
|