rhino_project_core 0.20.0.beta.26 → 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: f8dc3c86cc571b412d9eabe426f39c322fa293bd4a7a588fe380c013b5027034
4
- data.tar.gz: dbb2fa0aa2ccd5512c7509e8435d107884744ff4aa26461f8694965bb1b1fe62
3
+ metadata.gz: 3afa527e9614235da21aa1c3c92a2b4a22c61e128050c474f95ea36ff19d8c50
4
+ data.tar.gz: ce1a0f0be7bee9c0546b7073d97912ab07ea5ae926811c3ba9096987d66d2ed9
5
5
  SHA512:
6
- metadata.gz: 2682895c3bf4735b5ccd400f573aef6a26ece592e3c9f2305bc35cdb95ab467c44c9a8877adf724ec22f58a720168578ac48be8e41797dfd821a2067fb3caffd
7
- data.tar.gz: 978b6604b9f1f60da177c3f31dea461ec86db253486a03ec65be77fa175e31066ec22f99cdfabfb1f6f8f364117e8677e9337dc6c462a248e9133c7c901f2af1
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.26"
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.26
4
+ version: 0.20.0.beta.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Rosevear
8
- autorequire:
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
@@ -225,7 +225,7 @@ homepage: ''
225
225
  licenses:
226
226
  - MIT
227
227
  metadata: {}
228
- post_install_message:
228
+ post_install_message:
229
229
  rdoc_options: []
230
230
  require_paths:
231
231
  - lib
@@ -241,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
241
241
  version: 1.3.1
242
242
  requirements: []
243
243
  rubygems_version: 3.3.26
244
- signing_key:
244
+ signing_key:
245
245
  specification_version: 4
246
246
  summary: ''
247
247
  test_files: []