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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9826fd1a5ce9bef8139376da2008ada533251a89
4
- data.tar.gz: 7107de35fac53454897254a7fd37ac971fc4babc
3
+ metadata.gz: e71ddccfd545de0e0d11315d4d13bff3fc422fdf
4
+ data.tar.gz: 152676d6b712c4fdd8052d5384c00d048bc7cb3b
5
5
  SHA512:
6
- metadata.gz: f51b93c1f1a8326f20b8df241693ea443d73c470b8c2e7cbd2518a8a806b94f0240c5c66d954dc0356cf6fb2ca001eb39a76af7cf3b4fd64375226c1499e6ff0
7
- data.tar.gz: 4fe819e19913cb1cf67118974310e471ac9c3de1d473f21d0d052d27783784892329934a73591a8fdc6c3a7535465bdaf3393e0c20ffdcc9cff5339b0ca8356d
6
+ metadata.gz: 95272c50f544eb1a7d028e56100db7115b065b9763993ee8f966f536f81527326d2a223ee8632b9f7c1232bb225053605891ce73ff630f5a7742b0b1a02253a2
7
+ data.tar.gz: 8f133ffbf901ced2a6a308ac98c811cc3873e3f06e090548628e053fecb2727c717daeb4f5c37a9f5d036654c584210883d5bbb1e773f4c971caa56821220a8f
@@ -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['NickName']
68
+ self.person_information['LastName']
69
69
  rescue
70
70
  nil
71
71
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  PROJECT_GEM = 'shelby-arena-api'
3
- PROJECT_GEM_VERSION = '0.3.0'
3
+ PROJECT_GEM_VERSION = '0.3.1'
4
4
 
5
5
  s.name = PROJECT_GEM
6
6
  s.version = PROJECT_GEM_VERSION
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.0
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-10 00:00:00.000000000 Z
12
+ date: 2014-12-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: typhoeus