aweplug 1.0.0.a19 → 1.0.0.a20
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'aweplug/helpers/vimeo'
|
2
|
+
require 'aweplug/cache/yaml_file_cache'
|
2
3
|
require 'json'
|
3
4
|
|
4
5
|
module Aweplug
|
@@ -24,10 +25,14 @@ module Aweplug
|
|
24
25
|
|
25
26
|
def execute site
|
26
27
|
@site = site
|
28
|
+
if site.cache.nil?
|
29
|
+
site.send('cache=', Aweplug::Cache::YamlFileCache.new)
|
30
|
+
end
|
27
31
|
searchisko = Aweplug::Helpers::Searchisko.new({:base_url => site.dcp_base_url,
|
28
32
|
:authenticate => true,
|
29
33
|
:searchisko_username => ENV['dcp_user'],
|
30
34
|
:searchisko_password => ENV['dcp_password'],
|
35
|
+
:cache => site.cache,
|
31
36
|
:logger => site.profile == 'developement'})
|
32
37
|
|
33
38
|
site[@variable].each do |url|
|
@@ -16,7 +16,7 @@ module Aweplug
|
|
16
16
|
# :logging - Boolean to log responses
|
17
17
|
# :raise_error - Boolean flag if 404 and 500 should raise exceptions
|
18
18
|
# :adapter - faraday adapter to use, defaults to :net_http
|
19
|
-
# :cache - Instance of a cache to use
|
19
|
+
# :cache - Instance of a cache to use, required.
|
20
20
|
#
|
21
21
|
# Returns a new instance of Searchisko.
|
22
22
|
def initialize opts={}
|
data/lib/aweplug/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aweplug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.a20
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -191,7 +191,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
191
191
|
version: '0'
|
192
192
|
segments:
|
193
193
|
- 0
|
194
|
-
hash:
|
194
|
+
hash: -510162813179367465
|
195
195
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
196
196
|
none: false
|
197
197
|
requirements:
|