shelby-arena-api 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/api/contribution.rb +5 -5
- data/shelby_arena_api.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e71ddccfd545de0e0d11315d4d13bff3fc422fdf
|
4
|
+
data.tar.gz: 152676d6b712c4fdd8052d5384c00d048bc7cb3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95272c50f544eb1a7d028e56100db7115b065b9763993ee8f966f536f81527326d2a223ee8632b9f7c1232bb225053605891ce73ff630f5a7742b0b1a02253a2
|
7
|
+
data.tar.gz: 8f133ffbf901ced2a6a308ac98c811cc3873e3f06e090548628e053fecb2727c717daeb4f5c37a9f5d036654c584210883d5bbb1e773f4c971caa56821220a8f
|
data/lib/api/contribution.rb
CHANGED
@@ -29,10 +29,10 @@ module ShelbyArena
|
|
29
29
|
# Constructor.
|
30
30
|
#
|
31
31
|
# @param reader (optional) The object that has the data. This can be a ContributionReader or Hash object.
|
32
|
-
def initialize(reader = nil)
|
33
|
-
if reader.is_a?(ContributionReader)
|
32
|
+
def initialize(reader = nil)
|
33
|
+
if reader.is_a?(ContributionReader)
|
34
34
|
initialize_from_json_object(reader.load_data['Contribution'])
|
35
|
-
elsif reader.is_a?(Hash)
|
35
|
+
elsif reader.is_a?(Hash)
|
36
36
|
initialize_from_json_object(reader)
|
37
37
|
end
|
38
38
|
end
|
@@ -43,7 +43,7 @@ module ShelbyArena
|
|
43
43
|
def first_name_with_nickname
|
44
44
|
begin
|
45
45
|
fname = self.person_information['FirstName']
|
46
|
-
if self.person_information['NickName'].strip != '' and
|
46
|
+
if self.person_information['NickName'].strip != '' and
|
47
47
|
self.person_information['NickName'].strip != fname
|
48
48
|
fname += " (#{self.person_information['NickName']})"
|
49
49
|
end
|
@@ -65,7 +65,7 @@ module ShelbyArena
|
|
65
65
|
|
66
66
|
def last_name
|
67
67
|
begin
|
68
|
-
self.person_information['
|
68
|
+
self.person_information['LastName']
|
69
69
|
rescue
|
70
70
|
nil
|
71
71
|
end
|
data/shelby_arena_api.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shelby-arena-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wes Hays
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-12-
|
12
|
+
date: 2014-12-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: typhoeus
|