openstax_utilities 4.2.1 → 4.2.2

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: 4772e799075a8e6e6fb5d6b670be36448369e87e
4
- data.tar.gz: e7fd112367bbfec2cc3047963c71289a980deb78
3
+ metadata.gz: f9fb92dac4bdf0b0af70e27c154b2f8158c173cf
4
+ data.tar.gz: 07c66d517d316ea5a0154d1846386e9d68a29cae
5
5
  SHA512:
6
- metadata.gz: 364297c1c70a6218b52ca4eac44e8917bbb97cea1981a55c54fa174488cf831b34fc2a418e5dae66c01e9ccacf9939d7e01042aefbbc80b6cb1116e3588569d2
7
- data.tar.gz: af1ec77a057b82d86586e644fae8546bab74fcccc92f00810a35c692880ebd3e73c876e3f62d50f481b14cf049c207c166a2a503ab89418f23a8e6224f84d723
6
+ metadata.gz: f00a13e0bc2210279982fe08aab75cd52ffe13e1644493ac023bfc06077bc2509c0ae54888d11037224fcf957d6f57e40bec50e3bbc87c517379bbb1d88a1bd0
7
+ data.tar.gz: d4e17b3a92029e87b64b5e60baa4227c19b0cc7e599f75c975e5113320a6725e9f562e8f5dcbaa899ea5eef3f829dfd78f8fb6a6904eea45307942542fb4beec
@@ -24,7 +24,8 @@ module OpenStax
24
24
  end
25
25
 
26
26
  def self.require_action_allowed!(action, requestor, resource)
27
- raise SecurityTransgression unless action_allowed?(action, requestor, resource)
27
+ msg = "\"#{requestor.inspect}\" is not allowed to perform \"#{action}\" on \"#{resource.inspect}\""
28
+ raise(SecurityTransgression, msg) unless action_allowed?(action, requestor, resource)
28
29
  end
29
30
 
30
31
  def self.action_allowed?(action, requestor, resource)
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Utilities
3
- VERSION = "4.2.1"
3
+ VERSION = "4.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstax_utilities
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.1
4
+ version: 4.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Slavinsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-26 00:00:00.000000000 Z
11
+ date: 2015-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails