rubypitaya 2.11.0 → 2.11.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
  SHA256:
3
- metadata.gz: b321da34730806680b92f8bb44ceff0c79f8210d57b5965b37f1628a75c909d9
4
- data.tar.gz: 19972a31be303fc21fedd839d5183a12c31cee79b49504ebaad9c19fa8376b40
3
+ metadata.gz: 484a04f94edf96a0610d7756b48a08ac349f1a2e72a244ff07046bec55f1f7be
4
+ data.tar.gz: 9951a60c18f4baaa0e34e88ef29c97a140aa00e328efb4bfdc9661a257ce6960
5
5
  SHA512:
6
- metadata.gz: a2f1bcaadf6baa4f3fa268641adc59482ee80bcd6d68d47b0ee1d0f09fdcb5c14c03ca1b8e49fe7da937d9e351a9a74b7fac7783c7b3451555eff8f61508c659
7
- data.tar.gz: ea75de7b7e2ac13c15d46f62d7663f68a0748b447333cea3ac5d8c1af673697cf819de046fff117e40c3437ed1a8a0252cf665bccc600a8c02317c11f5db6afc
6
+ metadata.gz: 275cfad81877d43ada6941369801ffb438e88d825bd9a1d7f4bdd777bbef56a4a9fcb2e1a06b7753d1d100c716da1b8ce61e5e331f1e27a471df1ae91e7a5182
7
+ data.tar.gz: cc9b47f3f138bb73474fcd726a88644c806b7c79c908b4334734fbd3171da6fc03db17735de3121af3ad7cde73bb57982b991d0b3cd32e67b295e9b29fa0f3f3
@@ -1,6 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem 'rubypitaya', '2.11.0'
3
+ gem 'rubypitaya', '2.11.1'
4
4
 
5
5
  group :development do
6
6
  gem 'pry', '0.12.2'
@@ -84,7 +84,7 @@ GEM
84
84
  rspec-support (~> 3.8.0)
85
85
  rspec-support (3.8.3)
86
86
  ruby2_keywords (0.0.2)
87
- rubypitaya (2.11.0)
87
+ rubypitaya (2.11.1)
88
88
  activerecord (= 6.0.2)
89
89
  etcdv3 (= 0.10.2)
90
90
  eventmachine (= 1.2.7)
@@ -123,7 +123,7 @@ DEPENDENCIES
123
123
  listen (= 3.2.1)
124
124
  pry (= 0.12.2)
125
125
  rspec (= 3.8.0)
126
- rubypitaya (= 2.11.0)
126
+ rubypitaya (= 2.11.1)
127
127
 
128
128
  BUNDLED WITH
129
129
  1.17.2
@@ -12,10 +12,18 @@ Feature: Player
12
12
 
13
13
  Scenario: Get player info
14
14
  Given the following player:
15
- | name | gold |
16
- | Someone | 15 |
15
+ | name | gold | user_id |
16
+ | Someone | 15 | 00000000-0000-0000-0000-000000000001 |
17
17
  And the player 'Someone' is authenticated
18
18
  When client call route 'rubypitaya.playerHandler.getInfo'
19
- Then server should response 'code' as 'RP-200'
20
- And server should response 'data.name' as 'Someone'
21
- And server should response 'data.gold' as '15'
19
+ Then server should response the following json:
20
+ """
21
+ {
22
+ 'code': 'RP-200',
23
+ 'data': {
24
+ 'name': 'Someone',
25
+ 'gold': 15,
26
+ 'userId': '00000000-0000-0000-0000-000000000001'
27
+ }
28
+ }
29
+ """
@@ -6,7 +6,7 @@ end
6
6
  Given(/^[Tt]he following [Pp]layer[s]*[:]*$/) do |table|
7
7
  player_hashes = table.hashes
8
8
  player_hashes.each do |player_hash|
9
- player_hash[:user] = User.new
9
+ player_hash[:user] = User.new(id: player_hash[:user_id])
10
10
  MyApp::Player.create(player_hash)
11
11
  end
12
12
  end
@@ -15,6 +15,13 @@ Given(/^[Ss]erver should response ["'](.+)["'] as ["'](.+)["']$/) do |response_k
15
15
  expect(response_value.to_s).to eq(expected_value)
16
16
  end
17
17
 
18
+ Given(/^[Ss]erver should response the following json[:]*$/) do |expected_json|
19
+ expected_json = expected_json.delete("\n").delete(' ')
20
+ response_json = @handler_helper.response.to_json.gsub("\"", "'")
21
+
22
+ expect(response_json).to eq(expected_json)
23
+ end
24
+
18
25
  Given(/^[Ss]etup key ["'](.+)["'] is ["'](.+)["']$/) do |key, value|
19
26
  @handler_helper.add_setup(key, value)
20
27
  end
@@ -1,3 +1,3 @@
1
1
  module RubyPitaya
2
- VERSION = '2.11.0'
2
+ VERSION = '2.11.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubypitaya
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.0
4
+ version: 2.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luciano Prestes Cavalcanti