rd_insightly 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 +4 -4
- data/.gitignore +1 -0
- data/lib/rd_insightly/insightly/api_insightly.rb +2 -2
- data/lib/rd_insightly/insightly/serializer_insightly.rb +4 -0
- data/lib/rd_insightly/version.rb +1 -1
- data/lib/rd_insightly.rb +1 -0
- metadata +18 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 162605b4daef4ae591114b4b199573adc4545751
|
4
|
+
data.tar.gz: 438964354298cfa8aa84a722bac760e90143c2c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 08b32097a2df356314daccd1ffdccd78dd994eaa5401335255d075452b3a9821fcaba69f0adc4215445c3a250b09c4a360128987137ee28ea6eacec9191f4b24
|
7
|
+
data.tar.gz: f30d7fb288dd21fa1998040825d0f52d4b0f8cdae5ee1b94a35493b9a3b272d728a3bfcfb42418464de1d4110ed5aa97dfd999899a5836869d8582e85a17b3f5
|
data/.gitignore
CHANGED
@@ -4,14 +4,14 @@ module RdInsightly
|
|
4
4
|
UNAUTHORIZED = false
|
5
5
|
|
6
6
|
def self.authentication
|
7
|
-
RestClient.get('https://api.insight.ly/v2.1/contacts', Authorization: authorization_string)
|
7
|
+
RestClient.get('https://api.insight.ly/v2.1/contacts', Authorization: authorization_string, accept: :json)
|
8
8
|
AUTHORIZED
|
9
9
|
rescue
|
10
10
|
UNAUTHORIZED
|
11
11
|
end
|
12
12
|
|
13
13
|
def self.leads
|
14
|
-
RestClient.get('https://api.insight.ly/v2.1/
|
14
|
+
RestClient.get('https://api.insight.ly/v2.1/leads', Authorization: authorization_string, accept: :json)
|
15
15
|
rescue
|
16
16
|
nil
|
17
17
|
end
|
data/lib/rd_insightly/version.rb
CHANGED
data/lib/rd_insightly.rb
CHANGED
@@ -4,6 +4,7 @@ require 'rd_insightly/exception/lead_exception'
|
|
4
4
|
require 'rd_insightly/exception/api_token_exception'
|
5
5
|
require 'rd_insightly/auth'
|
6
6
|
require 'rd_insightly/insightly/api_insightly'
|
7
|
+
require 'rd_insightly/insightly/serializer_insightly'
|
7
8
|
require 'rest-client'
|
8
9
|
require 'base64'
|
9
10
|
require 'singleton'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rd_insightly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Douglas Oliveira
|
@@ -14,56 +14,56 @@ dependencies:
|
|
14
14
|
name: rest-client
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.10'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.10'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '10.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '10.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description: this Gem was built to integrate leads rd and insightly
|
@@ -73,11 +73,11 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
-
- .coveralls.yml
|
77
|
-
- .gitignore
|
78
|
-
- .rspec
|
79
|
-
- .rubocop.yml
|
80
|
-
- .travis.yml
|
76
|
+
- ".coveralls.yml"
|
77
|
+
- ".gitignore"
|
78
|
+
- ".rspec"
|
79
|
+
- ".rubocop.yml"
|
80
|
+
- ".travis.yml"
|
81
81
|
- Gemfile
|
82
82
|
- README.md
|
83
83
|
- Rakefile
|
@@ -88,6 +88,7 @@ files:
|
|
88
88
|
- lib/rd_insightly/exception/api_token_exception.rb
|
89
89
|
- lib/rd_insightly/exception/lead_exception.rb
|
90
90
|
- lib/rd_insightly/insightly/api_insightly.rb
|
91
|
+
- lib/rd_insightly/insightly/serializer_insightly.rb
|
91
92
|
- lib/rd_insightly/lead.rb
|
92
93
|
- lib/rd_insightly/version.rb
|
93
94
|
- rd_insightly.gemspec
|
@@ -101,17 +102,17 @@ require_paths:
|
|
101
102
|
- lib
|
102
103
|
required_ruby_version: !ruby/object:Gem::Requirement
|
103
104
|
requirements:
|
104
|
-
- -
|
105
|
+
- - ">="
|
105
106
|
- !ruby/object:Gem::Version
|
106
107
|
version: '0'
|
107
108
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
109
|
requirements:
|
109
|
-
- -
|
110
|
+
- - ">="
|
110
111
|
- !ruby/object:Gem::Version
|
111
112
|
version: '0'
|
112
113
|
requirements: []
|
113
114
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.
|
115
|
+
rubygems_version: 2.4.6
|
115
116
|
signing_key:
|
116
117
|
specification_version: 4
|
117
118
|
summary: Gem built to integrate leads rd and insightly
|