gameon 0.0.0.pre98 → 0.0.0.pre99

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 +11 -9
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc1ab3b3cf89336f357cd56e36d20ca144f9948b
4
- data.tar.gz: f17865c291544959ebc1f34e0a38bf94e8613e35
3
+ metadata.gz: c14c34b04ca6f4bd2cb8923eaf52101f1fd98f5e
4
+ data.tar.gz: d47cae3c35a59c2681cb2873a6def97ade667de3
5
5
  SHA512:
6
- metadata.gz: a327f6197251fee8418212dd24d296f576ff14544699b9f2242840bd0cc9c152c1b885b2dc25da71bd485e4e5a2b80b2745b14cf03f084fc1b370fbd866bc971
7
- data.tar.gz: 2c2f79722d61d9defb9b5a184246160948495604469a63ee0279123d4916cdcf4dcca946c4fd122ae747135be5522e8afeb982ea3a8a9979169f4ac92bf0009b
6
+ metadata.gz: b0bc5809e5d9886fed0621bbe89f41db2805e8b4a5f2fbb0891479577f2ab6c930674bf293e0f3d2a64492ec15f1283460192b970fedddd81b383f349a1e2072
7
+ data.tar.gz: 2175706b920a1043621d8220bd6e24c3203edeae1499eb9ee1b99403e09ada1185afcd7b2ef5b99e97007e4dba2bc3aaaad1ea94456b5f4d2a05623b95f194b3
data/lib/gameon/base.rb CHANGED
@@ -7,23 +7,27 @@ module GameOn
7
7
  module DSL
8
8
  include Mushin::DSL
9
9
  def self.find activity_context, activity_statment
10
- Mushin::DSL.middlewares = []
10
+ Mushin::DSL.middlewares = [] #could be GameOn::DSL.middlewares
11
11
  Mushin::DSL.contexts.each do |current_context|
12
12
  if activity_context == current_context.title
13
13
  current_context.statments.each do |statment|
14
14
  if activity_statment == statment.title
15
15
  statment.activations.uniq.each do |middleware|
16
16
 
17
- if Mushin::DSL.middlewares.empty?
17
+ if Mushin::DSL.middlewares == []
18
18
  Mushin::DSL.middlewares << middleware
19
+ return Mushin::DSL.middlewares
19
20
  else
20
21
  Mushin::DSL.middlewares.uniq.each do |prev|
21
- if !prev.name == middleware.name && !prev.opts == middleware.opts && !prev.params == middleware.params
22
+ if prev.name == middleware.name && prev.opts == middleware.opts && prev.params == middleware.params
23
+ p "this activation already exists nothing to do!!!"
24
+ #Mushin::DSL.middlewares << middleware
25
+ else
22
26
  p "adding new activation"
23
27
  Mushin::DSL.middlewares << middleware
24
- else
25
- p "activation already exists nothing to do"
26
- #Mushin::DSL.middlewares << middleware
28
+ p "$$$$$$$$$$$$$$$$$$$$$$$$$$$"
29
+ p Mushin::DSL.middlewares
30
+ return Mushin::DSL.middlewares
27
31
  end
28
32
  end
29
33
  #else
@@ -35,9 +39,7 @@ module GameOn
35
39
  end
36
40
  end
37
41
  end
38
- p "$$$$$$$$$$$$$$$$$$$$$$$$$$$"
39
- p Mushin::DSL.middlewares
40
- Mushin::DSL.middlewares
42
+ #Mushin::DSL.middlewares = []
41
43
  end
42
44
  end
43
45
 
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.pre98
4
+ version: 0.0.0.pre99
5
5
  platform: ruby
6
6
  authors:
7
7
  - theotherstupidguy