contactually-api 0.0.8 → 0.0.9

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
  SHA1:
3
- metadata.gz: 4b56f91ff06ccb2bccd1cc8ac61b33165e8e4f21
4
- data.tar.gz: 0f103dbf74b5df0918e7bfb776d32f9ae9ea74e1
3
+ metadata.gz: 6bbbb78fd4e9eea9343154fd8a47d0e99ce4728f
4
+ data.tar.gz: 53232e47d8e72d60792676e914484fa847937fb5
5
5
  SHA512:
6
- metadata.gz: 15afb21e419d3d5269bccd9830db3a01ddb74935dbebce96d5d68090561f81bf8dd790c883da866fc17fe711170a1c585285d729557eee6365bc832e6099ddc3
7
- data.tar.gz: d7d48d110c6530a1fda0e23a9e6d56875f2c219370372bd64346ad76e6b6ef13621ee0aa826bf0be70a9cdbf99b0acb5576f118f3c92fb7ed73832f6a1a1b8f4
6
+ metadata.gz: 6f7649e74fdfe434ea858d0e5fff8c8db67aa03538defaf35c021b2add9745fec12e1d7b3aef14bf7aab5d16ff213571724595436172b3f86ddc56aff278aa8f
7
+ data.tar.gz: 43fb960581e158325b965402052a8383b141a59702f0a16c97d4eaacb2212e56e8f603472e00930be78bc85bab2e85a153079d08bd8a265b2f2a1c05ead2fd76
@@ -32,10 +32,5 @@ module Contactually
32
32
  hash = @master.call("groupings/#{id}.json", :put, params)
33
33
  Contactually::Utils.build_grouping(hash)
34
34
  end
35
-
36
- def statistics(id, params = {})
37
- hash = @master.call("groupings/#{id}/statistics.json", :get, params)
38
- Contactually::Utils.build_grouping_statistic(hash)
39
- end
40
35
  end
41
36
  end
@@ -1,3 +1,3 @@
1
1
  module Contactually
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -4,7 +4,6 @@ describe Contactually::Groupings do
4
4
 
5
5
  let(:groupings_index_json) { File.read(File.join(File.dirname(__FILE__),"fixtures/groupings_index.json")) }
6
6
  let(:grouping_json) { File.read(File.join(File.dirname(__FILE__),"fixtures/grouping.json")) }
7
- let(:groupings_statistics_json) { File.read(File.join(File.dirname(__FILE__), "fixtures/groupings_statistics.json")) }
8
7
 
9
8
  before(:all) do
10
9
  Contactually.configure { |c| c.api_key = 'VALID_API_KEY' }
@@ -83,17 +82,4 @@ describe Contactually::Groupings do
83
82
  expect(subject.update(1, { grouping: { foo: :bar }})).to be_kind_of Contactually::Grouping
84
83
  end
85
84
  end
86
-
87
- describe '#statistics' do
88
- it 'calls the api with correct params' do
89
- allow(@master).to receive(:call).with('groupings/1/statistics.json', :get, { foo: :bar }).and_return({ 'messages_sent' => 10 })
90
- subject.statistics(1, { foo: :bar })
91
- expect(@master).to have_received(:call)
92
- end
93
-
94
- it 'returns statistics object' do
95
- allow(@master).to receive(:call).with('groupings/1/statistics.json', :get, { foo: :bar }).and_return(JSON.load(groupings_statistics_json))
96
- expect(subject.statistics(1, { foo: :bar })).to be_kind_of Contactually::GroupingStatistic
97
- end
98
- end
99
85
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contactually-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johannes Heck
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-28 00:00:00.000000000 Z
11
+ date: 2015-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -138,7 +138,6 @@ files:
138
138
  - spec/fixtures/contents_index.json
139
139
  - spec/fixtures/grouping.json
140
140
  - spec/fixtures/groupings_index.json
141
- - spec/fixtures/groupings_statistics.json
142
141
  - spec/fixtures/note.json
143
142
  - spec/fixtures/note_destroy.json
144
143
  - spec/fixtures/notes_index.json
@@ -168,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
167
  version: '0'
169
168
  requirements: []
170
169
  rubyforge_project:
171
- rubygems_version: 2.4.5
170
+ rubygems_version: 2.4.8
172
171
  signing_key:
173
172
  specification_version: 4
174
173
  summary: A wrapper for the contactually.com api
@@ -187,7 +186,6 @@ test_files:
187
186
  - spec/fixtures/contents_index.json
188
187
  - spec/fixtures/grouping.json
189
188
  - spec/fixtures/groupings_index.json
190
- - spec/fixtures/groupings_statistics.json
191
189
  - spec/fixtures/note.json
192
190
  - spec/fixtures/note_destroy.json
193
191
  - spec/fixtures/notes_index.json
@@ -1,46 +0,0 @@
1
- {
2
- "messages_sent": 0,
3
- "messages_received": 0,
4
- "status": [],
5
- "contacts": [
6
- {
7
- "id": 123123,
8
- "sent": 0,
9
- "received": 0,
10
- "link": 0,
11
- "content": [],
12
- "user_id": 62422,
13
- "first_name": "aazxc",
14
- "last_name": "sszx",
15
- "email": "123123@gmail.com",
16
- "hits": 0,
17
- "visible": true,
18
- "created_at": "2014-09-04T13:20:29Z",
19
- "updated_at": "2014-09-04T13:20:34Z",
20
- "company": "Meine kleine Farm",
21
- "title": null,
22
- "last_contacted": null,
23
- "entry_method": null,
24
- "domain_id": null,
25
- "account_id": null,
26
- "real_person": null,
27
- "ignored_at": null,
28
- "first_contacted": null,
29
- "last_bucketed_at": "2014-09-04T13:20:29Z",
30
- "snoozed_at": null,
31
- "snooze_days": null,
32
- "user_bucket_id": null,
33
- "is_parent": false,
34
- "master_contact_id": null,
35
- "avatar": null,
36
- "responsible": 1,
37
- "team_parent_id": null,
38
- "team_assigned_to_id": null,
39
- "team_last_contacted_at": null,
40
- "team_last_contacted_by_id": null,
41
- "team_is_parent": null,
42
- "confidential": null
43
- }
44
- ],
45
- "content": []
46
- }