data-com-api 0.2.0 → 0.2.1

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MzFkNTgyOTc3YjczMzc2MWZiYzE3ODliZGI2YzJkN2I4YWRiNmQxNA==
4
+ NWJjMjkyMDJlMWE1MmUxZTY5MzQyODk4NThkMjc3MWVkZWU0OGNlZg==
5
5
  data.tar.gz: !binary |-
6
- ZDI0ZGVjYmNkODgyNTgyYWFhYjY5Y2QyMGM1ZWIzNzdhMGFhOWE1Mw==
6
+ Y2RlYzkyNDVmZjVkNDIzOWVjMmFjNTAwYzQyM2NlM2M3ZDViNDRmOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- M2YzY2M3NDUxNjhhYjg1MjAxNGZhZWI0N2U0MTg3NzgyZTAwMWM1ZjMyZDE4
10
- YTcwYWNlYmVhZTg1MDc2ZjY3YzljZDdjOGU2MDY5YTRlMjBlYTg0YWI0MzQ4
11
- ZTM2ZWEyNDdmYTM5Y2ZkNDc1OThkMjI3NmMxYTkyZjEzYzNhMWU=
9
+ NTg5NTVmNjZiZGNjODA5MWUyZjAzYmViOTVmYTY2YjI4ZDU0ZjczMWUzZGU5
10
+ NDM0OTQ3NjBjOThkODJiMjU1MDkwZDdhOTU0MTc4OGJlYmVkNzJiY2M1Yzgy
11
+ YjgyZmEzM2I4Y2JmNGQ0MTU2MGVjZGU1MjBkYjNhODAxM2FkODY=
12
12
  data.tar.gz: !binary |-
13
- NjlhNjgzMWQzYjUzODZjNmI2Mjg3Zjg2M2Q3NDE4MWMzZjNkMmFlMDcyNWIw
14
- NTY0NzY4NWY5OTM4YmNhYTkwMDA0ZTQwOWRlZmIxNDk3NWE5NTAwMDBhMDEz
15
- OTI1ZjdiOTcxM2M1NzFkY2EwOTNkYzdjZGYzMGRkNmQyYjEwY2M=
13
+ NGNiMjM5ZTE0YTBkMWM4OTNiM2IxY2YwNTdiMzRlZjliNzBlNjBlOWIyMjEy
14
+ OTc0MmQzMzczNzY3MjNkNTRmMzBhMjkxYjE1M2VmN2U3ZWE5OGY5NDkwYmVh
15
+ OTdlMjZkYWJjOGZiOGY1YjliOWVmZjA1NjJjYzgxZWY4NmM4NDc=
data/README.md CHANGED
@@ -6,7 +6,7 @@ Ruby bindings for Data.com API ( Salesforce, ex Jigsaw ).
6
6
 
7
7
  Add this line to your application's Gemfile:
8
8
 
9
- gem 'data-com-api', '~> 0.2.0'
9
+ gem 'data-com-api', '~> 0.2.1'
10
10
 
11
11
  And then execute:
12
12
 
@@ -93,6 +93,9 @@ This response has the following methods:
93
93
  - `point_balance` which returns `pointBalance` from API response
94
94
  - `contacts` which returns an array of [DataComApi::Contact](https://github.com/Fire-Dragon-DoL/data-com-api/blob/master/lib/data-com-api/contact.rb)
95
95
 
96
+ ## Changelog
97
+ - Updated code to support variable `max_offset` if required in future
98
+
96
99
  ## TODO
97
100
 
98
101
  - Implement `partner` request
@@ -102,6 +105,8 @@ This response has the following methods:
102
105
  `search_contact`
103
106
  - Improve tests organization
104
107
  - Test exceptions when performing API requests
108
+ - Support for "Multiple values" as stated in the api, instead of strings
109
+ separated with commas
105
110
 
106
111
  ## Contributing
107
112
 
@@ -92,10 +92,14 @@ module DataComApi
92
92
  end
93
93
  end
94
94
 
95
+ def max_offset
96
+ client.max_offset
97
+ end
98
+
95
99
  def real_max_offset
96
100
  return @real_max_offset if @real_max_offset
97
101
 
98
- @real_max_offset = client.max_offset
102
+ @real_max_offset = self.max_offset
99
103
  @real_max_offset = @real_max_offset - (@real_max_offset % page_size)
100
104
  unless @end_at_offset.nil? || @real_max_offset < @end_at_offset
101
105
  @real_max_offset = @end_at_offset
@@ -1,3 +1,3 @@
1
1
  module DataComApi
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data-com-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fire-Dragon-DoL
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-27 00:00:00.000000000 Z
11
+ date: 2014-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty