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 +4 -4
- data/lib/openstax/api/roar.rb +2 -0
- data/lib/openstax/api/version.rb +1 -1
- metadata +23 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1a90407b8004ba1f67b9028f96c19d53c7c8721750bf090a9832b7d8529618d
|
4
|
+
data.tar.gz: 5f8c3af4ea5e5ddebd7128aaded0b93b1bc52d4172c48266b7053965d15d2b04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37a2b07de1047c3cbb46fa4e8aa2eaf2531ad7b2793052c85850356f790c25f4135e06fe6f8f846c41d61ea8b13a2203a34a674ac3136fce47827da9fc48ef18
|
7
|
+
data.tar.gz: 82be1b50f10c1625279fc29c249a91a077d254f1a26ec63d73bb428388ce6c531603af065edbb0abba9f6a7a359b5cc08b1439a61f8b27842bfd1cc2978407bd
|
data/lib/openstax/api/roar.rb
CHANGED
@@ -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)
|
data/lib/openstax/api/version.rb
CHANGED
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
|
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-
|
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.
|
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.
|