mailflow-ruby 0.1.1 → 0.1.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
  SHA1:
3
- metadata.gz: ce09fe7f6df53a28394ca9924919c22a2ad87200
4
- data.tar.gz: 659b72f988696c8ba0431fd3266cfa6d0e6a9a24
3
+ metadata.gz: 4d72404e363b19c8b438feb4040cceab26ad2976
4
+ data.tar.gz: 82f72f817edd439270e9bda0a52a8d4631c9503e
5
5
  SHA512:
6
- metadata.gz: 90892ce44418384be79a913c57c860d548560a7edff74e166c8494b5396a0d676571ddaf860a5230124a4b2a61125dbf4276e85b343741fd7955e93a8022f468
7
- data.tar.gz: ccc65993807d6799120056392ac4c96de016adab355edc47eda6c518259eec39b5298a238c5b807e142bbbb6912b152780ade54c0199639017cadb624a963c96
6
+ metadata.gz: 795e64e517f949f1bd00c858f17176212314a66e802b2afd62fb6f35b4544fb187fde12fbb41b4af925a9153637202223c1ef50e688b3c6bfa757bd3d2de8e40
7
+ data.tar.gz: 052c216341c705db288814d3093e3aecfc7ac199b74f8e983e9c7f313c7f38315407610f44c42fb378f0aebef41ffa7751410b9cff5b8164415999b8e86fe00b
data/README.md CHANGED
@@ -23,16 +23,23 @@ require 'mailflow-ruby'
23
23
  Mailflow.setup('API_KEY', 'SECRET_KEY')
24
24
  ```
25
25
 
26
- ### List all contacts
26
+ ### Test authentication
27
27
 
28
28
  ```ruby
29
- Mailflow::Contact.list
29
+ Mailflow::Client.test
30
30
  ```
31
31
 
32
+ Returns 200 if authentication passes.
33
+
32
34
  ## Contacts
33
35
 
34
36
  #### Basic contact operations
35
37
 
38
+ List all contacts
39
+
40
+ ```ruby
41
+ Mailflow::Contact.list
42
+ ```
36
43
 
37
44
  Get a contact by email address or contact ID:
38
45
 
@@ -65,7 +65,7 @@ module Mailflow
65
65
 
66
66
  def set_attributes(attributes)
67
67
  attributes = attributes.map do |key, value|
68
- {key: key.to_s, value: value}
68
+ {key: key.to_s, label: key.to_s, value: value}
69
69
  end
70
70
 
71
71
  Mailflow::Attribute.update(attributes, {contact_id: id})
@@ -1,3 +1,3 @@
1
1
  module Mailflow
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailflow-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mailflow
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-02 00:00:00.000000000 Z
11
+ date: 2016-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -132,7 +132,7 @@ files:
132
132
  - lib/mailflow-ruby/contact.rb
133
133
  - lib/mailflow-ruby/tag.rb
134
134
  - lib/mailflow-ruby/version.rb
135
- - mailflow-ruby-0.1.0.gem
135
+ - mailflow-ruby-0.1.1.gem
136
136
  - mailflow-ruby.gemspec
137
137
  homepage: https://mailflow.com/support/api-reference
138
138
  licenses:
Binary file