shelby_arena 0.0.6 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shelby_arena/resources/contribution.rb +7 -2
- data/lib/shelby_arena/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1501a5437dfd19290f4b3cf4de7225601cdcd4861d5687b0e138ed5cb66ecc5d
|
4
|
+
data.tar.gz: 7bcb0050acdce4b747a861b9a113855c7b48d07a1bb739514c9105238738da62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fa5e4ea578173812c2721e9a48f20b94a65f934241bd13e7cea0bd2c986626e9c6e75dd29fb445a00f2eed0adecf7faa0a08a4470f5804e587ae27952b1b7f5
|
7
|
+
data.tar.gz: 195f5e7b245fb27a648d3a82131d73cfa41f26a7f151882175c882336e7950d0cf756ce6b386ef63a77719501ae3299ecc8c4554ccb6ec45f55952d3d161a7d4
|
@@ -46,13 +46,18 @@ 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
|
53
58
|
|
54
59
|
def sum_of_funds(contribution_funds)
|
55
|
-
contribution_funds.map { |fund| fund[:amount] }.sum
|
60
|
+
contribution_funds.map { |fund| fund[:amount] }.sum.round(2)
|
56
61
|
end
|
57
62
|
|
58
63
|
def translate_funds(contribution_funds)
|
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.8
|
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
|