gamekey 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e1811ae91ca0c3a3e8bf367102245dc6966f0e3
4
- data.tar.gz: b10f545ec4a409351660c5d594ca0178e9ac298d
3
+ metadata.gz: 8b75b490364543529516a83916dd68f4f171b400
4
+ data.tar.gz: bf35e620a2bc002697fbb28c2b9ce95f0a52b389
5
5
  SHA512:
6
- metadata.gz: 2c2bb15f1b1ba226d5dd5aa4360b0fbcd3a089f7a82a4f531553e867454c68dcb45996edb5d6fa04d3f63a35114c2d66d9944b09fd056b35b413ee58512820f6
7
- data.tar.gz: 1a9bfe61b13773a46070d54e13de7f880389f31b8ed534dbfb1bd1cbce7f3000348c892053fdcc4c63ceff3e15c46adbb3316528341c54b38fcecf4e02437770
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).
@@ -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 new_mail Changes url of the game to provided new url. Optional. Parameter is part of request body.
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)
@@ -1,3 +1,3 @@
1
1
  module Gamekey
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -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.3
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-05-17 00:00:00.000000000 Z
11
+ date: 2016-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra