gameon 0.0.0.pre27 → 0.0.0.pre28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gameon/base.rb +1 -22
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eaf6627a8bbc832a16281e2c22cb1d04577e90a5
|
4
|
+
data.tar.gz: 160afe5c9b28d7a929a58b93206b28274acfd382
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e5916d6c0fd64bbf90c63b267ee1ec8fb7da3b9872d4b504a83b7b2fcc1c85db323a77c253cfd40a80c975fd04677164f63c73fa26dc3ac58d2f4f11c25b44c
|
7
|
+
data.tar.gz: 30674f2e6f4840717dcb7f8019e2fd36086541d07bb7d9397f05c3303260346b85d7ec6ff538ae22b576942fa074a0ec1bc9e2f7457d75c9bda24e8b04c04370
|
data/lib/gameon/base.rb
CHANGED
@@ -12,28 +12,7 @@ module GameOn
|
|
12
12
|
|
13
13
|
class Env < Mushin::Env
|
14
14
|
|
15
|
-
|
16
|
-
#load './gameon/mygames.rb' #TODO all files in /gameon folder
|
17
|
-
Dir["./gameon/*"].each {|file| load file }
|
18
|
-
@id = id
|
19
|
-
def self.on domain_context, &block
|
20
|
-
@@domain_context = domain_context
|
21
|
-
@@activities = []
|
22
|
-
def self.activity statment
|
23
|
-
@@activities += [statment]
|
24
|
-
end
|
25
|
-
#instance_eval(&block)
|
26
|
-
class_eval(&block)
|
27
|
-
end
|
28
|
-
#instance_eval(&block)
|
29
|
-
class_eval(&block)
|
30
|
-
#end
|
31
|
-
#def Env.live
|
32
|
-
Mushin::Engine.setup [Object.const_get(@@ds)]
|
33
|
-
@@activities.each do |activity|
|
34
|
-
Mushin::Engine.run @@domain_context, activity
|
35
|
-
end
|
36
|
-
end
|
15
|
+
@@domain_folder = "gameon"
|
37
16
|
|
38
17
|
@@ds = 'GameOn::Persistence::DS'
|
39
18
|
def Env.get id
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gameon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.0.
|
4
|
+
version: 0.0.0.pre28
|
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-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: a gamification framework based on mushin
|
14
14
|
email:
|