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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 740d6f7f6743dbfc51c36a9f209dc39ad7535a66b4cf95c96fc441374f69c3e2
4
- data.tar.gz: 5ffb50e9701e1cdfab4c294710d0844f0414024257e7babf9e226d8e021f774f
3
+ metadata.gz: 7856fb00b3df6e45ee45c9959b940780c139230b7c93f566b859946f0e60fdf4
4
+ data.tar.gz: 67475ab948d247510448a1aff4ba007624c7c51569d20318ae67c1b89f06d086
5
5
  SHA512:
6
- metadata.gz: 7e299a2a079c55768ebee77f7465370dd35e631c41a7593915419070676c950b81ea8fdfe61552b18d95fbc762b04857be313a61e702ae2ea76566e7b524d31b
7
- data.tar.gz: 1520022cc145caef425d615da3717e6bdef9c82f7598d50fbd7074ee94c9d85793fba62089fa11642c8ba8cdde7f8c4606059cea2842765f19705aa3083d9a38
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
- rvm:
4
- - 2.5.1
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
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  source 'https://rubygems.org'
4
+ ruby '2.6.5'
4
5
 
5
6
  git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
7
 
data/Gemfile.lock CHANGED
@@ -1,107 +1,105 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- user_engage (0.0.14)
5
- dry-struct (~> 0.5)
6
- faraday (>= 0.12)
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.5.2)
12
- public_suffix (>= 2.0.2, < 4.0)
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.3)
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.2.1)
20
- dry-configurable (0.7.0)
19
+ dotenv (2.7.5)
20
+ dry-configurable (0.13.0)
21
21
  concurrent-ruby (~> 1.0)
22
- dry-container (0.6.0)
22
+ dry-core (~> 0.6)
23
+ dry-container (0.9.0)
23
24
  concurrent-ruby (~> 1.0)
24
- dry-configurable (~> 0.1, >= 0.1.3)
25
- dry-core (0.4.7)
25
+ dry-configurable (~> 0.13, >= 0.13.0)
26
+ dry-core (0.7.1)
26
27
  concurrent-ruby (~> 1.0)
27
- dry-equalizer (0.2.1)
28
- dry-inflector (0.1.2)
29
- dry-logic (0.4.2)
30
- dry-container (~> 0.2, >= 0.2.6)
31
- dry-core (~> 0.2)
32
- dry-equalizer (~> 0.2)
33
- dry-struct (0.6.0)
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 (0.13.2)
36
+ dry-types (1.5.1)
39
37
  concurrent-ruby (~> 1.0)
40
38
  dry-container (~> 0.3)
41
- dry-core (~> 0.4, >= 0.4.4)
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.4, >= 0.4.2)
45
- faraday (0.15.3)
41
+ dry-logic (~> 1.0, >= 1.0.2)
42
+ faraday (0.17.4)
46
43
  multipart-post (>= 1.2, < 3)
47
- hashdiff (0.3.7)
44
+ hashdiff (1.0.0)
48
45
  ice_nine (0.11.2)
49
- jaro_winkler (1.5.1)
50
- method_source (0.9.0)
51
- multipart-post (2.0.0)
52
- parallel (1.12.1)
53
- parser (2.5.1.2)
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
- powerpack (0.1.2)
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 (3.0.1)
55
+ public_suffix (4.0.1)
60
56
  rainbow (3.0.0)
61
- rake (10.5.0)
62
- rspec (3.7.0)
63
- rspec-core (~> 3.7.0)
64
- rspec-expectations (~> 3.7.0)
65
- rspec-mocks (~> 3.7.0)
66
- rspec-core (3.7.1)
67
- rspec-support (~> 3.7.0)
68
- rspec-expectations (3.7.0)
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.7.0)
71
- rspec-mocks (3.7.0)
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.7.0)
74
- rspec-support (3.7.1)
75
- rubocop (0.59.2)
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.5, != 2.5.1.1)
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 (~> 1.0, >= 1.0.1)
83
- ruby-progressbar (1.10.0)
84
- safe_yaml (1.0.4)
85
- unicode-display_width (1.4.0)
86
- vcr (4.0.0)
87
- webmock (3.3.0)
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 (~> 1.16)
97
- dotenv (~> 2.2)
98
- pry (~> 0.11.3)
99
- rake (~> 10.0)
100
- rspec (~> 3.0)
101
- rubocop (~> 0.59)
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 (~> 4.0)
104
- webmock (~> 3.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
- 1.16.2
105
+ 2.3.4
data/Gemfile.ruby-2.4 ADDED
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+ ruby '2.4.8'
5
+
6
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
7
+
8
+ # Specify your gem's dependencies in user_engage.gemspec
9
+ gemspec
data/Gemfile.ruby-2.5 ADDED
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+ ruby '2.5.7'
5
+
6
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
7
+
8
+ # Specify your gem's dependencies in user_engage.gemspec
9
+ gemspec
data/Gemfile.ruby-2.6 ADDED
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+ ruby '2.6.5'
5
+
6
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
7
+
8
+ # Specify your gem's dependencies in user_engage.gemspec
9
+ gemspec
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 UserEngage API package.
28
+ NOTE: It's important to have access to the User.com API package.
29
29
 
30
- First, setup your UserEngage configuration.
31
- Get yourself an API access token [here](https://app.userengage.com/api/YVSXSB/credentials/) and set it like
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/[USERNAME]/user_engage/blob/master/CODE_OF_CONDUCT.md).
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::Types.module
8
+ include Dry.Types(default: :nominal)
9
9
  end
10
10
 
11
- transform_types do |type|
12
- type.meta(omittable: true)
13
- end
11
+ transform_types(&:omittable)
14
12
 
15
13
  def resource_name
16
14
  self.class.resource_name
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UserEngage
4
- VERSION = '0.0.14'
4
+ VERSION = '0.0.15'
5
5
  end
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', '~> 0.5'
28
- spec.add_runtime_dependency 'faraday', '>= 0.12'
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', '~> 1.16'
31
- spec.add_development_dependency 'dotenv', '~> 2.2'
32
- spec.add_development_dependency 'pry', '~> 0.11.3'
33
- spec.add_development_dependency 'rake', '~> 10.0'
34
- spec.add_development_dependency 'rspec', '~> 3.0'
35
- spec.add_development_dependency 'rubocop', '~> 0.59'
36
- spec.add_development_dependency 'vcr', '~> 4.0'
37
- spec.add_development_dependency 'webmock', '~> 3.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.14
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: 2019-04-11 00:00:00.000000000 Z
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: '0.5'
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: '0.5'
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.12'
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.12'
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: '1.16'
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: '1.16'
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.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.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.11.3
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.11.3
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: '10.0'
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: '10.0'
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.0'
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.0'
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.59'
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.59'
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: '4.0'
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: '4.0'
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.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.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
- rubyforge_project:
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