ontraport 0.1.2 → 0.1.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/ontraport.rb +7 -5
- data/lib/ontraport/version.rb +2 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e7eb4a06797edda4cabaff3a1dd4b5661dd7e2a
|
4
|
+
data.tar.gz: ad38ac541977b3a713adf710e250cc8f48d73872
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afc55d4b17b278c2be95f14d0d581ec1cdbe3ab96b65f6e048e967b04fa05ba6864e3450b40ce939ce78c4d20eaa37095e5d5550812654716e2e353114fd766b
|
7
|
+
data.tar.gz: bd8993cd1ee61407404c18a192717649ba0a630ad8471d466da96bb548f24618e028f9cba7d833843b0420f34aed6b571daf1e0096060d42bb31188065c7bc39
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Unreleased
|
2
2
|
|
3
|
+
# 0.1.21 - September 6, 2017
|
4
|
+
|
5
|
+
- require HTTParty in main module (fixes #1)
|
6
|
+
|
3
7
|
# 0.1.2 - April 14, 2016
|
4
8
|
|
5
9
|
- Add support for Objects `create` method
|
@@ -13,4 +17,4 @@
|
|
13
17
|
# 0.1 - February 6, 2016
|
14
18
|
|
15
19
|
- Initial release
|
16
|
-
- Implements all "objects" API methods from ONTRAPORT
|
20
|
+
- Implements all "objects" API methods from ONTRAPORT
|
data/lib/ontraport.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require "httparty"
|
2
|
+
|
1
3
|
Dir[File.expand_path('../ontraport/*.rb', __FILE__)].each do |file|
|
2
4
|
require file
|
3
5
|
end
|
@@ -35,7 +37,7 @@ module Ontraport
|
|
35
37
|
# Clear the cache of object metadata generated by the describe call. Use this
|
36
38
|
# if you make changes to custom fields or objects in your ONTRAPORT instance and
|
37
39
|
# don't want to reload the Ontraport module.
|
38
|
-
#
|
40
|
+
#
|
39
41
|
# @example
|
40
42
|
# Ontraport.clear_describe_cache!
|
41
43
|
#
|
@@ -47,7 +49,7 @@ module Ontraport
|
|
47
49
|
# @!group "Objects" Methods
|
48
50
|
|
49
51
|
# Retrieve a single object of the specified type.
|
50
|
-
#
|
52
|
+
#
|
51
53
|
# @example
|
52
54
|
# Ontraport.get_object :contact, 12345
|
53
55
|
# #=> #<Ontraport::Response @data=...>
|
@@ -90,7 +92,7 @@ module Ontraport
|
|
90
92
|
end
|
91
93
|
|
92
94
|
# Create an object with the given data, or merge if the unique field matches another row.
|
93
|
-
#
|
95
|
+
#
|
94
96
|
# @example
|
95
97
|
# Ontraport.save_or_update :contact, { email: 'foo@bar.com', firstname: 'Foo' }
|
96
98
|
# #=> #<Ontraport::Response @data=...>
|
@@ -118,7 +120,7 @@ module Ontraport
|
|
118
120
|
end
|
119
121
|
|
120
122
|
# Add tags to objects matching the supplied conditions. In addition to various conditionals, you
|
121
|
-
# may supply a list of Ids for objects you wish to tag (+ids+). The +add_list+ parameter (which contains the
|
123
|
+
# may supply a list of Ids for objects you wish to tag (+ids+). The +add_list+ parameter (which contains the
|
122
124
|
# Ids of the tags you want to add) is required.
|
123
125
|
#
|
124
126
|
# @note The +add_list+ and +ids+ parameters should be strings comprised of comma-delimeted Integers.
|
@@ -196,4 +198,4 @@ module Ontraport
|
|
196
198
|
def self.objects_meta
|
197
199
|
@objects_meta_cache ||= request_with_authentication :get, endpoint: '/objects/meta'
|
198
200
|
end
|
199
|
-
end
|
201
|
+
end
|
data/lib/ontraport/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module Ontraport
|
2
|
-
VERSION = '0.1.
|
3
|
-
end
|
2
|
+
VERSION = '0.1.21'
|
3
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hamza Tayeb
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -65,9 +65,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
65
|
version: '0'
|
66
66
|
requirements: []
|
67
67
|
rubyforge_project:
|
68
|
-
rubygems_version: 2.
|
68
|
+
rubygems_version: 2.6.8
|
69
69
|
signing_key:
|
70
70
|
specification_version: 4
|
71
71
|
summary: API client for ONTRAPORT - http://ontraport.com
|
72
72
|
test_files: []
|
73
|
-
has_rdoc:
|