user_engage 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +8 -2
- data/Gemfile +1 -0
- data/Gemfile.lock +64 -66
- data/Gemfile.ruby-2.4 +9 -0
- data/Gemfile.ruby-2.5 +9 -0
- data/Gemfile.ruby-2.6 +9 -0
- data/README.md +7 -5
- data/lib/user_engage/base_model.rb +2 -4
- data/lib/user_engage/version.rb +1 -1
- data/user_engage.gemspec +10 -10
- metadata +32 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7856fb00b3df6e45ee45c9959b940780c139230b7c93f566b859946f0e60fdf4
|
4
|
+
data.tar.gz: 67475ab948d247510448a1aff4ba007624c7c51569d20318ae67c1b89f06d086
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79ee470b618c498fdf632023223d79f18929a9c4363f4fdb975493ee2ad5dd68f455223d18ffa294d1de3f52aa46725c862c06b4c0aa5a6b081d6d9e6becb3cb
|
7
|
+
data.tar.gz: '09867049ce37a9752477add88fc82f1b8cd5dbe5ec71e0e03e2b290cd48f39cd3d4055220b55e1463dced9faada8ded7f96f98997e7b6fd778796166868e1d98'
|
data/.travis.yml
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
sudo: false
|
2
2
|
language: ruby
|
3
|
-
|
4
|
-
|
3
|
+
jobs:
|
4
|
+
include:
|
5
|
+
- rvm: 2.6.5
|
6
|
+
gemfile: Gemfile.ruby-2.6
|
7
|
+
- rvm: 2.5.7
|
8
|
+
gemfile: Gemfile.ruby-2.5
|
9
|
+
- rvm: 2.4.8
|
10
|
+
gemfile: Gemfile.ruby-2.4
|
5
11
|
before_install:
|
6
12
|
- gem install bundler
|
7
13
|
- bin/setup
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,107 +1,105 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
user_engage (0.0.
|
5
|
-
dry-struct (
|
6
|
-
faraday (
|
4
|
+
user_engage (0.0.15)
|
5
|
+
dry-struct (>= 1.1.1)
|
6
|
+
faraday (~> 0.17)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
addressable (2.
|
12
|
-
public_suffix (>= 2.0.2, <
|
11
|
+
addressable (2.7.0)
|
12
|
+
public_suffix (>= 2.0.2, < 5.0)
|
13
13
|
ast (2.4.0)
|
14
14
|
coderay (1.1.2)
|
15
|
-
concurrent-ruby (1.1.
|
15
|
+
concurrent-ruby (1.1.9)
|
16
16
|
crack (0.4.3)
|
17
17
|
safe_yaml (~> 1.0.0)
|
18
18
|
diff-lcs (1.3)
|
19
|
-
dotenv (2.
|
20
|
-
dry-configurable (0.
|
19
|
+
dotenv (2.7.5)
|
20
|
+
dry-configurable (0.13.0)
|
21
21
|
concurrent-ruby (~> 1.0)
|
22
|
-
|
22
|
+
dry-core (~> 0.6)
|
23
|
+
dry-container (0.9.0)
|
23
24
|
concurrent-ruby (~> 1.0)
|
24
|
-
dry-configurable (~> 0.
|
25
|
-
dry-core (0.
|
25
|
+
dry-configurable (~> 0.13, >= 0.13.0)
|
26
|
+
dry-core (0.7.1)
|
26
27
|
concurrent-ruby (~> 1.0)
|
27
|
-
dry-
|
28
|
-
dry-
|
29
|
-
|
30
|
-
dry-
|
31
|
-
|
32
|
-
dry-
|
33
|
-
|
34
|
-
dry-core (~> 0.4, >= 0.4.3)
|
35
|
-
dry-equalizer (~> 0.2)
|
36
|
-
dry-types (~> 0.13)
|
28
|
+
dry-inflector (0.2.1)
|
29
|
+
dry-logic (1.2.0)
|
30
|
+
concurrent-ruby (~> 1.0)
|
31
|
+
dry-core (~> 0.5, >= 0.5)
|
32
|
+
dry-struct (1.4.0)
|
33
|
+
dry-core (~> 0.5, >= 0.5)
|
34
|
+
dry-types (~> 1.5)
|
37
35
|
ice_nine (~> 0.11)
|
38
|
-
dry-types (
|
36
|
+
dry-types (1.5.1)
|
39
37
|
concurrent-ruby (~> 1.0)
|
40
38
|
dry-container (~> 0.3)
|
41
|
-
dry-core (~> 0.
|
42
|
-
dry-equalizer (~> 0.2)
|
39
|
+
dry-core (~> 0.5, >= 0.5)
|
43
40
|
dry-inflector (~> 0.1, >= 0.1.2)
|
44
|
-
dry-logic (~> 0
|
45
|
-
faraday (0.
|
41
|
+
dry-logic (~> 1.0, >= 1.0.2)
|
42
|
+
faraday (0.17.4)
|
46
43
|
multipart-post (>= 1.2, < 3)
|
47
|
-
hashdiff (0.
|
44
|
+
hashdiff (1.0.0)
|
48
45
|
ice_nine (0.11.2)
|
49
|
-
jaro_winkler (1.5.
|
50
|
-
method_source (0.9.
|
51
|
-
multipart-post (2.
|
52
|
-
parallel (1.
|
53
|
-
parser (2.5.
|
46
|
+
jaro_winkler (1.5.4)
|
47
|
+
method_source (0.9.2)
|
48
|
+
multipart-post (2.1.1)
|
49
|
+
parallel (1.18.0)
|
50
|
+
parser (2.6.5.0)
|
54
51
|
ast (~> 2.4.0)
|
55
|
-
|
56
|
-
pry (0.11.3)
|
52
|
+
pry (0.12.2)
|
57
53
|
coderay (~> 1.1.0)
|
58
54
|
method_source (~> 0.9.0)
|
59
|
-
public_suffix (
|
55
|
+
public_suffix (4.0.1)
|
60
56
|
rainbow (3.0.0)
|
61
|
-
rake (
|
62
|
-
rspec (3.
|
63
|
-
rspec-core (~> 3.
|
64
|
-
rspec-expectations (~> 3.
|
65
|
-
rspec-mocks (~> 3.
|
66
|
-
rspec-core (3.
|
67
|
-
rspec-support (~> 3.
|
68
|
-
rspec-expectations (3.
|
57
|
+
rake (13.0.0)
|
58
|
+
rspec (3.9.0)
|
59
|
+
rspec-core (~> 3.9.0)
|
60
|
+
rspec-expectations (~> 3.9.0)
|
61
|
+
rspec-mocks (~> 3.9.0)
|
62
|
+
rspec-core (3.9.0)
|
63
|
+
rspec-support (~> 3.9.0)
|
64
|
+
rspec-expectations (3.9.0)
|
69
65
|
diff-lcs (>= 1.2.0, < 2.0)
|
70
|
-
rspec-support (~> 3.
|
71
|
-
rspec-mocks (3.
|
66
|
+
rspec-support (~> 3.9.0)
|
67
|
+
rspec-mocks (3.9.0)
|
72
68
|
diff-lcs (>= 1.2.0, < 2.0)
|
73
|
-
rspec-support (~> 3.
|
74
|
-
rspec-support (3.
|
75
|
-
rubocop (0.
|
69
|
+
rspec-support (~> 3.9.0)
|
70
|
+
rspec-support (3.9.0)
|
71
|
+
rubocop (0.76.0)
|
76
72
|
jaro_winkler (~> 1.5.1)
|
77
73
|
parallel (~> 1.10)
|
78
|
-
parser (>= 2.
|
79
|
-
powerpack (~> 0.1)
|
74
|
+
parser (>= 2.6)
|
80
75
|
rainbow (>= 2.2.2, < 4.0)
|
81
76
|
ruby-progressbar (~> 1.7)
|
82
|
-
unicode-display_width (
|
83
|
-
ruby-progressbar (1.10.
|
84
|
-
safe_yaml (1.0.
|
85
|
-
unicode-display_width (1.
|
86
|
-
vcr (
|
87
|
-
webmock (3.
|
77
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
78
|
+
ruby-progressbar (1.10.1)
|
79
|
+
safe_yaml (1.0.5)
|
80
|
+
unicode-display_width (1.6.0)
|
81
|
+
vcr (5.0.0)
|
82
|
+
webmock (3.7.6)
|
88
83
|
addressable (>= 2.3.6)
|
89
84
|
crack (>= 0.3.2)
|
90
|
-
hashdiff
|
85
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
91
86
|
|
92
87
|
PLATFORMS
|
93
88
|
ruby
|
94
89
|
|
95
90
|
DEPENDENCIES
|
96
|
-
bundler (
|
97
|
-
dotenv (~> 2.
|
98
|
-
pry (~> 0.
|
99
|
-
rake (~>
|
100
|
-
rspec (~> 3.
|
101
|
-
rubocop (~> 0.
|
91
|
+
bundler (>= 2.0)
|
92
|
+
dotenv (~> 2.7)
|
93
|
+
pry (~> 0.12)
|
94
|
+
rake (~> 13.0)
|
95
|
+
rspec (~> 3.9)
|
96
|
+
rubocop (~> 0.76)
|
102
97
|
user_engage!
|
103
|
-
vcr (~>
|
104
|
-
webmock (~> 3.
|
98
|
+
vcr (~> 5.0)
|
99
|
+
webmock (~> 3.7)
|
100
|
+
|
101
|
+
RUBY VERSION
|
102
|
+
ruby 2.6.5p114
|
105
103
|
|
106
104
|
BUNDLED WITH
|
107
|
-
|
105
|
+
2.3.4
|
data/Gemfile.ruby-2.4
ADDED
data/Gemfile.ruby-2.5
ADDED
data/Gemfile.ruby-2.6
ADDED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# UserEngage [![Build Status](https://travis-ci.org/CompanyMood/user_engage-ruby.svg?branch=master)](https://travis-ci.org/CompanyMood/user_engage-ruby)
|
2
2
|
|
3
|
-
This gem implements the ruby bindings for https://userengage.com
|
3
|
+
This gem implements the ruby bindings for https://user.com (former https://userengage.com)
|
4
4
|
|
5
5
|
## Current state
|
6
6
|
By now, you're able to find and destroy users but functionality is very easy to add, as soon as all [operations](https://github.com/CompanyMood/user_engage-ruby/tree/master/lib/user_engage/operation) are implemented.
|
@@ -25,14 +25,16 @@ Or install it yourself as:
|
|
25
25
|
|
26
26
|
## Basic Usage
|
27
27
|
|
28
|
-
NOTE: It's important to have access to the
|
28
|
+
NOTE: It's important to have access to the User.com API package.
|
29
29
|
|
30
|
-
First, setup your
|
31
|
-
Get yourself an API access token
|
30
|
+
First, setup your User.com configuration.
|
31
|
+
Get yourself an API access token and set the token and your applications
|
32
|
+
user.com host like
|
32
33
|
|
33
34
|
```ruby
|
34
35
|
UserEngage.config do |config|
|
35
36
|
config.token = '<your-access-token-here>'
|
37
|
+
config.host = https://<your-custom-subdomain-host>.user.com'
|
36
38
|
end
|
37
39
|
```
|
38
40
|
|
@@ -63,4 +65,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
63
65
|
|
64
66
|
## Code of Conduct
|
65
67
|
|
66
|
-
Everyone interacting in the UserEngage project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
68
|
+
Everyone interacting in the UserEngage project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/CompanyMood/user_engage/blob/master/CODE_OF_CONDUCT.md).
|
@@ -5,12 +5,10 @@ require 'dry-struct'
|
|
5
5
|
module UserEngage
|
6
6
|
class BaseModel < Dry::Struct
|
7
7
|
module Types
|
8
|
-
include Dry
|
8
|
+
include Dry.Types(default: :nominal)
|
9
9
|
end
|
10
10
|
|
11
|
-
transform_types
|
12
|
-
type.meta(omittable: true)
|
13
|
-
end
|
11
|
+
transform_types(&:omittable)
|
14
12
|
|
15
13
|
def resource_name
|
16
14
|
self.class.resource_name
|
data/lib/user_engage/version.rb
CHANGED
data/user_engage.gemspec
CHANGED
@@ -24,15 +24,15 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
25
|
spec.require_paths = ['lib']
|
26
26
|
|
27
|
-
spec.add_runtime_dependency 'dry-struct', '
|
28
|
-
spec.add_runtime_dependency 'faraday', '
|
27
|
+
spec.add_runtime_dependency 'dry-struct', '>= 1.1.1'
|
28
|
+
spec.add_runtime_dependency 'faraday', '~> 0.17'
|
29
29
|
|
30
|
-
spec.add_development_dependency 'bundler', '
|
31
|
-
spec.add_development_dependency 'dotenv', '~> 2.
|
32
|
-
spec.add_development_dependency 'pry', '~> 0.
|
33
|
-
spec.add_development_dependency 'rake', '~>
|
34
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
35
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
36
|
-
spec.add_development_dependency 'vcr', '~>
|
37
|
-
spec.add_development_dependency 'webmock', '~> 3.
|
30
|
+
spec.add_development_dependency 'bundler', '>= 2.0'
|
31
|
+
spec.add_development_dependency 'dotenv', '~> 2.7'
|
32
|
+
spec.add_development_dependency 'pry', '~> 0.12'
|
33
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
34
|
+
spec.add_development_dependency 'rspec', '~> 3.9'
|
35
|
+
spec.add_development_dependency 'rubocop', '~> 0.76'
|
36
|
+
spec.add_development_dependency 'vcr', '~> 5.0'
|
37
|
+
spec.add_development_dependency 'webmock', '~> 3.7'
|
38
38
|
end
|
metadata
CHANGED
@@ -1,155 +1,155 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: user_engage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schwed
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-struct
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.1.1
|
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
|
-
version:
|
26
|
+
version: 1.1.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: faraday
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.17'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
40
|
+
version: '0.17'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '2.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
|
-
version: '
|
54
|
+
version: '2.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: dotenv
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '2.
|
61
|
+
version: '2.7'
|
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
|
-
version: '2.
|
68
|
+
version: '2.7'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: pry
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: '0.12'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: '0.12'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '13.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '13.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '3.
|
103
|
+
version: '3.9'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '3.
|
110
|
+
version: '3.9'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rubocop
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0.
|
117
|
+
version: '0.76'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0.
|
124
|
+
version: '0.76'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: vcr
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
131
|
+
version: '5.0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
138
|
+
version: '5.0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: webmock
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '3.
|
145
|
+
version: '3.7'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '3.
|
152
|
+
version: '3.7'
|
153
153
|
description: UserEngage (https://userengage.com) - Keep things simple with a single
|
154
154
|
platform for all your messaging and relationships with customers.
|
155
155
|
email:
|
@@ -166,6 +166,9 @@ files:
|
|
166
166
|
- CODE_OF_CONDUCT.md
|
167
167
|
- Gemfile
|
168
168
|
- Gemfile.lock
|
169
|
+
- Gemfile.ruby-2.4
|
170
|
+
- Gemfile.ruby-2.5
|
171
|
+
- Gemfile.ruby-2.6
|
169
172
|
- LICENSE.txt
|
170
173
|
- README.md
|
171
174
|
- Rakefile
|
@@ -210,8 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
213
|
- !ruby/object:Gem::Version
|
211
214
|
version: '0'
|
212
215
|
requirements: []
|
213
|
-
|
214
|
-
rubygems_version: 2.7.7
|
216
|
+
rubygems_version: 3.0.8
|
215
217
|
signing_key:
|
216
218
|
specification_version: 4
|
217
219
|
summary: NOT READY YET!! - Ruby bindings for the UserEngage API
|