kabutops 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/README.md +1 -1
- data/lib/kabutops/crawler.rb +0 -6
- data/lib/kabutops/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41d09fa8638097298ed1c230a255086949651188
|
4
|
+
data.tar.gz: 3b9c0f19b9272332c940ac649b184c84e02740b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbdb727ea93bf2048de9a0773a202d7dedcafab67f2f12e378bed53557d9b1b1855a0af45dbf877f68d69d618fc91fc12c9143e3ae8a339aa0a30636b64e1d73
|
7
|
+
data.tar.gz: 26ad39464ae24c5082d94b043ce4162e2de70aa025a315d3ba3d2d936325dfa200429dc5e4763f4f43b1659dbac9503d7e1c5a9f9b6e9e4cb1f4709aba1226d9
|
data/README.md
CHANGED
data/lib/kabutops/crawler.rb
CHANGED
@@ -33,8 +33,6 @@ module Kabutops
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def crawl collection=nil
|
36
|
-
@map ||= Hashie::Mash.new
|
37
|
-
|
38
36
|
if storage[:status].nil?
|
39
37
|
(collection || params[:collection] || []).each do |resource|
|
40
38
|
self << resource
|
@@ -53,15 +51,11 @@ module Kabutops
|
|
53
51
|
end
|
54
52
|
|
55
53
|
key = resource[:id] || resource[:url]
|
56
|
-
@map ||= Hashie::Mash.new
|
57
54
|
|
58
55
|
if key.nil?
|
59
56
|
raise "url must be specified for resource"
|
60
|
-
elsif @map[key]
|
61
|
-
# resource with an id already in map
|
62
57
|
else
|
63
58
|
perform_async(resource.to_hash)
|
64
|
-
@map[key] = resource
|
65
59
|
end
|
66
60
|
end
|
67
61
|
end
|
data/lib/kabutops/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kabutops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rene Klacan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mechanize
|