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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/mindwords.rb +4 -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: 1513378395921df0332fa183e9f1bbbb4de0effebaa125ac9cbdaaf5c2043a53
|
4
|
+
data.tar.gz: 0fdbe75ed727876a2ba3e62c4d67cf9f21bcd64b61cb252cb795b5ae260d0859
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 +
|
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(/
|
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
metadata.gz.sig
CHANGED
Binary file
|