snov 0.2.2 → 0.2.3

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
  SHA256:
3
- metadata.gz: 4c9707254fe18c6d11cce223d1519211a70250bfb42a77a4e1c0d9edfe65d8e8
4
- data.tar.gz: 1a36316bc0816173d223d19f1a8dd3c5fd73ff0d82a3ed97e31e387cb7b60b55
3
+ metadata.gz: f455eb1bcf297a8aad704e44c84c18c351656be0b3f7e77e1cc36765323c130f
4
+ data.tar.gz: 23dd283539c2b2e2ba6467153bd812132b9e31fde724ec182d090458f5b7b426
5
5
  SHA512:
6
- metadata.gz: 8404a9e0b1e4d40c19e2f3f582285f48264c6cc708a445056718f8902ad8518dced48d633c5073f6a08aa1efc01eabafbec87a18eab70260dde1660588bce525
7
- data.tar.gz: 1a3a974b53c40a26e29709789dc00fb0f642f96896f4aca833c9c209a7ade74c5c86011988f4e6bd6452b305ba481c3d383af6d2be90bdbcdda0fd205e0a4d5b
6
+ metadata.gz: 534d631fea92f1d34ea89f4c2c9b61f9290c57e1c1ee0a71f669c176379ce5269a872f472bbd5c8d8dda090e58eea2205a37c5c1dec9ea08404a834cb0fea7cc
7
+ data.tar.gz: 9c85a473ab4fdaa9e0f26f2ab75c5dbc8f5a9f11c7fce05000ba4c2f53a7921d7dad90cf7f8fb4f935cd0ee1e6dc452a8166f9b118ed8acefd9f2ac7fb3e6eab
@@ -1,3 +1,5 @@
1
+ ## [0.2.3]
2
+ * Fix DomainSearch doing post instead of get
1
3
  ## [0.2.2]
2
4
  * DomainSearch Response class
3
5
 
data/README.md CHANGED
@@ -26,7 +26,7 @@ see https://snov.io/api#DomainSearch2
26
26
 
27
27
  ```ruby
28
28
  results = Snov::DomainSearch.new(domain: "octagon.com", type: "personal", limit: 10)
29
- results.lastId
29
+ results.last_id
30
30
  results.each do |result|
31
31
  puts result.email
32
32
  puts result.first_name
@@ -4,7 +4,7 @@ require 'camel_snake_struct'
4
4
  module Snov
5
5
  class DomainSearch
6
6
  Response = Class.new(CamelSnakeStruct)
7
- Response.example(MultiJson.load(File.read("#{__dir__}/fake_client/post_v2_domain-emails-with-info.json")))
7
+ Response.example(MultiJson.load(File.read("#{__dir__}/fake_client/get_v2_domain-emails-with-info.json")))
8
8
  include Enumerable
9
9
 
10
10
  attr_reader :client, :domain, :type, :limit
@@ -42,11 +42,11 @@ module Snov
42
42
  end
43
43
 
44
44
  def raw_result
45
- Response.new(client.post("/v2/domain-emails-with-info",
46
- 'lastId' => @last_id,
47
- 'limit' => @limit,
48
- 'type' => type.to_s,
49
- 'domain' => domain.to_s))
45
+ @raw_result ||= Response.new(client.get("/v2/domain-emails-with-info",
46
+ 'lastId' => @last_id,
47
+ 'limit' => @limit,
48
+ 'type' => type.to_s,
49
+ 'domain' => domain.to_s))
50
50
  end
51
51
  end
52
52
  end
@@ -1,3 +1,3 @@
1
1
  module Snov
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Petersen-Speelman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-11 00:00:00.000000000 Z
11
+ date: 2021-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -135,10 +135,10 @@ files:
135
135
  - lib/snov/domain_search.rb
136
136
  - lib/snov/fake_client.rb
137
137
  - lib/snov/fake_client/get_v1_get-user-lists.json
138
+ - lib/snov/fake_client/get_v2_domain-emails-with-info.json
138
139
  - lib/snov/fake_client/post_v1_get-profile-by-email.json
139
140
  - lib/snov/fake_client/post_v1_get-prospects-by-email.json
140
141
  - lib/snov/fake_client/post_v1_prospect-list.json
141
- - lib/snov/fake_client/post_v2_domain-emails-with-info.json
142
142
  - lib/snov/get_all_prospects_from_list.rb
143
143
  - lib/snov/get_profile_by_email.rb
144
144
  - lib/snov/get_prospect_list.rb