openstax_api 9.0.1 → 9.1.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: f83c98026dbc9d84ffd602fc06cf65de6b88ee89fe05c72ec01e974d82bf7cef
4
- data.tar.gz: 7fa22ec461b66dfd46bf5e73348b33154bf272e68ff38c365cc7c37b26bd657d
3
+ metadata.gz: a1a90407b8004ba1f67b9028f96c19d53c7c8721750bf090a9832b7d8529618d
4
+ data.tar.gz: 5f8c3af4ea5e5ddebd7128aaded0b93b1bc52d4172c48266b7053965d15d2b04
5
5
  SHA512:
6
- metadata.gz: 34b6a34c6c049c3e52a86bd91adb9f9b2275eae3409730af74090ca7bdef314bfafcc58923cd61dcd4f56ecb8ea8b5ec9a543205988acb9706b187a50af05b21
7
- data.tar.gz: c967f69e3c85fe37c387ad145156dcc6317545606981fd019c882e22fa0ae231fdc14f2a99bf51a279b172f486b57229c05b3b289980506351b52af1480fef70
6
+ metadata.gz: 37a2b07de1047c3cbb46fa4e8aa2eaf2531ad7b2793052c85850356f790c25f4135e06fe6f8f846c41d61ea8b13a2203a34a674ac3136fce47827da9fc48ef18
7
+ data.tar.gz: 82be1b50f10c1625279fc29c249a91a077d254f1a26ec63d73bb428388ce6c531603af065edbb0abba9f6a7a359b5cc08b1439a61f8b27842bfd1cc2978407bd
@@ -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.1.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dante Soares
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-06-26 00:00:00.000000000 Z
12
+ date: 2019-11-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -18,6 +18,9 @@ dependencies:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '3.1'
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: '6.0'
21
24
  type: :runtime
22
25
  prerelease: false
23
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -25,6 +28,9 @@ dependencies:
25
28
  - - ">="
26
29
  - !ruby/object:Gem::Version
27
30
  version: '3.1'
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '6.0'
28
34
  - !ruby/object:Gem::Dependency
29
35
  name: representable
30
36
  requirement: !ruby/object:Gem::Requirement
@@ -157,6 +163,20 @@ dependencies:
157
163
  - - ">="
158
164
  - !ruby/object:Gem::Version
159
165
  version: '0'
166
+ - !ruby/object:Gem::Dependency
167
+ name: sprockets
168
+ requirement: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - "<"
171
+ - !ruby/object:Gem::Version
172
+ version: '4.0'
173
+ type: :development
174
+ prerelease: false
175
+ version_requirements: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - "<"
178
+ - !ruby/object:Gem::Version
179
+ version: '4.0'
160
180
  - !ruby/object:Gem::Dependency
161
181
  name: sqlite3
162
182
  requirement: !ruby/object:Gem::Requirement
@@ -274,7 +294,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
274
294
  - !ruby/object:Gem::Version
275
295
  version: '0'
276
296
  requirements: []
277
- rubygems_version: 3.0.4
297
+ rubygems_version: 3.0.3
278
298
  signing_key:
279
299
  specification_version: 4
280
300
  summary: API utilities for OpenStax products and tools.