openstax_utilities 4.2.2 → 4.2.3

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: f9fb92dac4bdf0b0af70e27c154b2f8158c173cf
4
- data.tar.gz: 07c66d517d316ea5a0154d1846386e9d68a29cae
3
+ metadata.gz: ed18a23199f07f7f8edee98bed58cb496e694a48
4
+ data.tar.gz: 0eec1854fad5452d7dabfb2f3d4d300669489475
5
5
  SHA512:
6
- metadata.gz: f00a13e0bc2210279982fe08aab75cd52ffe13e1644493ac023bfc06077bc2509c0ae54888d11037224fcf957d6f57e40bec50e3bbc87c517379bbb1d88a1bd0
7
- data.tar.gz: d4e17b3a92029e87b64b5e60baa4227c19b0cc7e599f75c975e5113320a6725e9f562e8f5dcbaa899ea5eef3f829dfd78f8fb6a6904eea45307942542fb4beec
6
+ metadata.gz: 63ca2f1fe8b015b0ca50ef92dcbf1efd4a846ca01b639b0e1b457134908e7ceae619438280e8dfc02bf6843a0ff15434c41612cd2efba1045e000b82d86a2b5d
7
+ data.tar.gz: 77e8817b5e830a77c475c8f0f0fa9afd4892e652ecff01aac6c1d128b6604e59adf64fdb6e6a2838b4a07ac6e6a2fbffbf8fb36ac190b511e1c50e820c4658cc
@@ -53,8 +53,13 @@ module OpenStax
53
53
 
54
54
  # Scoping
55
55
 
56
- ::KeywordSearch.search(query.to_s) do |with|
57
- instance_exec(with, &search_proc)
56
+ begin
57
+ ::KeywordSearch.search(query.to_s) do |with|
58
+ instance_exec(with, &search_proc)
59
+ end
60
+ rescue KeywordSearch::ParseError
61
+ fatal_error(code: :invalid_query,
62
+ message: 'The search query string provided is invalid')
58
63
  end
59
64
 
60
65
  outputs[:items] = @items
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Utilities
3
- VERSION = "4.2.2"
3
+ VERSION = "4.2.3"
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.2
4
+ version: 4.2.3
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-07-28 00:00:00.000000000 Z
11
+ date: 2015-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails