openstax_api 9.4.1 → 9.6.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: f20845fe70aa3311547542c1879c29e2f9d817825d0f9907ea23c6b52488ae8c
4
+ data.tar.gz: d49f798a3ea2b5eae785cf3af85052a8c0bc0e64e595b01902f2d250215926c9
5
5
  SHA512:
6
- metadata.gz: e27275ee2d4fb35f17ee548c46fb488cf7121042145ba17328d5cf68a2fb1472ebbc8c16444efc5825e59db255b4335a62ca4d14549f0822bdcd1c3d482a0985
7
- data.tar.gz: fda7d0523f84c2549859f80ad05bd326793608950874c851ce63c4c94b988a2f33cbd5225eb4ef543620e14f8dc77f503aa83439536fb8b5796238c444ea8675
6
+ metadata.gz: 7c040e99fc66c5cd28207c86d9bf8dc7cab3a9e7c2677813d4579fc3dc78f8e1e83f45d97892e3ae00d9d5bbe54894765eadd5c969ef5ddc86757777031c5ec0
7
+ data.tar.gz: f6563344bf28b27c78d8d90063e9a7c60ca56736bf55be5fed7eace33a2d0d1c094eae2a7eb4620bd91dc66bf41e8c5b2f4a5df8dd4bc2cbfcdb29efdaad2bd0
@@ -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.6.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.6.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: 2024-03-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -17,20 +17,34 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '5.2'
21
- - - "<"
20
+ version: '6'
21
+ - - "<="
22
22
  - !ruby/object:Gem::Version
23
- version: '7'
23
+ version: '8'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
28
  - - ">="
29
29
  - !ruby/object:Gem::Version
30
- version: '5.2'
31
- - - "<"
30
+ version: '6'
31
+ - - "<="
32
32
  - !ruby/object:Gem::Version
33
- version: '7'
33
+ version: '8'
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
@@ -135,14 +149,14 @@ dependencies:
135
149
  requirements:
136
150
  - - ">="
137
151
  - !ruby/object:Gem::Version
138
- version: '11'
152
+ version: 12.1.0
139
153
  type: :runtime
140
154
  prerelease: false
141
155
  version_requirements: !ruby/object:Gem::Requirement
142
156
  requirements:
143
157
  - - ">="
144
158
  - !ruby/object:Gem::Version
145
- version: '11'
159
+ version: 12.1.0
146
160
  - !ruby/object:Gem::Dependency
147
161
  name: responders
148
162
  requirement: !ruby/object:Gem::Requirement
@@ -157,20 +171,6 @@ dependencies:
157
171
  - - ">="
158
172
  - !ruby/object:Gem::Version
159
173
  version: '0'
160
- - !ruby/object:Gem::Dependency
161
- name: sprockets
162
- requirement: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - ">="
165
- - !ruby/object:Gem::Version
166
- version: '0'
167
- type: :development
168
- prerelease: false
169
- version_requirements: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - ">="
172
- - !ruby/object:Gem::Version
173
- version: '0'
174
174
  - !ruby/object:Gem::Dependency
175
175
  name: listen
176
176
  requirement: !ruby/object:Gem::Requirement
@@ -287,7 +287,7 @@ homepage: https://github.com/openstax/openstax_api
287
287
  licenses:
288
288
  - MIT
289
289
  metadata: {}
290
- post_install_message:
290
+ post_install_message:
291
291
  rdoc_options: []
292
292
  require_paths:
293
293
  - lib
@@ -302,8 +302,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
302
302
  - !ruby/object:Gem::Version
303
303
  version: '0'
304
304
  requirements: []
305
- rubygems_version: 3.2.19
306
- signing_key:
305
+ rubygems_version: 3.4.10
306
+ signing_key:
307
307
  specification_version: 4
308
308
  summary: API utilities for OpenStax products and tools.
309
309
  test_files: []