gameon 0.0.0.pre108 → 0.0.0.pre109
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.
- checksums.yaml +4 -4
- data/lib/gameon/base.rb +6 -6
- 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: 4941a9bb00334c14ad3135e72ccc38de758f6345
|
4
|
+
data.tar.gz: 0588a89bb71b632786e9dbdecab4166114f595aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0426a80155316b1775f6b117e021c4548d678cbf2b05abc480b9a32d21993a627d79e34e7dd50498cffb623353688495402f96f8e48956f83e7599043ce23f16
|
7
|
+
data.tar.gz: 126a84845804dd35ec7000e08c2ca95447258d1bc605d216c979dd289977a1bd195c2deb747120c3b4f9a4c8e01b042c903430111adab73eb394c9b3747a12b1
|
data/lib/gameon/base.rb
CHANGED
@@ -79,11 +79,11 @@ module GameOn
|
|
79
79
|
|
80
80
|
def set id, &block
|
81
81
|
@id = id.to_s + 'gameon'
|
82
|
-
def
|
83
|
-
@
|
82
|
+
def context current_context_title, &block
|
83
|
+
@current_context_title = current_context_title
|
84
84
|
@activities = []
|
85
|
-
def activity
|
86
|
-
@activities <<
|
85
|
+
def activity current_activity_title
|
86
|
+
@activities << current_activity_title
|
87
87
|
end
|
88
88
|
instance_eval(&block)
|
89
89
|
end
|
@@ -91,8 +91,8 @@ module GameOn
|
|
91
91
|
|
92
92
|
Dir["./gameon/*"].each {|file| load file }
|
93
93
|
GameOn::Engine.setup [Object.const_get('GameOn::Persistence::DS')]
|
94
|
-
@activities.uniq.each do |
|
95
|
-
GameOn::Engine.run @
|
94
|
+
@activities.uniq.each do |current_activity_title|
|
95
|
+
GameOn::Engine.run @current_context_title, current_activity_title
|
96
96
|
end
|
97
97
|
@activities = [] # reset the activities
|
98
98
|
return GameOn::Persistence::DS.load @id
|