frecon 0.2.0 → 0.2.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: 81f4fffe7a3472db021811019f754872f050fe01
4
- data.tar.gz: 36accb11f3e90cf5a10a76bf42d178609afb5f80
3
+ metadata.gz: db237e76c74ecaf128c7b986136516d29f780cca
4
+ data.tar.gz: 82bb1cfe4f705c83a27f9ed22a3417fae8c18161
5
5
  SHA512:
6
- metadata.gz: d45db224b7de1a264ae077633672d792b1570df83ef9ff514ded0db86fe69f28d975f45f79376733215500a60de1f2bb37215993ad80fefc2ac5c39e36c824bd
7
- data.tar.gz: 273a7d1ee9d0e7556f6f74de074e8c384e9c5e784053942f5516d81c47fb6e065a3394a6103c879b964b0eb316ef04aad34ea98a6695d85c16e4ece665c89616
6
+ metadata.gz: b47d5f45113e9a0d53dfe466b320c80347dcf7caf836f8daaca93d5ef4a557718e3a048ce2e5d1716fea3b53207b7e8a32baa021108fb564e89d0361187ca329
7
+ data.tar.gz: 5472f1258969eb8ccf41c82b99741658ba5dc3a335b80a98374dfd8658eb0b888a8fe44fb14a6c4871575755bfb8c2fff34bdbe13be6ba1a66d035fcb8a7f9ea
@@ -8,7 +8,7 @@
8
8
  # <http://opensource.org/licenses/MIT>.
9
9
 
10
10
  module FReCon
11
- VERSION = "0.2.0"
11
+ VERSION = "0.2.1"
12
12
 
13
13
  @environment_variable = :development
14
14
 
@@ -163,6 +163,8 @@ module FReCon
163
163
 
164
164
  post_data.delete("match_number")
165
165
  post_data.delete("competition_name")
166
+
167
+ post_data
166
168
  elsif post_data["competition"] && post_data["competition"]["_id"] && post_data["competition"]["_id"]["$oid"] && (competition = Competition.find_by(id: post_data["competition"]["_id"]["$oid"]))
167
169
  # Try to set the match to the already existing match.
168
170
  match = competition.matches.find_by number: post_data["match_number"]
@@ -178,6 +180,8 @@ module FReCon
178
180
 
179
181
  post_data.delete("match_number")
180
182
  post_data.delete("competition")
183
+
184
+ post_data
181
185
  else
182
186
  raise RequestError.new(422, "A current competition is not set. Please set it.")
183
187
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frecon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Craig