borrow_direct 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/borrow_direct/generate_query.rb +4 -4
- data/lib/borrow_direct/version.rb +1 -1
- data/test/generate_query_test.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTdkNTczZjRiY2FlYWQ3OWJiYzkyMGNlYzg5YTg1NGMzMjhlMTBhOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWFjNzMyMjdkODIyNjY5Y2U4NDZmY2Y2MjFiODY4MDJlMGQ0N2ZkOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTNiZWNlMWVkYTA5OTIzNDA4Mzc3NDlkZDQ4MjhkYzMzZDdhNjVlZDQzM2Yz
|
10
|
+
N2YzNGYzMjFlMmZkZmM1MDI2YjE2NWE5OTllYjAwZjY2NjcwYjg1MzI0NTY0
|
11
|
+
YzcxMTQ1MDZkN2FjMWQ3YjFhODUyY2JjNGRkZGJmY2YxZGVlNjc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDM4Yjg1Y2UzNDUwNjIwMWRlOGJkMGRjM2IzNjIxODJkOTdkYTU1MGI1NWIx
|
14
|
+
OTY3NjM5YTFhYWI1NmJjMGUzODU4MDZjYjYzMTdmYjQ3YzZhMTUxM2RjYjcw
|
15
|
+
MWU4NTU1ZDEyYjRmMzMwMmE4MWMyNTQ1ZTU5NjEwMDQwODJhMjg=
|
@@ -108,10 +108,10 @@ module BorrowDirect
|
|
108
108
|
# classes don't seem to handle combining diacritics well.
|
109
109
|
#
|
110
110
|
# This crazy way does it, replace anything that matches unicode
|
111
|
-
# space (may include more than just ascii ' ') or punct class, unless
|
112
|
-
#
|
113
|
-
#
|
114
|
-
title.gsub!(/[[:space:][:punct:]&&[^\']]/, ' ')
|
111
|
+
# space (may include more than just ascii ' ') or punct class, unless
|
112
|
+
# it's an apostrophe or an ampersand, which are allowed --
|
113
|
+
# and replaces them with plain ascii space.
|
114
|
+
title.gsub!(/[[:space:][:punct:]&&[^\'\&]]/, ' ')
|
115
115
|
|
116
116
|
# compress any remaining whitespace
|
117
117
|
title.strip!
|
data/test/generate_query_test.rb
CHANGED