openstax_api 9.1.0 → 9.2.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: a1a90407b8004ba1f67b9028f96c19d53c7c8721750bf090a9832b7d8529618d
4
- data.tar.gz: 5f8c3af4ea5e5ddebd7128aaded0b93b1bc52d4172c48266b7053965d15d2b04
3
+ metadata.gz: 46e463654e69b04d9db864f1b4f9b90bff16aefafa97ac14629692133ce5f5c8
4
+ data.tar.gz: 434255f3790f10d0e4f15f74c377d507212a6a9cfafcd25b477aca88efc7cb5a
5
5
  SHA512:
6
- metadata.gz: 37a2b07de1047c3cbb46fa4e8aa2eaf2531ad7b2793052c85850356f790c25f4135e06fe6f8f846c41d61ea8b13a2203a34a674ac3136fce47827da9fc48ef18
7
- data.tar.gz: 82be1b50f10c1625279fc29c249a91a077d254f1a26ec63d73bb428388ce6c531603af065edbb0abba9f6a7a359b5cc08b1439a61f8b27842bfd1cc2978407bd
6
+ metadata.gz: '09fa0ea34bd8dc7393ade1470d1e875a55b29a158cb1f1f6a5288ff58c1f9eaef5db223d7c2a96b6a73000b60aea59026a9db0cba142d471bb80a1611f0a35e0'
7
+ data.tar.gz: 3e2279a4f1a7aaa670b54db869576666ce2677b06c6bd01806debe220a9ca21ec6e90679223b2419122f94c0d135ae33eaf78238f14a2ea4a6f4d5cf5049e8c2
@@ -80,7 +80,9 @@ module OpenStax
80
80
  responder_options = { responder: ResponderWithPutPatchDeleteContent }
81
81
  represent_with_options = { user_options: options, represent_with: represent_with }
82
82
 
83
- model.with_lock do
83
+ model.transaction do
84
+ model.reload lock: true
85
+
84
86
  consume!(model, represent_with_options.dup)
85
87
  yield model if block_given?
86
88
  OSU::AccessPolicy.require_action_allowed!(:update, current_api_user, model)
@@ -104,7 +106,9 @@ module OpenStax
104
106
  responder_options = { responder: ResponderWithPutPatchDeleteContent }
105
107
  represent_with_options = { user_options: options, represent_with: represent_with }
106
108
 
107
- model.with_lock do
109
+ model.transaction do
110
+ model.reload lock: true
111
+
108
112
  if model.destroy
109
113
  model.send :clear_association_cache
110
114
  yield model if block_given?
@@ -129,7 +133,9 @@ module OpenStax
129
133
  user_options: options.except(:recursive), represent_with: represent_with
130
134
  }
131
135
 
132
- model.with_lock do
136
+ model.transaction do
137
+ model.reload lock: true
138
+
133
139
  if model.restore(recursive: recursive)
134
140
  model.send :clear_association_cache
135
141
  yield model if block_given?
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Api
3
- VERSION = '9.1.0'
3
+ VERSION = '9.2.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.1.0
4
+ version: 9.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dante Soares
@@ -9,146 +9,134 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-11-08 00:00:00.000000000 Z
12
+ date: 2020-09-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ">="
19
- - !ruby/object:Gem::Version
20
- version: '3.1'
21
- - - "<"
18
+ - - "~>"
22
19
  - !ruby/object:Gem::Version
23
- version: '6.0'
20
+ version: '5.2'
24
21
  type: :runtime
25
22
  prerelease: false
26
23
  version_requirements: !ruby/object:Gem::Requirement
27
24
  requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- version: '3.1'
31
- - - "<"
25
+ - - "~>"
32
26
  - !ruby/object:Gem::Version
33
- version: '6.0'
27
+ version: '5.2'
34
28
  - !ruby/object:Gem::Dependency
35
29
  name: representable
36
30
  requirement: !ruby/object:Gem::Requirement
37
31
  requirements:
38
32
  - - ">="
39
33
  - !ruby/object:Gem::Version
40
- version: '2.4'
41
- - - "<"
42
- - !ruby/object:Gem::Version
43
- version: '4.0'
34
+ version: '0'
44
35
  type: :runtime
45
36
  prerelease: false
46
37
  version_requirements: !ruby/object:Gem::Requirement
47
38
  requirements:
48
39
  - - ">="
49
40
  - !ruby/object:Gem::Version
50
- version: '2.4'
51
- - - "<"
52
- - !ruby/object:Gem::Version
53
- version: '4.0'
41
+ version: '0'
54
42
  - !ruby/object:Gem::Dependency
55
43
  name: roar
56
44
  requirement: !ruby/object:Gem::Requirement
57
45
  requirements:
58
46
  - - ">="
59
47
  - !ruby/object:Gem::Version
60
- version: '1.0'
48
+ version: '0'
61
49
  type: :runtime
62
50
  prerelease: false
63
51
  version_requirements: !ruby/object:Gem::Requirement
64
52
  requirements:
