mindwords 0.6.0 → 0.6.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: aa290828ca8b921917460e6f8958c8b21d461c269a060e63c6079f57090d7d3e
4
- data.tar.gz: e719d8986ece5f93bc994682a02b8f9826f1b5554349b40402d2a699920ba40b
3
+ metadata.gz: 1513378395921df0332fa183e9f1bbbb4de0effebaa125ac9cbdaaf5c2043a53
4
+ data.tar.gz: 0fdbe75ed727876a2ba3e62c4d67cf9f21bcd64b61cb252cb795b5ae260d0859
5
5
  SHA512:
6
- metadata.gz: 407b282223460ffb5585e15c5acaa1b377cefb17350b7626680cafd6d4f742a2ab1a0b19223385f74ca332f2830f5cc618e22fff93d6a704a0a3921b18dfb65c
7
- data.tar.gz: 1f4c83f14c4e5c2ad51925445edb600a9e60a14482f7b4e057703b8ea980d8e631d5c901ebe49b034db3ce73e7ce0515ef936214e18ba138a93b0aee472f1b93
6
+ metadata.gz: 85b57f0e300b6859f4c98a2263920eb5a65014c74711e021f1c52144d6c32c224df4691d8bef4b90b9a69e7f6a95d67e043ccc1100255ac96c6dfe746a592adb
7
+ data.tar.gz: dd2ea283e94912e221dfcc463c1f5270ad751b0e7fc968abb6bb19b7dedfe91d29b93fbe3312c96d3726b6d3067b5a7a4d73ee469bf74fc0311423668755edef
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/mindwords.rb CHANGED
@@ -46,7 +46,7 @@ class MindWords
46
46
 
47
47
  words.each do |word|
48
48
 
49
- linex = (word + ' ' + raw_hashtags)
49
+ linex = (word + raw_hashtags)
50
50
  r << (hashtags.include?(word) ? linex.sub!(/\b#{word}\b/, '_\0') \
51
51
  : linex)
52
52
  end
@@ -282,12 +282,12 @@ class MindWords
282
282
 
283
283
  @lines.each do |line|
284
284
 
285
- title, rawtags = line.split(/ (?=#)/,2)
285
+ title, rawtags = line.split(/(?= #)/,2)
286
286
 
287
287
  rawtags.scan(/#(\w+)/).flatten(1).each do |rawtag|
288
288
  tag = rawtag.gsub(/ +/, '_')
289
289
  h[tag] ||= []
290
- h[tag] << title
290
+ h[tag] << title.strip
291
291
  end
292
292
 
293
293
  end
@@ -350,6 +350,7 @@ class MindWords
350
350
  e.attributes[:id] = e.attributes[:id].sub(/^_/,'') if e.attributes[:id]
351
351
  e.attributes[:title] = e.attributes[:title].sub(/^_/,'') if e.attributes[:title]
352
352
  e.value = e.value.sub(/^_/,'')
353
+ e.name = e.name.sub(/^_/,'')
353
354
 
354
355
  end
355
356
 
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.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file