shelby_arena 0.0.5 → 0.0.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c0a1c470ae01cbed883bb914b20ec9e4d46deba490ec2688038688cdf817607
|
4
|
+
data.tar.gz: ec35d1630b42be3f115f7d19f7787374584581db19f12c6be03167e80371fe5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca25ff9770faa87e1d89e509233647c549571ce233fb914e771e27c041f21b457b507eeec25d00ec7f97d7c10300baa5eedcb6628b9dd0975e88b7ab1af6381b
|
7
|
+
data.tar.gz: 43274ea6b7112f7bdc90405d9fcc10dbc1e61e9da7cf8cf89174232a84741862692faa7bf74e54d399555ae19b08288ffe430f933abed049307b5dd7dd444c4f
|
@@ -46,7 +46,12 @@ module ShelbyArena
|
|
46
46
|
options[:api_sig] = generate_api_sig(path, options)
|
47
47
|
|
48
48
|
res = json_post("#{path}?api_session=#{options[:api_session]}&api_sig=#{options[:api_sig]}", body.to_json)
|
49
|
-
|
49
|
+
|
50
|
+
if res.dig('ModifyResult', 'Successful').downcase == 'false'
|
51
|
+
raise ShelbyArena::Error, res.dig('ModifyResult')
|
52
|
+
else
|
53
|
+
res.dig('ModifyResult', 'ObjectID')
|
54
|
+
end
|
50
55
|
end
|
51
56
|
|
52
57
|
private
|
@@ -26,7 +26,8 @@ module ShelbyArena
|
|
26
26
|
first_name:,
|
27
27
|
last_name:,
|
28
28
|
email:,
|
29
|
-
record_status_id: 2
|
29
|
+
record_status_id: 2,
|
30
|
+
campus_id: nil
|
30
31
|
)
|
31
32
|
path = 'person/add'
|
32
33
|
|
@@ -34,9 +35,11 @@ module ShelbyArena
|
|
34
35
|
'FirstName' => first_name,
|
35
36
|
'LastName' => last_name,
|
36
37
|
'Emails' => ['Address' => email],
|
37
|
-
'RecordStatusID' => record_status_id
|
38
|
+
'RecordStatusID' => record_status_id
|
38
39
|
}
|
39
40
|
|
41
|
+
body['CampusID'] = campus_id if campus_id
|
42
|
+
|
40
43
|
options = {}
|
41
44
|
options[:api_sig] = generate_api_sig(path, options)
|
42
45
|
res = json_post("#{path}?api_session=#{options[:api_session]}&api_sig=#{options[:api_sig]}", body.to_json)
|
data/lib/shelby_arena/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shelby_arena
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Brooks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|