foot_stats_simulator 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -110,6 +110,7 @@ class SimulatorMatch < ActiveRecord::Base
110
110
  end
111
111
 
112
112
  def to_foot_stats_narration
113
+ update_by_timeline
113
114
  {
114
115
  "Campeonato" => {
115
116
  "@Id" => simulator_championship.source_id.to_s,
@@ -177,7 +178,7 @@ class SimulatorMatch < ActiveRecord::Base
177
178
  end
178
179
 
179
180
  def update_by_timeline
180
- return if status.nil? || SimulatorMatch::STATUS_SEQUENCE[status.to_sym] >= SimulatorMatch::STATUS_SEQUENCE[:finished]
181
+ return if !status.nil? || SimulatorMatch::STATUS_SEQUENCE[status.to_sym] >= SimulatorMatch::STATUS_SEQUENCE[:finished]
181
182
  timeline.update_match
182
183
  end
183
184
 
@@ -1,3 +1,3 @@
1
1
  module FootStatsSimulator
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foot_stats_simulator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-18 00:00:00.000000000 Z
12
+ date: 2013-01-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails