openstax_api 9.4.1 → 9.5.0

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: 4d5d6224f04656ce0e18a4509f1607ab91b9cc85c3318b35f50c5ec35b77836c
4
- data.tar.gz: '0763692f5e718a104134f64d1b048ce6ddbeca37627ae6f9d8556c9f5399292a'
3
+ metadata.gz: 38214901e96102b30f2e965a8d76be40a3161a6eecac68ed55f7972aec08e24c
4
+ data.tar.gz: a07178d8f473c0d5c42ba2d0db035ad0875c33848b37c08bb796c99743d29c27
5
5
  SHA512:
6
- metadata.gz: e27275ee2d4fb35f17ee548c46fb488cf7121042145ba17328d5cf68a2fb1472ebbc8c16444efc5825e59db255b4335a62ca4d14549f0822bdcd1c3d482a0985
7
- data.tar.gz: fda7d0523f84c2549859f80ad05bd326793608950874c851ce63c4c94b988a2f33cbd5225eb4ef543620e14f8dc77f503aa83439536fb8b5796238c444ea8675
6
+ metadata.gz: d11ece505b9641257fb63868e7dc96193cce5b305cbcf68f1c059ae702d56eed7c6c0c7202e8eae9bb7bfe2d8ad6ecc72a6bb1cd70acacf970c6ecc7686bb0e0
7
+ data.tar.gz: a9036f52e817f6e1a857ed68ead9096d6ef41d81cbc202a2089bc3b6ae8ddb227f7553bee85a0cfaacc36860bbe1d9fd88ba7a99d4ddbe42f57b6364948754f5
@@ -1,3 +1,5 @@
1
+ require 'addressable/uri'
2
+
1
3
  module OpenStax
2
4
  module Api
3
5
  module Params
@@ -44,7 +46,7 @@ module OpenStax
44
46
  end
45
47
 
46
48
  def _escape(string)
47
- URI.escape(string, RESERVED_CHARACTERS)
49
+ Addressable::URI.escape_component(string, RESERVED_CHARACTERS)
48
50
  end
49
51
 
50
52
  # Normalize a +Hash+ of parameter values. Parameters are sorted by name, using lexicographical
@@ -37,6 +37,8 @@ module OpenStax
37
37
  OSU::AccessPolicy.require_action_allowed!(:read, user, item)
38
38
  end
39
39
 
40
+ yield outputs if block_given?
41
+
40
42
  respond_with outputs, { status: :ok, location: nil }.merge(represent_with_options)
41
43
  end
42
44
 
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Api
3
- VERSION = '9.4.1'
3
+ VERSION = '9.5.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstax_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.4.1
4
+ version: 9.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dante Soares
8
8
  - JP Slavinsky
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-07-27 00:00:00.000000000 Z
12
+ date: 2022-09-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -31,6 +31,20 @@ dependencies:
31
31
  - - "<"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '7'
34
+ - !ruby/object:Gem::Dependency
35
+ name: addressable
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ type: :runtime
42
+ prerelease: false
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
34
48
  - !ruby/object:Gem::Dependency
35
49
  name: representable
36
50
  requirement: !ruby/object:Gem::Requirement
@@ -287,7 +301,7 @@ homepage: https://github.com/openstax/openstax_api
287
301
  licenses:
288
302
  - MIT
289
303
  metadata: {}
290
- post_install_message:
304
+ post_install_message:
291
305
  rdoc_options: []
292
306
  require_paths:
293
307
  - lib
@@ -302,8 +316,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
302
316
  - !ruby/object:Gem::Version
303
317
  version: '0'
304
318
  requirements: []
305
- rubygems_version: 3.2.19
306
- signing_key:
319
+ rubygems_version: 3.1.4
320
+ signing_key:
307
321
  specification_version: 4
308
322
  summary: API utilities for OpenStax products and tools.
309
323
  test_files: []