mindwords 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/mindwords.rb +7 -3
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4070b252c0702dbfa6cb778a8717e75e60cf5de4454f1e475f496bec0bd4328d
|
4
|
+
data.tar.gz: 52493b20e6b137e396136b58a8c9a89e45650bff9d44caa73c9a78bfa86c8174
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7576fde49c1d5fccc4ce87ae583e0648c4511a0637afbce67265bc57812ec8fe74a9237db6664e03632a11d95289ab14a08343392ead7a685a7afec2fe20a07
|
7
|
+
data.tar.gz: df0d3b1b29866892eaa111e579da3a6e906266a524954b98ef9d5665d192c665f5bf5eaec15cef1708cc39fc2499ddf48774400e449ef868cc8f5dbfe1bfde2c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/mindwords.rb
CHANGED
@@ -228,16 +228,19 @@ class MindWords
|
|
228
228
|
|
229
229
|
case x
|
230
230
|
when String
|
231
|
-
[x.gsub(/ +/,'
|
231
|
+
[x.downcase.gsub(/ +/,''), {title: x}, x]
|
232
232
|
when Hash
|
233
233
|
[
|
234
|
-
x.keys.first.gsub(/_/,' '),
|
234
|
+
x.keys.first.downcase.gsub(/_/,' '),
|
235
235
|
{title: x.keys.first},
|
236
236
|
x.keys.first,
|
237
237
|
*rexlize(x.values.first)
|
238
238
|
]
|
239
239
|
when Array
|
240
|
-
[
|
240
|
+
[
|
241
|
+
x.first.downcase.gsub(/_/,' '),
|
242
|
+
{title: x.first}, x.first, *rexlize(x.last)
|
243
|
+
]
|
241
244
|
end
|
242
245
|
end
|
243
246
|
|
@@ -303,3 +306,4 @@ class MindWords
|
|
303
306
|
end
|
304
307
|
|
305
308
|
end
|
309
|
+
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|