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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed18a23199f07f7f8edee98bed58cb496e694a48
|
4
|
+
data.tar.gz: 0eec1854fad5452d7dabfb2f3d4d300669489475
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63ca2f1fe8b015b0ca50ef92dcbf1efd4a846ca01b639b0e1b457134908e7ceae619438280e8dfc02bf6843a0ff15434c41612cd2efba1045e000b82d86a2b5d
|
7
|
+
data.tar.gz: 77e8817b5e830a77c475c8f0f0fa9afd4892e652ecff01aac6c1d128b6604e59adf64fdb6e6a2838b4a07ac6e6a2fbffbf8fb36ac190b511e1c50e820c4658cc
|
@@ -53,8 +53,13 @@ module OpenStax
|
|
53
53
|
|
54
54
|
# Scoping
|
55
55
|
|
56
|
-
|
57
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2015-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|