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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gameon/base.rb +6 -6
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a661accf4d0c473de7587e0eabf4e8f96ecf669
4
- data.tar.gz: fc433e0b58bda438aebf852f81f69458cacfdcb2
3
+ metadata.gz: 4941a9bb00334c14ad3135e72ccc38de758f6345
4
+ data.tar.gz: 0588a89bb71b632786e9dbdecab4166114f595aa
5
5
  SHA512:
6
- metadata.gz: 391a2938b229151e1b6e0c17978db0c05c3eadf7ff6c4d3a92a228958ac0b8789fa57633926e8026f94ce0345905f522ab8626ac97b241d513e815c2bcb137ec
7
- data.tar.gz: 56ddcf4908014a8404437e76745d69602010b5accdd6ca1c082b050860f582fd5563b649451f30c8c52be06d41114275996fcc5ac1bd940533804fda243a1720
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 on domain_context, &block
83
- @domain_context = domain_context
82
+ def context current_context_title, &block
83
+ @current_context_title = current_context_title
84
84
  @activities = []
85
- def activity statment
86
- @activities << statment
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 |activity|
95
- GameOn::Engine.run @domain_context, activity
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gameon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.pre108
4
+ version: 0.0.0.pre109
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy