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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04f22589f9def9b835ee4c3ff40a2f1f8266b6a7
4
- data.tar.gz: 53926ae03bd5da7ecad34e031e223561cd4d5327
3
+ metadata.gz: 31fe863cd1fa91a73bac6644a3fee7839329cbea
4
+ data.tar.gz: 737835ec59caf58ed43acd98b54aba10eb417890
5
5
  SHA512:
6
- metadata.gz: ed82a4466bdbdb0d9d5fcdc4a2b0ce12937ecc22eb3b20f19a9522578754fb33ddfd98ebc4a7a476591c537d3f689d5859419e21610ae02b3413042902a00892
7
- data.tar.gz: ebb4c0b1be64cf7e6c159c0ff02d7a4356e6b02e65f59741fcfd66372840185252a3c2dde9093be8df04408330d47b4eabccdae588979f5d62f92f97908b8487
6
+ metadata.gz: 91bc5bf41aef64bb5052308a936c0aee55d9e825e19decd3979f9f54baa58f8ee13f54a7d6f9fd76673d4f9c41474250a1deb48f4348c698702414ed4b0c1a13
7
+ data.tar.gz: a8260bcbfce4abeae586518b8ba1a1d4437493beb9154e06aa5998b5d7229a4fae6592d1c521b2291b8db8530d9d30fee3f472ed5f1df70405ff52378b6009b7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ige_isb_api (1.2.6)
4
+ ige_isb_api (1.2.7)
5
5
  nokogiri (~> 1.6)
6
6
  rfc-822 (~> 0.4)
7
7
 
@@ -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?)
@@ -2,5 +2,5 @@
2
2
  #coding: utf-8
3
3
 
4
4
  module IGE_ISB_API
5
- VERSION = "1.2.6"
5
+ VERSION = "1.2.7"
6
6
  end
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.6
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-09-24 00:00:00.000000000 Z
14
+ date: 2014-10-07 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: nokogiri