user_engage 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/LICENSE.txt +1 -1
- data/README.md +12 -1
- data/lib/user_engage/version.rb +1 -1
- data/user_engage.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 622b8dff1158bde62a8a5f01046aa6bc750f445c
|
4
|
+
data.tar.gz: 19cc5d71c2436aa40c48f2577ab3a1e6f42046c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0b7b11aea98647c678dc47d55f38c79d88ff4c2309a2e8d35967e3d1e42991e0f576892c95720f2990e0d797ee39c2a6285cbad3efc37cc6a12f1e6bc63dc53
|
7
|
+
data.tar.gz: 65c524526a34092ecde35a7497f26e2b26f52697eef2ab4d1eb3e539f2af6b2a9cbce1f6b3f2b433912e57f98782f26d96f793c20ca43cd5ca9191b815027078
|
data/Gemfile.lock
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -20,6 +20,8 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Basic Usage
|
22
22
|
|
23
|
+
NOTE: It's important to have access to the UserEngage API package.
|
24
|
+
|
23
25
|
First, setup your UserEngage configuration.
|
24
26
|
Get yourself an API access token [here](https://app.userengage.com/api/YVSXSB/credentials/) and set it like
|
25
27
|
|
@@ -29,7 +31,16 @@ UserEngage.config do |config|
|
|
29
31
|
end
|
30
32
|
```
|
31
33
|
|
32
|
-
|
34
|
+
Then query models or delete them like
|
35
|
+
|
36
|
+
```ruby
|
37
|
+
user = UserEngage::User.find(email: 'markus@company-mood.com')
|
38
|
+
# => <#UserEngage::User id:12345 email:...>
|
39
|
+
|
40
|
+
user.destroy
|
41
|
+
# => true
|
42
|
+
```
|
43
|
+
|
33
44
|
|
34
45
|
## Development
|
35
46
|
|
data/lib/user_engage/version.rb
CHANGED
data/user_engage.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.require_paths = ['lib']
|
25
25
|
|
26
26
|
spec.add_runtime_dependency 'dry-struct', '~> 0.4'
|
27
|
-
spec.add_runtime_dependency 'faraday', '
|
27
|
+
spec.add_runtime_dependency 'faraday', '>= 0.13'
|
28
28
|
|
29
29
|
spec.add_development_dependency 'bundler', '~> 1.16'
|
30
30
|
spec.add_development_dependency 'dotenv', '~> 2.2'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schwed
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-struct
|
@@ -28,16 +28,16 @@ dependencies:
|
|
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.13'
|
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.13'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|