promoter 0.2.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/lib/promoter.rb +1 -0
- data/lib/promoter/contact.rb +8 -2
- data/lib/promoter/version.rb +1 -1
- data/promoter.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34ba1543f397687aaf890f45ee5c8f1fddce0cfc78208dd452c5aecea7f20315
|
4
|
+
data.tar.gz: 1c804776dca6b580ab6cd9f99bf1e0f5ed3aa279706fc82032f75d43af1e0a31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e503a96456e5b28f1a131308d00f47c598c2d37cb1329bd09eaf76507254bd228220c223a2cd2754b6e85c3f6ebc108e7dbd89ab4ed3f48d7af5cebb69711cc4
|
7
|
+
data.tar.gz: c9e0773d845101987e0eab4b0662c1760f01d590906a2b3e01841978ea82a99f84d453c3c244e9ccab3d4d0e49bede91ed5ab715426cd1e2f12310fbb30c6d9a
|
data/.gitignore
CHANGED
data/lib/promoter.rb
CHANGED
data/lib/promoter/contact.rb
CHANGED
@@ -86,8 +86,14 @@ module Promoter
|
|
86
86
|
end
|
87
87
|
|
88
88
|
def self.survey(params)
|
89
|
-
|
90
|
-
|
89
|
+
contact_attributes = if Promoter.api_version == 2
|
90
|
+
api_url = "https://app.promoter.io/api/v2"
|
91
|
+
response = Request.post(api_url + "/survey/", params)
|
92
|
+
response["contact"]
|
93
|
+
else
|
94
|
+
Request.post(API_URL + "/survey/", params)
|
95
|
+
end
|
96
|
+
new(contact_attributes)
|
91
97
|
end
|
92
98
|
|
93
99
|
# used for ensuring the values of the attributes hashes are strings
|
data/lib/promoter/version.rb
CHANGED
data/promoter.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: promoter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris O'Sullivan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: byebug
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: httparty
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|