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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d0738998c869017902c5ae5da1be3dfdf6c834d
4
- data.tar.gz: 12a286d8d3adeffd0bc698c80d5a761b41e4b0ff
3
+ metadata.gz: 41d09fa8638097298ed1c230a255086949651188
4
+ data.tar.gz: 3b9c0f19b9272332c940ac649b184c84e02740b2
5
5
  SHA512:
6
- metadata.gz: 779f59ca039b19f6c17a63f53a4adc34de617c4e1143ab47f35e13c0c6cc731101961ade348e0046f907a39977367f5d124689a2d4faeedc43aea7fcc02d531a
7
- data.tar.gz: dfeecde60aec5677485123704ef8c1e64e943c944ae340bbb994bdce5a8cd2d6581fd49353f2dfc5427913fec692088631c3d9e76bbbe4bf8f47c890b20223df
6
+ metadata.gz: fbdb727ea93bf2048de9a0773a202d7dedcafab67f2f12e378bed53557d9b1b1855a0af45dbf877f68d69d618fc91fc12c9143e3ae8a339aa0a30636b64e1d73
7
+ data.tar.gz: 26ad39464ae24c5082d94b043ce4162e2de70aa025a315d3ba3d2d936325dfa200429dc5e4763f4f43b1659dbac9503d7e1c5a9f9b6e9e4cb1f4709aba1226d9
data/README.md CHANGED
@@ -25,7 +25,7 @@ gem install kabutops
25
25
  Or you can put it in your Gemfile
26
26
 
27
27
  ```ruby
28
- gem 'kabutops', '~> 0.0.9'
28
+ gem 'kabutops', '~> 0.0.10'
29
29
  ```
30
30
 
31
31
  Basic example
@@ -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
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
 
3
3
  module Kabutops
4
- VERSION = '0.0.9'
4
+ VERSION = '0.0.10'
5
5
  end
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.9
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-05 00:00:00.000000000 Z
11
+ date: 2014-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mechanize