gamekey 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/gamekey.rb +1 -1
- data/lib/gamekey/version.rb +1 -1
- data/lib/reference.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: 8b75b490364543529516a83916dd68f4f171b400
|
4
|
+
data.tar.gz: bf35e620a2bc002697fbb28c2b9ce95f0a52b389
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a660c0cddc1dffea7b9cad9b2440cb868f501eba7b118bfbdff4cb7e007b1358aaaf1d9d94321ed565a0df925aecf4ba4104024cf09d49f35be1bd488a26e467
|
7
|
+
data.tar.gz: 199104450ffa76f17d3910635133f2a28eaa49fcfeca258ce856b3013b853bf47fd02cfc2a6fdcb45df5f2f8f1d72eabade7d9d36b839a692dbd71070b52431c
|
data/README.md
CHANGED
@@ -134,6 +134,9 @@ So you can get all the sources via the following git command.
|
|
134
134
|
|
135
135
|
## Changelog
|
136
136
|
|
137
|
+
### Version 0.0.4
|
138
|
+
Bugfix in reference test. Testcase PG-0 (checking that games could not be created without secrets).
|
139
|
+
|
137
140
|
### Version 0.0.3
|
138
141
|
POST /user checks now that a password and a user name is provided.
|
139
142
|
Thanks again to Jan Lukas Deichmann figuring out this bug (WebTech SoSe 2016).
|
data/lib/gamekey.rb
CHANGED
@@ -413,7 +413,7 @@ class GamekeyService
|
|
413
413
|
# @param :id Unique identifier of the game (the id is never changed!). Required. Parameter is part of the REST-URI!
|
414
414
|
# @param pwd Existing secret of the game (used for authentication). Required. Parameter is part of request body.
|
415
415
|
# @param new_name Changes name of the game to provided new name. Optional. Parameter is part of request body.
|
416
|
-
# @param
|
416
|
+
# @param new_url Changes url of the game to provided new url. Optional. Parameter is part of request body.
|
417
417
|
# @param new_secret Changes secret of the game to a new secret. Optional. Parameter is part of request body.
|
418
418
|
#
|
419
419
|
# @return 200 OK, on successfull update (response body includes JSON representation of updated game)
|
data/lib/gamekey/version.rb
CHANGED
data/lib/reference.rb
CHANGED
@@ -330,7 +330,7 @@ class GamekeyReferenceTests
|
|
330
330
|
})
|
331
331
|
send = DateTime.now
|
332
332
|
res = http.request(request)
|
333
|
-
return "#{error('POST', '/game', "PG-0")} Could create game '#{game}' (should return HTTP code 400 due to missing secret)" if (res.code == "200")
|
333
|
+
return "#{error('POST', '/game', "PG-0")} Could create game '#{@game}' (should return HTTP code 400 due to missing secret)".red if (res.code == "200")
|
334
334
|
|
335
335
|
# Check that game can be created
|
336
336
|
request = Net::HTTP::Post.new("/game")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gamekey
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nane Kratzke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|