gameon 0.0.0.pre133 → 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee3cea3ee5faaf0bd8ade7b86ce08fc5d32a91b1
4
- data.tar.gz: 7fcbee430faf64a12e978b9c4d28c087921e0bea
3
+ metadata.gz: 265406569a045b74a802892433d680844aad14c5
4
+ data.tar.gz: 3ccda5bb0dc6c0aff7c4b6dab293f27645b5df09
5
5
  SHA512:
6
- metadata.gz: ab1c14afe328ae56e91cdda5e74630855edebd41946791dd1ad8a9b3183802382c3e9ccf176bbb13386e492de2d083d4db2a8b20bf19eed4a0815b824c7e0cc4
7
- data.tar.gz: 82702c8310a14c6f2c688e01f0f0e328af3f8a0a88791bfab17f0841c91cfea0d22f34c20be2cdefbf41ddb04086fd4adfbd5cdf5c8ce66f047a1ee126959a33
6
+ metadata.gz: 56af39e9572149bd7023360258484d8db8d02b303e039be741f9be3ad1526f711754258128c051131791a396792d7a384d63afb8f3427d4f634c408b2112a586
7
+ data.tar.gz: e1e648f9aad5f33a29a5b006ca198b55b76f97b6333197ab079e264e668dcc79459e4eae137d09fa02262e4bcdda7917d46e54ae01f69db26371f9fded72b962
@@ -1,4 +1,2 @@
1
- #require "gameon/version"
2
- require "mushin"
3
-
4
1
  require 'gameon/base'
2
+ require 'gameon/version'
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gameon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.pre133
4
+ version: 0.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-14 00:00:00.000000000 Z
11
+ date: 2014-04-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: a gamification framework based on mushin
13
+ description: placeholder for gameon gem
14
14
  email:
15
15
  - theotherstupidguy@gmail.com
16
16
  executables: []
@@ -18,11 +18,8 @@ extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - lib/gameon.rb
21
- - lib/gameon/base.rb
22
- - lib/gameon/version.rb
23
21
  homepage: https://github.com/gameon-rb/gameon
24
- licenses:
25
- - MIT
22
+ licenses: []
26
23
  metadata: {}
27
24
  post_install_message:
28
25
  rdoc_options: []
@@ -30,18 +27,18 @@ require_paths:
30
27
  - lib
31
28
  required_ruby_version: !ruby/object:Gem::Requirement
32
29
  requirements:
33
- - - ">="
30
+ - - '>='
34
31
  - !ruby/object:Gem::Version
35
32
  version: '0'
36
33
  required_rubygems_version: !ruby/object:Gem::Requirement
37
34
  requirements:
38
- - - ">"
35
+ - - '>='
39
36
  - !ruby/object:Gem::Version
40
- version: 1.3.1
37
+ version: '0'
41
38
  requirements: []
42
39
  rubyforge_project:
43
- rubygems_version: 2.4.1
40
+ rubygems_version: 2.2.2
44
41
  signing_key:
45
42
  specification_version: 4
46
- summary: gamification framework
43
+ summary: Gamification Framework
47
44
  test_files: []
