crawl_station 0.1.2 → 0.1.3
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3375994ba1198c2bf2b89480ebe55edafc4470a3
|
|
4
|
+
data.tar.gz: d6af2554f5a90cf764b2cf79e003fe39abf73f06
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5493267ff84ec0e1cef4913769d4055eb7eec3346d4cadb3263e65d792c4366467b37ad754e47cc5ee092a3eab0fe2fd36d517cc839ae2a4ac6ed66d6c4304ab
|
|
7
|
+
data.tar.gz: 1ac3dcb5279cb557a5ca21559d97227ba4e92085b2d201287ff99418eacf384da6a2ec77b62b9e62c6a0f898ec1488a77bbf4a5cd719d43d2d1433d67926cb19
|
|
@@ -6,16 +6,16 @@ module CrawlStation
|
|
|
6
6
|
|
|
7
7
|
class_methods do
|
|
8
8
|
def adapter
|
|
9
|
-
return @
|
|
9
|
+
return @_adapter if @_adapter
|
|
10
10
|
self.adapter = :memory
|
|
11
|
-
@
|
|
11
|
+
@_adapter
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def custom_adapter(adapter_name, adapter_module)
|
|
15
15
|
case adapter_name
|
|
16
16
|
when String, Symbol
|
|
17
17
|
adapter_full_name = "#{adapter_name}_adapter"
|
|
18
|
-
@
|
|
18
|
+
@_adapter = adapter_module.const_get(adapter_full_name.camelize).new
|
|
19
19
|
end
|
|
20
20
|
rescue NameError => e
|
|
21
21
|
CS.logger.error "Cache missing adapter #{adapter_name}"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: crawl_station
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- watsy0007
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-10-
|
|
11
|
+
date: 2016-10-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|