gameon 0.0.0.pre6 → 0.0.0.pre7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gameon/base.rb +2 -23
  3. metadata +5 -33
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cef30f0242bf222f9e659e6f5157ae4bc4dc3f06
4
- data.tar.gz: ebd1b79f36524b40518629832544c4291e83f5da
3
+ metadata.gz: 0b18c861ec6f38fbcc4b27a5de61588158f4b44f
4
+ data.tar.gz: 2aca662d807991aef506813efd2e7746e57f01a7
5
5
  SHA512:
6
- metadata.gz: c678d38b201f0ee207a697841ea1c8ae338f1ff0ea38f2169dd4c9cf9e31c311ecd713aaa87d11c37aaa6004ea734c3e8c68a16f2d67220423649eef3f947d4a
7
- data.tar.gz: 8e05982fec5be4a6cbfe927105f8a50823c094e53c0ed8af012733181d6d69b7ff430fe0bf5430c9d56f0b6a9aabc2b1988a697a3d0c250761d7abef5284d181
6
+ metadata.gz: 7e8d9e68d0567e9d22ad5320355c67fff6a32c7e7659bfadb34d253e2219b5ad63f6b6cac147122c900f24fda90fb3cdc29218bd90444454fc62a7f89bad2f7b
7
+ data.tar.gz: 2f7e875c8713875814a8e03e539092b72aa1aa9d3c2eb9fc69433bbb70d5c21c89a54615a04c173d428c0761b674e8998c0cd5bb658b4a4626ccdd84907cb928
data/lib/gameon/base.rb CHANGED
@@ -2,7 +2,6 @@ require_relative './gamebook/game'
2
2
  require_relative './gamebook/rule'
3
3
  require_relative './gamebook/dynamic'
4
4
 
5
-
6
5
  module GameOn
7
6
  def GameOn.env id
8
7
  require 'redis'
@@ -14,28 +13,8 @@ module GameOn
14
13
  end
15
14
 
16
15
  module Gamebook
17
- extend Mushin::DSL::Notebook
18
- @@constructs = []
19
- # this is Mandatory as the .find funtion in DSL::Notebook needs it
20
- @@games = []
21
- def game title, &block
22
- @@game = GameOn::Gamebook::Game.new title
23
- def rule rule=[], &block
24
- @rule = GameOn::Gamebook::Rule.new rule
25
- def activate dynamic, opts={}, params={}
26
- @dynamic = GameOn::Gamebook::Dynamic.new dynamic, opts, params
27
- @rule.add_dynamic @dynamic
28
- end
29
- @@game.add_rule @rule
30
- yield
31
- end
32
- yield
33
- @@games << @@game
34
- @@constructs = @@games
35
- end
36
- def Gamebook.games
37
- @@games
38
- end
16
+ extend Mushin::Notebook
17
+ Mushin::Notebook.build 'game', 'rule', 'activate'
39
18
  end
40
19
 
41
20
  class Activities < Mushin::DSL::Activities
metadata CHANGED
@@ -1,57 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gameon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.pre6
4
+ version: 0.0.0.pre7
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-14 00:00:00.000000000 Z
11
+ date: 2014-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mushin
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '>='
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
17
  - - ~>
32
18
  - !ruby/object:Gem::Version
33
- version: '1.5'
34
- type: :development
19
+ version: 0.0.0.pre7
20
+ type: :runtime
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
24
  - - ~>
39
25
  - !ruby/object:Gem::Version
40
- version: '1.5'
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - '>='
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
26
+ version: 0.0.0.pre7
55
27
  description: a gamification framework based on mushin
56
28
  email:
57
29
  - theotherstupidguy@gmail.com