excursion 0.0.17 → 0.0.18

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.
@@ -8,10 +8,11 @@ module Excursion
8
8
  end
9
9
 
10
10
  def all_apps
11
- app_hash = HashWithIndifferentAccess.new
12
- all.each do |k,v|
13
- app_hash[k.to_sym] = Excursion::Pool::Application.from_cache(v)
11
+ apps = []
12
+ all.values.each do |v|
13
+ apps << Excursion::Pool::Application.from_cache(v)
14
14
  end
15
+ apps
15
16
  end
16
17
 
17
18
  def read(key); end
@@ -12,10 +12,11 @@ module Excursion
12
12
  end
13
13
 
14
14
  def all_apps
15
- app_hash = HashWithIndifferentAccess.new
16
- all.each do |k,v|
17
- app_hash[k.to_sym] = Excursion::Pool::DummyApplication.from_cache(v)
15
+ apps = []
16
+ all.values.each do |v|
17
+ apps << Excursion::Pool::DummyApplication.from_cache(v)
18
18
  end
19
+ apps
19
20
  end
20
21
 
21
22
  def read(key)
@@ -2,7 +2,7 @@ module Excursion
2
2
  module Helpers
3
3
  module JavascriptHelper
4
4
  def render_excursion_javascript_helpers
5
- content_tag :script, raw("Excursion.loadPool(#{raw Excursion::Pool.datastore.all.to_json});"), type: "text/javascript"
5
+ content_tag :script, raw("Excursion.loadPool(#{raw Excursion::Pool.all_applications.map(&:to_cache).to_json});"), type: "text/javascript"
6
6
  end
7
7
 
8
8
  end
@@ -11,6 +11,7 @@ module Excursion
11
11
  datastore.all_apps.each do |app|
12
12
  @@applications[app.name] = app
13
13
  end
14
+ @@applications
14
15
  end
15
16
 
16
17
  def self.application(name)
@@ -1,3 +1,3 @@
1
1
  module Excursion
2
- VERSION = '0.0.17'
2
+ VERSION = '0.0.18'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: excursion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: