openstax_api 5.4.4 → 5.4.5

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
  SHA1:
3
- metadata.gz: 2fecdf7c6d441eaab310b688058fe56e511ee8cb
4
- data.tar.gz: 3ee525582fa7e951edae096726788e3ff63a966c
3
+ metadata.gz: 036cdab28b799619aaef3c315dc9c604668f76a1
4
+ data.tar.gz: af4643c9eed7bfbf437c71a0a5c8cc141d2eda38
5
5
  SHA512:
6
- metadata.gz: 9bf81c1c29808b01ff1fc2488242a5241b0de216e330d3d7f6ccb786679f101fa97d0a902759e7392b3e3bed601d65e1d5959206ffbab4c2ae26136cc466dc33
7
- data.tar.gz: a8cda90e34bb96246b18ee9f803f65753882aa6bc69ab4fc0e5bd121883c597af66833b2aa71630917cd7142fcd8e521c6d854debadddee973afd52588e95be0
6
+ metadata.gz: 8e137b5795a29d376c4f8a11367cd5707f102d1914d074c9dc6189cb0a4091f39a3b7889b6fa735a79136559aa3dc948f2b749692441291149ca6e7762d3c54d
7
+ data.tar.gz: d72a4c1f0997d9ec1c5a5f527e0337b2ac20367d8880d9afd5da6c7f9fcfe8806f78d5b3bd0645f1b409b3919827e826e2db7b3c367b312a109027150c5ed590
@@ -46,7 +46,7 @@ module OpenStax
46
46
  # Must be able to update the record before and after the update itself
47
47
  OSU::AccessPolicy.require_action_allowed!(:update, current_api_user, model)
48
48
 
49
- model.class.transaction do
49
+ model.with_lock do
50
50
  consume!(model, represent_with: represent_with)
51
51
  yield model if block_given?
52
52
  OSU::AccessPolicy.require_action_allowed!(:update, current_api_user, model)
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Api
3
- VERSION = "5.4.4"
3
+ VERSION = "5.4.5"
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: 5.4.4
4
+ version: 5.4.5
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: 2015-05-20 00:00:00.000000000 Z
12
+ date: 2015-06-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails