abenity_ruby 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +1 -1
- data/Gemfile.lock +5 -5
- data/examples/sso_member.rb +14 -11
- data/lib/abenity_ruby.rb +1 -1
- data/lib/abenity_ruby/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 06c42bc3b6d5ebda0fd4d958ce6437734d2bed7b
|
4
|
+
data.tar.gz: 45c737f32348d97d7f1a19d73b0ea1a86f342d5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92ed78c3c84cb60430825d3d6bb6500f3c6b05170d7657aee1f8d868c608a101f92999ddf4680502e054e9d483140f44456d0066ff8a04acfd4681bb56e61f3b
|
7
|
+
data.tar.gz: 1864b1b513b1fcb5d336bd6b7996d2756186d0dfa88a30a968550d4ed55d8dd5faa9e6ba3073c5e249b17380ed4a1c4855bde4e4429eb695186d2b63c94bac58
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
abenity_ruby (1.0.
|
4
|
+
abenity_ruby (1.0.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
mini_portile2 (2.
|
9
|
+
mini_portile2 (2.4.0)
|
10
10
|
minitest (5.11.3)
|
11
|
-
nokogiri (1.
|
12
|
-
mini_portile2 (~> 2.
|
11
|
+
nokogiri (1.10.4)
|
12
|
+
mini_portile2 (~> 2.4.0)
|
13
13
|
rake (10.5.0)
|
14
14
|
|
15
15
|
PLATFORMS
|
@@ -19,7 +19,7 @@ DEPENDENCIES
|
|
19
19
|
abenity_ruby!
|
20
20
|
bundler (~> 1.16)
|
21
21
|
minitest (~> 5.0)
|
22
|
-
nokogiri (= 1.
|
22
|
+
nokogiri (= 1.10.4)
|
23
23
|
rake (~> 10.0)
|
24
24
|
|
25
25
|
BUNDLED WITH
|
data/examples/sso_member.rb
CHANGED
@@ -3,19 +3,21 @@ require "date"
|
|
3
3
|
require "time"
|
4
4
|
|
5
5
|
ApiClient = AbenityRuby::ApiClient.new(
|
6
|
-
"
|
7
|
-
"
|
8
|
-
"
|
6
|
+
"Friends",
|
7
|
+
"T0By4250",
|
8
|
+
"bonqylqXqS0gQFYSlJSJ0U4ZS2ttqTmD",
|
9
|
+
2,
|
10
|
+
"test"
|
9
11
|
)
|
10
12
|
|
11
13
|
member_info = {
|
12
14
|
"creation_time" => (DateTime.now).strftime('%FT%T%:z'),
|
13
15
|
"salt" => rand(0..100000),
|
14
16
|
"send_welcome_email" => "1",
|
15
|
-
"client_user_id" => "
|
16
|
-
"email" => "
|
17
|
-
"firstname" => "
|
18
|
-
"lastname" => "
|
17
|
+
"client_user_id" => "2",
|
18
|
+
"email" => "brent.smith@acme.com",
|
19
|
+
"firstname" => "Mister",
|
20
|
+
"lastname" => "Anderson",
|
19
21
|
"address" => "2134 Main Street",
|
20
22
|
"city" => "Irvine",
|
21
23
|
"state" => "CA",
|
@@ -27,14 +29,15 @@ member_info = {
|
|
27
29
|
|
28
30
|
results = ApiClient.sso_member(
|
29
31
|
member_info,
|
30
|
-
File.read("
|
32
|
+
File.read("./keys/abenity_friends_sso.pem")
|
31
33
|
)
|
32
34
|
|
33
35
|
if results['status'] == 'ok'
|
34
36
|
puts "Success! Token URL: #{results['data']['token_url']}"
|
35
37
|
else
|
36
38
|
puts "There were some errors: \n"
|
37
|
-
results['error']
|
38
|
-
|
39
|
-
|
39
|
+
puts results['error']
|
40
|
+
# results['error'].each do |key, value|
|
41
|
+
# puts "#{key}: #{value} \n"
|
42
|
+
# end
|
40
43
|
end
|
data/lib/abenity_ruby.rb
CHANGED
data/lib/abenity_ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: abenity_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brent Linville
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.
|
98
|
+
rubygems_version: 2.5.2.3
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: A Ruby library for using the Abenity API.
|