rhino_project_core 0.20.0.beta.29 → 0.20.0.beta.34

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: 67a68fb210be0fbf5f2c1b219fbe6ca78903fbbf1b153864b481e9e2d87437a4
4
- data.tar.gz: 5a57f210cda4b0d7a00845f40ced733097bd3303fa67d5a0168578bb7414a167
3
+ metadata.gz: 989ec372278efaf34bfd49647d37e3116bef5997d5cd6f878324ffc35b7a65ac
4
+ data.tar.gz: 47d02ec23c34e49a54598c8897d050b8fb47d13311a39fc7186b097cfd5ebdb6
5
5
  SHA512:
6
- metadata.gz: 645f682b64ffc8b0ba89029da1932c0d1f00b7278ef2fdd2bdaf3dc5f114b439a6cd13e4106bf745a2de4614cf9f30934964282b26f47bc32c85807d6448cc4b
7
- data.tar.gz: c8ee201cc0e815dcc75d58048341b2143de70a175c6fa41f413d457d552406816dc14aa3cb89aae17d5790ccb941ee11dd2cff2575205c07cfc66e0215e6c2ea
6
+ metadata.gz: eb769ec5642bac7ebad49ef883150660f46d2f26ead2abb5fb91c5631efbc140677df3cd0e340b1ff0de1613556841507c63376ae330c47c5d16083be5c0d154
7
+ data.tar.gz: ec93a1cd67c087023bb3fde3a0d74d236cad2a7b11059f887b8735241289aede40d4e66191a53f33d496d0b2eaf961c66b9fbd23595090496692d6ce04659e99
@@ -2,6 +2,7 @@
2
2
 
3
3
  module Rhino
4
4
  module TestCase
5
+ # rubocop:disable Metrics/ClassLength
5
6
  class ControllerTest < ActionDispatch::IntegrationTest
6
7
  def setup
7
8
  DeviseTokenAuth.cookie_attributes[:secure] = false
@@ -35,8 +36,8 @@ module Rhino
35
36
  post path, params:, xhr: true, as: :json
36
37
  end
37
38
 
38
- def patch_api(path, params: {})
39
- patch path, params:, xhr: true, as: :json
39
+ def patch_api(path, params: {}, headers: {})
40
+ patch path, params:, xhr: true, as: :json, headers:
40
41
  end
41
42
 
42
43
  def put_api(path, params: {})
@@ -96,6 +97,10 @@ module Rhino
96
97
  assert response.cookies[DeviseTokenAuth.cookie_name], "Auth cookie #{DeviseTokenAuth.cookie_name} not present"
97
98
  end
98
99
 
100
+ def parsed_response_ids
101
+ parsed_response.fetch("results", []).map { |result| result["id"] }
102
+ end
103
+
99
104
  def parsed_response
100
105
  JSON.parse response.body
101
106
  end
@@ -130,5 +135,6 @@ module Rhino
130
135
  }
131
136
  end
132
137
  end
138
+ # rubocop:enable Metrics/ClassLength
133
139
  end
134
140
  end
data/lib/rhino/version.rb CHANGED
@@ -10,7 +10,7 @@ module Rhino
10
10
  MAJOR = 0
11
11
  MINOR = 20
12
12
  TINY = 0
13
- PRE = "beta.29"
13
+ PRE = "beta.34"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhino_project_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0.beta.29
4
+ version: 0.20.0.beta.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Rosevear
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-28 00:00:00.000000000 Z
11
+ date: 2024-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails