concord_cacher 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/concord_cacher.gemspec +1 -1
- data/lib/concord/cacher.rb +3 -0
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
data/Rakefile
CHANGED
@@ -6,7 +6,7 @@ require 'spec/rake/spectask'
|
|
6
6
|
require './lib/concord_cacher.rb'
|
7
7
|
|
8
8
|
require 'echoe'
|
9
|
-
Echoe.new('concord_cacher', '0.1.
|
9
|
+
Echoe.new('concord_cacher', '0.1.2') do |p|
|
10
10
|
p.description = "concord_cacher provides support for locally caching a resource and all referenced resources in multiple different ways. It is intended for using with other Concord Consortium projects and not necessarily for outside projects."
|
11
11
|
p.summary = "Support for locally caching a resource and all referenced resources in multiple different ways"
|
12
12
|
p.url = "http://github.com/psndcsrv/concord_cacher"
|
data/concord_cacher.gemspec
CHANGED
data/lib/concord/cacher.rb
CHANGED
@@ -9,6 +9,9 @@ class ::Concord::Cacher
|
|
9
9
|
def initialize(opts = {})
|
10
10
|
raise ArgumentError, "Must include :url, and :cache_dir in the options hash." unless opts[:url] && opts[:cache_dir]
|
11
11
|
|
12
|
+
::Concord::Resource.verbose = opts.delete(:verbose) || false
|
13
|
+
::Concord::Resource.debug = opts.delete(:debug) || false
|
14
|
+
|
12
15
|
@main_resource = Concord::Resource.new
|
13
16
|
@main_resource.url = opts.delete(:url)
|
14
17
|
@main_resource.cache_dir = opts.delete(:cache_dir)
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|