65
53
  - - ">="
66
54
  - !ruby/object:Gem::Version
67
- version: '1.0'
55
+ version: '0'
68
56
  - !ruby/object:Gem::Dependency
69
57
  name: roar-rails
70
58
  requirement: !ruby/object:Gem::Requirement
71
59
  requirements:
72
60
  - - ">="
73
61
  - !ruby/object:Gem::Version
74
- version: '1.0'
62
+ version: '0'
75
63
  type: :runtime
76
64
  prerelease: false
77
65
  version_requirements: !ruby/object:Gem::Requirement
78
66
  requirements:
79
67
  - - ">="
80
68
  - !ruby/object:Gem::Version
81
- version: '1.0'
69
+ version: '0'
82
70
  - !ruby/object:Gem::Dependency
83
71
  name: uber
84
72
  requirement: !ruby/object:Gem::Requirement
85
73
  requirements:
86
- - - "<"
74
+ - - ">="
87
75
  - !ruby/object:Gem::Version
88
- version: 0.1.0
76
+ version: '0'
89
77
  type: :runtime
90
78
  prerelease: false
91
79
  version_requirements: !ruby/object:Gem::Requirement
92
80
  requirements:
93
- - - "<"
81
+ - - ">="
94
82
  - !ruby/object:Gem::Version
95
- version: 0.1.0
83
+ version: '0'
96
84
  - !ruby/object:Gem::Dependency
97
85
  name: doorkeeper
98
86
  requirement: !ruby/object:Gem::Requirement
99
87
  requirements:
100
88
  - - ">="
101
89
  - !ruby/object:Gem::Version
102
- version: '2.0'
90
+ version: '0'
103
91
  type: :runtime
104
92
  prerelease: false
105
93
  version_requirements: !ruby/object:Gem::Requirement
106
94
  requirements:
107
95
  - - ">="
108
96
  - !ruby/object:Gem::Version
109
- version: '2.0'
97
+ version: '0'
110
98
  - !ruby/object:Gem::Dependency
111
99
  name: exception_notification
112
100
  requirement: !ruby/object:Gem::Requirement
113
101
  requirements:
114
102
  - - ">="
115
103
  - !ruby/object:Gem::Version
116
- version: '4.0'
104
+ version: '0'
117
105
  type: :runtime
118
106
  prerelease: false
119
107
  version_requirements: !ruby/object:Gem::Requirement
120
108
  requirements:
121
109
  - - ">="
122
110
  - !ruby/object:Gem::Version
123
- version: '4.0'
111
+ version: '0'
124
112
  - !ruby/object:Gem::Dependency
125
113
  name: openstax_utilities
126
114
  requirement: !ruby/object:Gem::Requirement
127
115
  requirements:
128
116
  - - ">="
129
117
  - !ruby/object:Gem::Version
130
- version: 4.2.0
118
+ version: '0'
131
119
  type: :runtime
132
120
  prerelease: false
133
121
  version_requirements: !ruby/object:Gem::Requirement
134
122
  requirements:
135
123
  - - ">="
136
124
  - !ruby/object:Gem::Version
137
- version: 4.2.0
125
+ version: '0'
138
126
  - !ruby/object:Gem::Dependency
139
127
  name: lev
140
128
  requirement: !ruby/object:Gem::Requirement
141
129
  requirements:
142
130
  - - ">="
143
131
  - !ruby/object:Gem::Version
144
- version: 1.0.0
132
+ version: '0'
145
133
  type: :runtime
146
134
  prerelease: false
147
135
  version_requirements: !ruby/object:Gem::Requirement
148
136
  requirements:
149
137
  - - ">="
150
138
  - !ruby/object:Gem::Version
151
- version: 1.0.0
139
+ version: '0'
152
140
  - !ruby/object:Gem::Dependency
153
141
  name: responders
154
142
  requirement: !ruby/object:Gem::Requirement
@@ -167,16 +155,16 @@ dependencies:
167
155
  name: sprockets
168
156
  requirement: !ruby/object:Gem::Requirement
169
157
  requirements:
170
- - - "<"
158
+ - - ">="
171
159
  - !ruby/object:Gem::Version
172
- version: '4.0'
160
+ version: '0'
173
161
  type: :development
174
162
  prerelease: false
175
163
  version_requirements: !ruby/object:Gem::Requirement
176
164
  requirements:
177
- - - "<"
165
+ - - ">="
178
166
  - !ruby/object:Gem::Version
179
- version: '4.0'
167
+ version: '0'
180
168
  - !ruby/object:Gem::Dependency
181
169
  name: sqlite3
182
170
  requirement: !ruby/object:Gem::Requirement
@@ -294,7 +282,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
294
282
  - !ruby/object:Gem::Version
295
283
  version: '0'
296
284
  requirements: []
297
- rubygems_version: 3.0.3
285
+ rubygems_version: 3.1.4
298
286
  signing_key:
299
287
  specification_version: 4
300
288
  summary: API utilities for OpenStax products and tools.