openstax_api 9.0.1 → 9.3.1

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: f83c98026dbc9d84ffd602fc06cf65de6b88ee89fe05c72ec01e974d82bf7cef
4
- data.tar.gz: 7fa22ec461b66dfd46bf5e73348b33154bf272e68ff38c365cc7c37b26bd657d
3
+ metadata.gz: 0123d440a662f7a4d147465c86fcf59d446a933dcdaa62e6f40b93c76d552297
4
+ data.tar.gz: 2591a952d00cf27d7369d513a5090009e6681055e3c0c8887035b9736cadeb7c
5
5
  SHA512:
6
- metadata.gz: 34b6a34c6c049c3e52a86bd91adb9f9b2275eae3409730af74090ca7bdef314bfafcc58923cd61dcd4f56ecb8ea8b5ec9a543205988acb9706b187a50af05b21
7
- data.tar.gz: c967f69e3c85fe37c387ad145156dcc6317545606981fd019c882e22fa0ae231fdc14f2a99bf51a279b172f486b57229c05b3b289980506351b52af1480fef70
6
+ metadata.gz: 19f2e12774276689e255a3d5fd525625cf9ffbfa5f32cec156a979425b3f4025d87be13b38725b9a732ef4381d695db2c825e388d3c5179bbc7c0b3a2ea437ee
7
+ data.tar.gz: 255b1b2158142611ed55bcb709d44b0db8e137b18893545a5e20458e481e3b1771660e6765eb2eb61aeb06b5a982200297c6068c45ef263b905cd28c63041c43
@@ -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
@@ -107,6 +107,7 @@ module OpenStax
107
107
  model.with_lock do
108
108
  if model.destroy
109
109
  model.send :clear_association_cache
110
+ yield model if block_given?
110
111
  respond_with model, responder_options.merge(represent_with_options)
111
112
  else
112
113
  render_api_errors(model.errors)
@@ -131,6 +132,7 @@ module OpenStax
131
132
  model.with_lock do
132
133
  if model.restore(recursive: recursive)
133
134
  model.send :clear_association_cache
135
+ yield model if block_given?
134
136
  respond_with model, responder_options.merge(represent_with_options)
135
137
  else
136
138
  render_api_errors(model.errors)
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Api
3
- VERSION = '9.0.1'
3
+ VERSION = '9.3.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,148 +1,156 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstax_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.0.1
4
+ version: 9.3.1
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: 2019-06-26 00:00:00.000000000 Z
12
+ date: 2021-11-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '5.2'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '5.2'
28
+ - !ruby/object:Gem::Dependency
29
+ name: addressable
16
30
  requirement: !ruby/object:Gem::Requirement
17
31
  requirements:
18
32
  - - ">="
19
33
  - !ruby/object:Gem::Version
20
- version: '3.1'
34
+ version: '0'
21
35
  type: :runtime
22
36
  prerelease: false
23
37
  version_requirements: !ruby/object:Gem::Requirement
24
38
  requirements:
25
39
  - - ">="
26
40
  - !ruby/object:Gem::Version
27
- version: '3.1'
41
+ version: '0'
28
42
  - !ruby/object:Gem::Dependency
29
43
  name: representable
30
44
  requirement: !ruby/object:Gem::Requirement
31
45
  requirements:
32
46
  - - ">="
33
47
  - !ruby/object:Gem::Version
34
- version: '2.4'
35
- - - "<"
36
- - !ruby/object:Gem::Version
37
- version: '4.0'
48
+ version: '0'
38
49
  type: :runtime
39
50
  prerelease: false
40
51
  version_requirements: !ruby/object:Gem::Requirement
41
52
  requirements:
42
53
  - - ">="
43
54
  - !ruby/object:Gem::Version
44
- version: '2.4'
45
- - - "<"
46
- - !ruby/object:Gem::Version
47
- version: '4.0'
55
+ version: '0'
48
56
  - !ruby/object:Gem::Dependency
49
57
  name: roar
50
58
  requirement: !ruby/object:Gem::Requirement
51
59
  requirements:
52
60
  - - ">="
53
61
  - !ruby/object:Gem::Version
54
- version: '1.0'
62
+ version: '0'
55
63
  type: :runtime
56
64
  prerelease: false
57
65
  version_requirements: !ruby/object:Gem::Requirement
58
66
  requirements:
59
67
  - - ">="
60
68
  - !ruby/object:Gem::Version
61
- version: '1.0'
69
+ version: '0'
62
70
  - !ruby/object:Gem::Dependency
63
71
  name: roar-rails
64
72
  requirement: !ruby/object:Gem::Requirement
65
73
  requirements:
66
74
  - - ">="
67
75
  - !ruby/object:Gem::Version
