sportradar-api 0.1.14 → 0.1.15

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: f9526adbe8a6f3a7fdfbb99aaaebf7ce50d8b6b2
4
- data.tar.gz: 466348e650f976fc12f828af43cf40927f9d0bed
3
+ metadata.gz: b3f212828651413aba085e51763190c25fa8bf75
4
+ data.tar.gz: 558d13cdefd909ab7d3093e383214a0c3a8f5fed
5
5
  SHA512:
6
- metadata.gz: 2dc9dc73170c24c675122080c2ed1dfdd90830fe542b5a677dd8d221b86eadf7138e8031dd018c5ebe3d2b19c61e36499d73a8f48a17d7cd1f03211b5d688f4a
7
- data.tar.gz: 54cbfa35b41b09b1f21e558ab9efdad8a4ca06cde2c6c28cf5915e850afe01c24f287485289fbc41b0b1cb618f2f248b8b50c7d24e9cfdbda19f0f979460d633
6
+ metadata.gz: 92da2cb90404fc48058844d9f522fb63092d51e5fda36a2d97b289200c2166d661dbe0cb4bf9300802521dc0d948117cbc3a1c29a03ee735481fa21faa07856b
7
+ data.tar.gz: b993fa6d7fc2059e5618ce38984d7ea61fe274725005c5ffdb1e58ccb63abc877547eabcb6631f6f3b89498409cd2be4e914c68682e0e1ef2c6f60c055094081
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sportradar-api (0.1.14)
4
+ sportradar-api (0.1.15)
5
5
  activesupport
6
6
  httparty (>= 0.13.3)
7
7
 
@@ -69,14 +69,18 @@ module Sportradar
69
69
  end
70
70
 
71
71
  def get_age
72
- now = Time.now.utc.to_date
73
- dob = birthdate.to_date
74
- now.year - dob.year - ((now.month > dob.month || (now.month == dob.month && now.day >= dob.day)) ? 0 : 1)
72
+ if birthdate.present?
73
+ now = Time.now.utc.to_date
74
+ dob = birthdate.to_date
75
+ now.year - dob.year - ((now.month > dob.month || (now.month == dob.month && now.day >= dob.day)) ? 0 : 1)
76
+ end
75
77
  end
76
78
 
77
79
  def get_height_ft
78
- feet, inches = height_in.to_i.divmod(12)
79
- "#{feet}' #{inches}\""
80
+ if height_in.present?
81
+ feet, inches = height_in.to_i.divmod(12)
82
+ "#{feet}' #{inches}\""
83
+ end
80
84
  end
81
85
 
82
86
  private
@@ -1,5 +1,5 @@
1
1
  module Sportradar
2
2
  module Api
3
- VERSION = "0.1.14"
3
+ VERSION = "0.1.15"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sportradar-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Eggett