mindwords 0.5.4 → 0.5.5

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: 14ea1cb6b906664113ef2137b3cad143b365d37c9eb0612df38a0b9e2cfdfeac
4
- data.tar.gz: 8d4a298c78f32c500a941699791b1f6b952075c15b67fb088392c8860fb01fa7
3
+ metadata.gz: 3dce3985e118c20bf9564d5d5d80b471cfb1422387d02a9b2faedaa29ee6b847
4
+ data.tar.gz: c74d01bae140212eb3e3d8f6a65fed89a1fde92920fd4924f4f32b15cc8fd901
5
5
  SHA512:
6
- metadata.gz: 87afa7b5bd0b7f2cf225177259df456021e90155f57d40712042b13a37105bf879fcea494ce0b05f2b53911717dbf3cebaf6a6b9cfff6d7f3fb1056b6d59e945
7
- data.tar.gz: a1c42b7e6b6de6c12e25b0de57d0ca980b8f9cc6ec1cefd71e1851f4426795285106802e6ae22c9f95539573f72abaf8b1f0432ce9b706cac86962725b73dbc7
6
+ metadata.gz: 7867fb1ac1224ec7d5f4515b450182d01344fe95cd4002409fe45eeb59a6cedaa7ba07074c1f22030d332fe3a09e4290c1aa0243e5033575898b098328aa160c
7
+ data.tar.gz: 0c10f58552946d28c0a81fca5e1ce078575ec8c7402e2b64bc8c56e1b24c0979053356898af377f036d7bdabfd9e4957bc87e970eded50a7ee3d94703ab75b88
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -129,11 +129,7 @@ class MindWords
129
129
  @lines = tag_sort().lines
130
130
  self
131
131
  end
132
-
133
- def to_h()
134
- @h
135
- end
136
-
132
+
137
133
  def to_hashtags()
138
134
  @hashtags
139
135
  end
@@ -155,11 +151,24 @@ class MindWords
155
151
 
156
152
  header + body
157
153
 
158
- end
154
+ end
159
155
 
160
156
  def to_words()
161
- to_outline.lines.map {|x| x[/\w[\w ]+/] }.uniq
162
- end
157
+
158
+ h = {}
159
+
160
+ Rexle.new(to_xml).root.each_recursive do |e|
161
+
162
+ h[e.attributes[:title]] = {
163
+ breadcrumb: e.attributes[:breadcrumb],
164
+ hashtags: e.attributes[:hashtags]
165
+ }
166
+
167
+ end
168
+
169
+ h
170
+
171
+ end
163
172
 
164
173
  def to_xml()
165
174
  build() unless @xml
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.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,7 +35,7 @@ cert_chain:
35
35
  aWH7D2AmhOpqNwWnPHzWR/yzpigAVTrvpHfRxZleQj6Z/090nIH2KR0RdioMmPFq
36
36
  3+574KQzs/gR9Y5a+iMcvHRN
37
37
  -----END CERTIFICATE-----
38
- date: 2021-01-29 00:00:00.000000000 Z
38
+ date: 2021-01-31 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: line-tree
metadata.gz.sig CHANGED
Binary file