68
- version: '1.0'
76
+ version: '0'
69
77
  type: :runtime
70
78
  prerelease: false
71
79
  version_requirements: !ruby/object:Gem::Requirement
72
80
  requirements:
73
81
  - - ">="
74
82
  - !ruby/object:Gem::Version
75
- version: '1.0'
83
+ version: '0'
76
84
  - !ruby/object:Gem::Dependency
77
85
  name: uber
78
86
  requirement: !ruby/object:Gem::Requirement
79
87
  requirements:
80
- - - "<"
88
+ - - ">="
81
89
  - !ruby/object:Gem::Version
82
- version: 0.1.0
90
+ version: '0'
83
91
  type: :runtime
84
92
  prerelease: false
85
93
  version_requirements: !ruby/object:Gem::Requirement
86
94
  requirements:
87
- - - "<"
95
+ - - ">="
88
96
  - !ruby/object:Gem::Version
89
- version: 0.1.0
97
+ version: '0'
90
98
  - !ruby/object:Gem::Dependency
91
99
  name: doorkeeper
92
100
  requirement: !ruby/object:Gem::Requirement
93
101
  requirements:
94
102
  - - ">="
95
103
  - !ruby/object:Gem::Version
96
- version: '2.0'
104
+ version: '0'
97
105
  type: :runtime
98
106
  prerelease: false
99
107
  version_requirements: !ruby/object:Gem::Requirement
100
108
  requirements:
101
109
  - - ">="
102
110
  - !ruby/object:Gem::Version
103
- version: '2.0'
111
+ version: '0'
104
112
  - !ruby/object:Gem::Dependency
105
113
  name: exception_notification
106
114
  requirement: !ruby/object:Gem::Requirement
107
115
  requirements:
108
116
  - - ">="
109
117
  - !ruby/object:Gem::Version
110
- version: '4.0'
118
+ version: '0'
111
119
  type: :runtime
112
120
  prerelease: false
113
121
  version_requirements: !ruby/object:Gem::Requirement
114
122
  requirements:
115
123
  - - ">="
116
124
  - !ruby/object:Gem::Version
117
- version: '4.0'
125
+ version: '0'
118
126
  - !ruby/object:Gem::Dependency
119
127
  name: openstax_utilities
120
128
  requirement: !ruby/object:Gem::Requirement
121
129
  requirements:
122
130
  - - ">="
123
131
  - !ruby/object:Gem::Version
124
- version: 4.2.0
132
+ version: '0'
125
133
  type: :runtime
126
134
  prerelease: false
127
135
  version_requirements: !ruby/object:Gem::Requirement
128
136
  requirements:
129
137
  - - ">="
130
138
  - !ruby/object:Gem::Version
131
- version: 4.2.0
139
+ version: '0'
132
140
  - !ruby/object:Gem::Dependency
133
141
  name: lev
134
142
  requirement: !ruby/object:Gem::Requirement
135
143
  requirements:
136
144
  - - ">="
137
145
  - !ruby/object:Gem::Version
138
- version: 1.0.0
146
+ version: '0'
139
147
  type: :runtime
140
148
  prerelease: false
141
149
  version_requirements: !ruby/object:Gem::Requirement
142
150
  requirements:
143
151
  - - ">="
144
152
  - !ruby/object:Gem::Version
145
- version: 1.0.0
153
+ version: '0'
146
154
  - !ruby/object:Gem::Dependency
147
155
  name: responders
148
156
  requirement: !ruby/object:Gem::Requirement
@@ -157,6 +165,20 @@ dependencies:
157
165
  - - ">="
158
166
  - !ruby/object:Gem::Version
159
167
  version: '0'
168
+ - !ruby/object:Gem::Dependency
169
+ name: sprockets
170
+ requirement: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ version: '0'
175
+ type: :development
176
+ prerelease: false
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - ">="
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
160
182
  - !ruby/object:Gem::Dependency
161
183
  name: sqlite3
162
184
  requirement: !ruby/object:Gem::Requirement
@@ -259,7 +281,7 @@ homepage: https://github.com/openstax/openstax_api
259
281
  licenses:
260
282
  - MIT
261
283
  metadata: {}
262
- post_install_message:
284
+ post_install_message:
263
285
  rdoc_options: []
264
286
  require_paths:
265
287
  - lib
@@ -274,8 +296,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
274
296
  - !ruby/object:Gem::Version
275
297
  version: '0'
276
298
  requirements: []
277
- rubygems_version: 3.0.4
278
- signing_key:
299
+ rubygems_version: 3.1.4
300
+ signing_key:
279
301
  specification_version: 4
280
302
  summary: API utilities for OpenStax products and tools.
281
303
  test_files: []