ontraport 0.1 → 0.1.1

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
  SHA1:
3
- metadata.gz: c912fbafd548695f15360b86740e87ac0eea4ed8
4
- data.tar.gz: d59e37833ca83b3453c90450f47b82b705cb847b
3
+ metadata.gz: f7358c600511194ddb7861ee40a01c4a1af0142a
4
+ data.tar.gz: 14239382de51a239eeb3ddc3e0fffb05eb3f46a9
5
5
  SHA512:
6
- metadata.gz: 5b7e0732bed00535e41aaccf029b59d7ff51cd6783398c8a8a49fa0e878fdbe19a360004ad8e4ea635c0fe924e1ebff6657fc7be9026c2e8be8273812eabd2fe
7
- data.tar.gz: 3495263a634880b137b52b87dfc678bd12b43662cf18aa5e1cffed3f81925690dc7c851105dfcbab8a72916324ccfd41ce1e6fd91ce7040cb3b4649160e7e3bd
6
+ metadata.gz: 182ea22428b4cbf84f1d4c3d42919330ebb9c65df4812329b9f509fb6e01da13b42465cbf1822c1de3d4196c9611f3be8168f84e02e4f835310e7f729c8c8ac4
7
+ data.tar.gz: 1fb7a36797f0d34e07c31959f7c72370d3983ddb62eddbf4cafcde7299ef3d93036f322503dafcc7424ca686676e6ddf90aa4273b3b6ed501457e575d81454d6
@@ -1,3 +1,7 @@
1
+ # 0.1.1 - February 6, 2016
2
+
3
+ - Update documentation
4
+
1
5
  # 0.1 - February 6, 2016
2
6
 
3
7
  - Initial release
data/README.md CHANGED
@@ -1,15 +1,37 @@
1
1
  # Ruby API client for ONTRAPORT
2
2
 
3
- [![GitHub](https://img.shields.io/badge/github-ontraport--ruby-blue.svg)](http://github.com/hamzatayeb/ontraport-ruby)
4
- [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://rubydoc.info/github/hamzatayeb/ontraport-ruby/)
3
+ [![GitHub](https://img.shields.io/badge/github-ontraport--ruby-blue.svg)][repo]
4
+ [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)][rubydoc]
5
5
  [![License](http://img.shields.io/badge/license-MIT-yellowgreen.svg)](#license)
6
- <!--
7
- [![Build Status](https://travis-ci.org/hamzatayeb/ontraport-ruby.svg?branch=master)](https://travis-ci.org/hamzatayeb/ontraport-ruby)
8
- -->
9
6
 
10
- Disclaimer - This Gem is a work in progress.
7
+ Overview
8
+ --------
11
9
 
12
- <!-- Installation
10
+ This Gem implements ONTRAPORT's JSON REST API - that's a lot of capitals... but it's how they stylize their name :)
11
+
12
+ So far, all the [objects API][ontra-objects-api] methods are supported. Forthcoming releases will add support for the other APIs.
13
+
14
+ Usage
15
+ -----
16
+
17
+ ```ruby
18
+ Ontraport.get_object :contact, 12345
19
+ #=> #<Ontraport::Response @data=...>
20
+ ```
21
+
22
+ ```ruby
23
+ Ontraport.save_or_update :contact, { email: 'foo@bar.com', firstname: 'Foo' }
24
+ #=> #<Ontraport::Response @data=...>
25
+ ```
26
+
27
+ ```ruby
28
+ Ontraport.tag_objects :contact, { add_list: '11111,22222', ids: '33333,44444' }
29
+ #=> #<Ontraport::Response @data=...>
30
+ ```
31
+
32
+ See [documentation][rubydoc] for more details/examples.
33
+
34
+ Installation
13
35
  ------------
14
36
 
15
37
  ### Bundler
@@ -17,7 +39,7 @@ Disclaimer - This Gem is a work in progress.
17
39
  Add the Ontraport gem to your Gemfile:
18
40
 
19
41
  ```ruby
20
- gem 'ontraport', '~> 1.0.0'
42
+ gem 'ontraport', '~> 0.1'
21
43
  ```
22
44
 
23
45
  ### Manual
@@ -27,7 +49,6 @@ Install the Gem from your terminal -
27
49
  ```bash
28
50
  gem install ontraport
29
51
  ```
30
- -->
31
52
 
32
53
  Configuration
33
54
  -------------
@@ -47,10 +68,7 @@ end
47
68
  Contact
48
69
  -------
49
70
 
50
- If you have a question or a bug report, feel free to -
51
-
52
- * [file an issue][issues]
53
- * [send me an email](mailto:hamza.tayeb@gmail.com)
71
+ If you have a suggestion or a bug report, please [file an issue][issues].
54
72
 
55
73
  License
56
74
  -------
@@ -58,5 +76,6 @@ License
58
76
  The project uses the MIT License. See LICENSE.md for details.
59
77
 
60
78
  [issues]: https://github.com/hamzatayeb/ontraport-ruby/issues
61
- [semver]: http://semver.org
62
- [rubydoc]: http://www.rubydoc.info/github/hamzatayeb/ontraport-ruby/
79
+ [rubydoc]: http://rubydoc.info/gems/ontraport
80
+ [repo]: http://github.com/hamzatayeb/ontraport-ruby
81
+ [ontra-objects-api]: https://api.ontraport.com/doc/#!/objects/
@@ -125,7 +125,9 @@ module Ontraport
125
125
  objects_call :put, object_type, endpoint: '/objects/tag', data: params
126
126
  end
127
127
 
128
- # Remove tags from objects matching the supplied conditions. Interface is identical to +#tag_objects+
128
+ # Remove tags from objects matching the supplied conditions. Interface is nearly identical to +#tag_objects+
129
+ #
130
+ # @note This method expects +remove_list+ as a required parameter.
129
131
  #
130
132
  # @see tag_objects
131
133
  # @see https://api.ontraport.com/doc/#!/objects/removeTag API docs
@@ -1,3 +1,3 @@
1
1
  module Ontraport
2
- VERSION = '0.1'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ontraport
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hamza Tayeb
@@ -55,9 +55,9 @@ require_paths:
55
55
  - lib
56
56
  required_ruby_version: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - "~>"
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: 2.3.0
60
+ version: '0'
61
61
  required_rubygems_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="