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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: e9404be5d05526d6e087b2225f4f9bc2ed761e3f07f6b0b2dbd9bbccc28f0aaa
4
- data.tar.gz: 6128f55f43debfcfc97dc120e62401397e22fbff122cacbb5e3f991a1cc01bcb
2
+ SHA1:
3
+ metadata.gz: 06c42bc3b6d5ebda0fd4d958ce6437734d2bed7b
4
+ data.tar.gz: 45c737f32348d97d7f1a19d73b0ea1a86f342d5c
5
5
  SHA512:
6
- metadata.gz: cf35f7875a1354090183a54ce60f4922dff6ff36daf12e25e6e3f460d5a6c2a08977f1932ce2be51b7f3a17f9ba8fae347b096f88716352da9efa8889546e068
7
- data.tar.gz: 734169422eb10b3a5b400263e7b80fea97ee40e6b0157e6202ba10faef4692d1bf6b9a47a95e466828352bcf37724dd82ecda9c5abe67e662850425f7f86481e
6
+ metadata.gz: 92ed78c3c84cb60430825d3d6bb6500f3c6b05170d7657aee1f8d868c608a101f92999ddf4680502e054e9d483140f44456d0066ff8a04acfd4681bb56e61f3b
7
+ data.tar.gz: 1864b1b513b1fcb5d336bd6b7996d2756186d0dfa88a30a968550d4ed55d8dd5faa9e6ba3073c5e249b17380ed4a1c4855bde4e4429eb695186d2b63c94bac58
data/Gemfile CHANGED
@@ -5,4 +5,4 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
5
5
  # Specify your gem's dependencies in abenity_ruby.gemspec
6
6
  gemspec
7
7
 
8
- gem 'nokogiri', '1.8.2'
8
+ gem 'nokogiri', '1.10.4'
@@ -1,15 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- abenity_ruby (1.0.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.3.0)
9
+ mini_portile2 (2.4.0)
10
10
  minitest (5.11.3)
11
- nokogiri (1.8.2)
12
- mini_portile2 (~> 2.3.0)
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.8.2)
22
+ nokogiri (= 1.10.4)
23
23
  rake (~> 10.0)
24
24
 
25
25
  BUNDLED WITH
@@ -3,19 +3,21 @@ require "date"
3
3
  require "time"
4
4
 
5
5
  ApiClient = AbenityRuby::ApiClient.new(
6
- "api_username",
7
- "api_password",
8
- "api_key"
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" => "1",
16
- "email" => "john.smith@acme.com",
17
- "firstname" => "John",
18
- "lastname" => "Smith",
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("file_path_to_private_key")
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'].each do |key, value|
38
- puts "#{key}: #{value} \n"
39
- end
39
+ puts results['error']
40
+ # results['error'].each do |key, value|
41
+ # puts "#{key}: #{value} \n"
42
+ # end
40
43
  end
@@ -32,7 +32,7 @@ module AbenityRuby
32
32
  if environment == 'live'
33
33
  @api_url = 'https://api.abenity.com'
34
34
  else
35
- @api_url = 'https://sandbox.abenity.com'
35
+ @api_url = 'https://api.abenity.local:8443'
36
36
  end
37
37
 
38
38
  @timeout = timeout
@@ -1,3 +1,3 @@
1
1
  module AbenityRuby
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
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.1
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: 2018-02-15 00:00:00.000000000 Z
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.7.5
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.