rhino_project_core 0.20.0.beta.29 → 0.20.0.beta.33

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: 3afa527e9614235da21aa1c3c92a2b4a22c61e128050c474f95ea36ff19d8c50
4
+ data.tar.gz: ce1a0f0be7bee9c0546b7073d97912ab07ea5ae926811c3ba9096987d66d2ed9
5
5
  SHA512:
6
- metadata.gz: 645f682b64ffc8b0ba89029da1932c0d1f00b7278ef2fdd2bdaf3dc5f114b439a6cd13e4106bf745a2de4614cf9f30934964282b26f47bc32c85807d6448cc4b
7
- data.tar.gz: c8ee201cc0e815dcc75d58048341b2143de70a175c6fa41f413d457d552406816dc14aa3cb89aae17d5790ccb941ee11dd2cff2575205c07cfc66e0215e6c2ea
6
+ metadata.gz: 2bc5ad95aa7073899ee74abda2027db9b3f2c0acb4d090f73fd5ee04ffd26983e7ca0236f8bb3ce19792be07052d040c374bf7d010d12144f153911d39115dbf
7
+ data.tar.gz: ceee53f831333d457d63944fb97f60b39a0f86e2dab2e2cdc15f9324b6d08605f966aff32795aea845422a2dd67f3cd531ae3e4756b315d684e84c9ee2e68694
@@ -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.33"
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.33
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