gameon 0.0.0.pre26 → 0.0.0.pre27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gameon/base.rb +24 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4943e89e452b5549709907273d1cf21a6858976b
4
- data.tar.gz: ad45ae93a25c7bcb4d02e4150aa3d119a7033156
3
+ metadata.gz: be6f48507bc24c70f7a5f099166ea3be860ba7a9
4
+ data.tar.gz: 52644a310d941dcd8c81b81346234dae3c18426a
5
5
  SHA512:
6
- metadata.gz: 807572211ad89327692e63a0ff9e098fff8b6336ad10abcc48b536c399ade71b794051a43fec017babc7963473a2824ec8ccc79608d399e661550705ced53121
7
- data.tar.gz: 57b1d18f021d118537eab3cd915da2204411ccd05b99b74f65f1314eb5018ec2eff8c07311be763b8431b3d55b31746a4326803ecae48029acb2132dea9b529c
6
+ metadata.gz: bc745e20b5c976f51cbe96b1a0311ce3812e833eaa701ea81ff2b94db9ab1dcfc1b6cd991a4317b4b14a201ee9d242e32041aed2165f0c60d09bc3832a8b379b
7
+ data.tar.gz: d158e40cd97e8c653140c40ed56ad65e2c9024573db3571cf74ad0247d591744879410ca663950b9e27252f29821aac2b74d7e311b29fb2e149a275e088d5bb3
data/lib/gameon/base.rb CHANGED
@@ -11,6 +11,30 @@ module GameOn
11
11
  end
12
12
 
13
13
  class Env < Mushin::Env
14
+
15
+ def Env.set id, &block
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
37
+
14
38
  @@ds = 'GameOn::Persistence::DS'
15
39
  def Env.get id
16
40
  GameOn::Persistence::DS.load 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.pre26
4
+ version: 0.0.0.pre27
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-23 00:00:00.000000000 Z
11
+ date: 2014-05-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: a gamification framework based on mushin
14
14
  email: