excursion 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/excursion/datastores/datastore.rb +5 -0
- data/lib/excursion/datastores/test.rb +2 -1
- data/lib/excursion/pool/application.rb +1 -1
- data/lib/excursion/pool.rb +2 -3
- data/lib/excursion/version.rb +1 -1
- data/spec/dummy/log/development.log +21098 -0
- data/spec/excursion/datastores/test_spec.rb +1 -1
- data/spec/excursion/helpers/application_helper_spec.rb +1 -1
- data/spec/excursion/helpers/url_helper_spec.rb +5 -4
- data/spec/excursion/helpers_spec.rb +1 -1
- data/spec/excursion/pool/application_spec.rb +6 -6
- data/spec/excursion/pool/dummy_application_spec.rb +6 -6
- data/spec/excursion/pool_spec.rb +6 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afc2e332b1df6c603e7e2c5596430886f3925eb9
|
4
|
+
data.tar.gz: cc082a7b38e4d20d3e78150cfdfd88f396d53bbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 706d2a0913e6bce13e45f51cd027f208ab5b83354cf87c8569da32704b79a35dce1eb64598b5204a78a8b0998f34b04d2bc41a0d9a71c3e13d9cf8f43720c4d7
|
7
|
+
data.tar.gz: 91cafc284a1acf904370c6447ef98dc668d76de45cd680b56026e2a8bc95badd5aa77199308efe82de9e7a1d991be85cbb1e7521dda08fcf148d6e950eafb175
|
@@ -8,7 +8,8 @@ module Excursion
|
|
8
8
|
attr_accessor :pool
|
9
9
|
|
10
10
|
def read(key)
|
11
|
-
|
11
|
+
return unless Excursion.configuration.test_providers.nil? || Excursion.configuration.test_providers.map(&:to_sym).include?(key.to_sym)
|
12
|
+
@pool[key.to_sym] ||= Excursion::Pool::DummyApplication.new(key, {host: 'test.local'}, ActionDispatch::Routing::RouteSet::NamedRouteCollection.new).to_cache
|
12
13
|
end
|
13
14
|
alias_method :get, :read
|
14
15
|
|
data/lib/excursion/pool.rb
CHANGED
@@ -7,10 +7,9 @@ module Excursion
|
|
7
7
|
@@applications = {}
|
8
8
|
|
9
9
|
def self.application(name)
|
10
|
-
return @@applications[name] if @@applications.has_key?(name)
|
10
|
+
return @@applications[name] if @@applications.has_key?(name) && !@@applications[name].nil?
|
11
11
|
|
12
|
-
|
13
|
-
@@applications[name] = Application.from_cache(app_yaml) unless app_yaml.nil?
|
12
|
+
@@applications[name] = datastore.app(name)
|
14
13
|
end
|
15
14
|
|
16
15
|
def self.register_application(app)
|
data/lib/excursion/version.rb
CHANGED