ige_isb_api 1.2.6 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ige_isb_api/games.rb +3 -3
- data/lib/ige_isb_api/version.rb +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: 31fe863cd1fa91a73bac6644a3fee7839329cbea
|
4
|
+
data.tar.gz: 737835ec59caf58ed43acd98b54aba10eb417890
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91bc5bf41aef64bb5052308a936c0aee55d9e825e19decd3979f9f54baa58f8ee13f54a7d6f9fd76673d4f9c41474250a1deb48f4348c698702414ed4b0c1a13
|
7
|
+
data.tar.gz: a8260bcbfce4abeae586518b8ba1a1d4437493beb9154e06aa5998b5d7229a4fae6592d1c521b2291b8db8530d9d30fee3f472ed5f1df70405ff52378b6009b7
|
data/Gemfile.lock
CHANGED
data/lib/ige_isb_api/games.rb
CHANGED
@@ -65,7 +65,7 @@ module IGE_ISB_API
|
|
65
65
|
|
66
66
|
class Game
|
67
67
|
attr_accessor :id, :name, :description, :images, :is_fun_active, :is_real_active,
|
68
|
-
:coin_values, :identifier, :category, :main_category, :skin,
|
68
|
+
:coin_values, :provider, :identifier, :category, :main_category, :skin,
|
69
69
|
:coin, :coin_min, :coin_max, :wmode, :casino, :use_preloader, # use preloader is the same for both fun and real modes.
|
70
70
|
:game_type, :restricted_countries, :custom_backgrounds,
|
71
71
|
:info, :translated, :language
|
@@ -223,10 +223,9 @@ module IGE_ISB_API
|
|
223
223
|
g.use_preloader = (node['p'] == '1')
|
224
224
|
g.coin_values = node['c'].split('; ').map {|s| s.to_f}
|
225
225
|
g.restricted_countries = node['rc'].split(', ')
|
226
|
+
g.provider = node['provider']
|
226
227
|
g.identifier = node['i']
|
227
228
|
g.description = node.xpath('d').first.text
|
228
|
-
# mcn = node.xpath('main_cat').first
|
229
|
-
# g.main_category = mcn.text unless mcn.nil?
|
230
229
|
g.translated = (node['translated'] == '1')
|
231
230
|
g.language = g.translated? ? lang : IGE_ISB_API::Constants::DEFAULT_LANGUAGE
|
232
231
|
return g
|
@@ -367,6 +366,7 @@ module IGE_ISB_API
|
|
367
366
|
def any_errors?
|
368
367
|
errors = []
|
369
368
|
errors << {game: self, message: "Missing casino"} if self.casino.nil? || self.casino.empty?
|
369
|
+
errors << {game: self, message: "Missing provider"} if self.provider.nil? || self.provider.empty?
|
370
370
|
errors << {game: self, message: "Missing identifier"} if self.identifier.nil? || self.identifier.empty?
|
371
371
|
errors << {game: self, message: "Missing game_swf_path(:fun)"} if self.fun? && (self.game_swf_path(:fun).nil? || self.game_swf_path(:fun).empty?)
|
372
372
|
errors << {game: self, message: "Missing game_swf_url(:fun)"} if self.fun? && (self.game_swf_url(:fun).nil? || self.game_swf_url(:fun).empty?)
|
data/lib/ige_isb_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ige_isb_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Sag
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2014-
|
14
|
+
date: 2014-10-07 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: nokogiri
|