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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85426d79852d7306a24090b6c4fca89929b8004d4c084e60e2a19e6cd684d43d
4
- data.tar.gz: ae8b9179bc0d486a75c12ccc5a241e52ed58e82cd32919957925f26a68d91527
3
+ metadata.gz: 4070b252c0702dbfa6cb778a8717e75e60cf5de4454f1e475f496bec0bd4328d
4
+ data.tar.gz: 52493b20e6b137e396136b58a8c9a89e45650bff9d44caa73c9a78bfa86c8174
5
5
  SHA512:
6
- metadata.gz: bf8ef8f8031725781221f97f0779e9660f03a193354d62e5206302b2cfe54cb4296d5360d093e70b6e5835164d3e9dbcf18d486b33dcb85b084f7872db5e0280
7
- data.tar.gz: 507bf3d566e2f3d8377efe32ff559e2d8fcc832ade715bbb33aa305c7a20e0d4355da90eed7513066159aa821864e38ee5f959ddb9bb4a85ce38a2e896f94022
6
+ metadata.gz: e7576fde49c1d5fccc4ce87ae583e0648c4511a0637afbce67265bc57812ec8fe74a9237db6664e03632a11d95289ab14a08343392ead7a685a7afec2fe20a07
7
+ data.tar.gz: df0d3b1b29866892eaa111e579da3a6e906266a524954b98ef9d5665d192c665f5bf5eaec15cef1708cc39fc2499ddf48774400e449ef868cc8f5dbfe1bfde2c
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -228,16 +228,19 @@ class MindWords
228
228
 
229
229
  case x
230
230
  when String
231
- [x.gsub(/ +/,'_'), {title: x}, x]
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
- [x.first.gsub(/_/,' '), {title: x.first}, x.first, *rexlize(x.last)]
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mindwords
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file