@@ -1,147 +0,0 @@
1
- module GameOn
2
-
3
- module Middleware
4
- include Mushin::Domain::Middleware
5
- end
6
-
7
- module DSL
8
- include Mushin::DSL
9
-
10
- def self.find current_context_title, current_activity_title
11
-
12
- Mushin::DSL.contexts.each do |context|
13
- if context.title == current_context_title
14
- context.activities.each do |activity|
15
- if activity.title == current_activity_title
16
- @middlewares = []
17
- activity.uses.each do |middleware|
18
-
19
- if @middlewares.empty?
20
- p "adding first middleware !!!"
21
- @middlewares << middleware
22
- p @middlewares
23
- else
24
- @middlewares.each do |prev|
25
- if prev.name == middleware.name && prev.opts == middleware.opts && prev.params == middleware.params
26
- p "this activation already exists, nothing to do!!!"
27
- else
28
- p "adding new activation"
29
- @middlewares << middleware
30
- p @middlewares
31
- end
32
- end
33
- end
34
-
35
- end
36
- return @middlewares
37
- end
38
- end
39
- end
40
-
41
- end
42
- Dir["./gameon/*"].each {|file| load file }
43
- end
44
- end
45
-
46
- module Engine
47
- extend Mushin::Engine
48
- class << self
49
- def run id, domain_context, activity
50
- stack = Mushin::Middleware::Builder.new do
51
- #use Object.const_get('GameOn::Persistence::DS'), {}, {:id => id}
52
- (GameOn::DSL.find domain_context, activity).uniq.each do |middleware|
53
- #p "GameOn Logging: use #{middleware.name}, #{middleware.opts}, #{middleware.params}"
54
- use middleware.name, middleware.opts, middleware.params
55
- end
56
- end
57
- stack.insert_before 0, Object.const_get('GameOn::Persistence::DS'), {}, {:id => id}
58
- #@setup_middlewares.each do |setup_middleware|
59
- # stack.insert_before 0, setup_middleware
60
- #end
61
- stack.call
62
- end
63
- end
64
- end
65
- =begin
66
- class Env
67
- extend Mushin::Env
68
-
69
- class << self
70
- attr_accessor :id
71
-
72
- def get id
73
- GameOn::Persistence::DS.load id.to_s + 'gameon' #TODO some app key based encryption method
74
- end
75
-
76
- def set id, &block
77
- @id = id.to_s + 'gameon'
78
- def context current_context_title, &block
79
- @current_context_title = current_context_title
80
- @activities = []
81
- def activity current_activity_title
82
- @activities << current_activity_title
83
- end
84
- instance_eval(&block)
85
- end
86
- instance_eval(&block)
87
-
88
- GameOn::Engine.setup [Object.const_get('GameOn::Persistence::DS')]
89
- @activities.uniq.each do |current_activity_title|
90
- GameOn::Engine.run @current_context_title, current_activity_title
91
- end
92
- @activities = [] # reset the activities
93
- return GameOn::Persistence::DS.load @id
94
- end
95
- end
96
- end
97
- =end
98
-
99
- class Env
100
- extend Mushin::Env
101
-
102
- attr_accessor :id
103
- def set id, &block
104
- @id = id.to_s + 'gameon'
105
- def context current_context_title, &block
106
- @current_context_title = current_context_title
107
- @activities = []
108
- def activity current_activity_title
109
- @activities << current_activity_title
110
- end
111
- instance_eval(&block)
112
- end
113
- instance_eval(&block)
114
-
115
- #GameOn::Env.id = @id
116
- #GameOn::Engine.setup [[Object.const_get('GameOn::Persistence::DS'), {}, {:id => @id}]]
117
- # [[Object.const_get('GameOn::Persistence::DS'), {}, {:id => @id}]].each do |e|
118
- # p "#{e[0]}, #{e[1]}, #{e[2]}"
119
- # end
120
- #GameOn::Engine.setup "#{Object.const_get('GameOn::Persistence::DS')}, #{{}}, #{{:id => @id}}"
121
-
122
- @activities.uniq.each do |current_activity_title|
123
- GameOn::Engine.run @id, @current_context_title, current_activity_title
124
- end
125
- #@activities = [] # reset the activities
126
- return GameOn::Persistence::DS.load @id
127
- end
128
-
129
- def get id
130
- GameOn::Persistence::DS.load id.to_s + 'gameon' #TODO some app key based encryption method
131
- end
132
-
133
- class << self
134
- def set id, &block
135
- e = Env.new
136
- e.set id, &block
137
- end
138
-
139
- def get id
140
- e = Env.new
141
- e.get id
142
- end
143
- end
144
- end
145
- #=end
146
-
147
- end
@@ -1,3 +0,0 @@
1
- #module Gameon
2
- # VERSION = "0.0.0.pre2"
3
- #end