snov 0.2.1 → 0.2.2

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
  SHA256:
3
- metadata.gz: 7d173da2b062a8395a5f8cc69fb15684301681d6e12a1b0f4ebfb5303d3b1ba0
4
- data.tar.gz: 0d98bea7fc7cfbd676df5f7955fd018abf7ddbd07674930285667e2d92a85e25
3
+ metadata.gz: 4c9707254fe18c6d11cce223d1519211a70250bfb42a77a4e1c0d9edfe65d8e8
4
+ data.tar.gz: 1a36316bc0816173d223d19f1a8dd3c5fd73ff0d82a3ed97e31e387cb7b60b55
5
5
  SHA512:
6
- metadata.gz: 032da28c906a395ead2fcc76be6437727e5e7f83872fb1119d327b955077a5bc1fb5227c74cfbe6ecc787b64e1b435effa9c773ec74b8e49a5d309951b2c4e0e
7
- data.tar.gz: a8d0b907aa3795c8078b2a8f1d24cde80e8a1018d12a2c7d8d10ee8cbe270fba91323723ffcc579da7026b690259dd927ace7a7ead478d1a014f662b93875b73
6
+ metadata.gz: 8404a9e0b1e4d40c19e2f3f582285f48264c6cc708a445056718f8902ad8518dced48d633c5073f6a08aa1efc01eabafbec87a18eab70260dde1660588bce525
7
+ data.tar.gz: 1a3a974b53c40a26e29709789dc00fb0f642f96896f4aca833c9c209a7ade74c5c86011988f4e6bd6452b305ba481c3d383af6d2be90bdbcdda0fd205e0a4d5b
@@ -1,3 +1,6 @@
1
+ ## [0.2.2]
2
+ * DomainSearch Response class
3
+
1
4
  ## [0.2.1]
2
5
  * DomainSearch fake example data
3
6
 
@@ -3,6 +3,8 @@ require 'camel_snake_struct'
3
3
 
4
4
  module Snov
5
5
  class DomainSearch
6
+ Response = Class.new(CamelSnakeStruct)
7
+ Response.example(MultiJson.load(File.read("#{__dir__}/fake_client/post_v2_domain-emails-with-info.json")))
6
8
  include Enumerable
7
9
 
8
10
  attr_reader :client, :domain, :type, :limit
@@ -40,11 +42,11 @@ module Snov
40
42
  end
41
43
 
42
44
  def raw_result
43
- CamelSnakeStruct.new(client.post("/v2/domain-emails-with-info",
44
- 'lastId' => @last_id,
45
- 'limit' => @limit,
46
- 'type' => type.to_s,
47
- 'domain' => domain.to_s))
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))
48
50
  end
49
51
  end
50
52
  end
@@ -1,3 +1,3 @@
1
1
  module Snov
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Petersen-Speelman