timelog4r 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +5 -0
- data/lib/timelog4r/html_parser.rb +6 -4
- data/lib/timelog4r/version.rb +1 -1
- metadata +3 -3
data/History.txt
CHANGED
|
@@ -157,8 +157,10 @@ class Timelog4r
|
|
|
157
157
|
# reject group name.
|
|
158
158
|
group_name_pattern = Regexp.new(
|
|
159
159
|
result[:in_group][:name].gsub(
|
|
160
|
-
/
|
|
161
|
-
)
|
|
160
|
+
/[\(\[\{\/\.\|\}\)\]]/
|
|
161
|
+
) {
|
|
162
|
+
"\\"+$&
|
|
163
|
+
}
|
|
162
164
|
)
|
|
163
165
|
result[:memo_text].sub!(group_name_pattern, '')
|
|
164
166
|
|
|
@@ -226,11 +228,11 @@ class Timelog4r
|
|
|
226
228
|
entry_element = 'div#list_1/li'
|
|
227
229
|
permalink_element = 'span[@class="time"]/a[3]'
|
|
228
230
|
|
|
229
|
-
result =
|
|
231
|
+
result = {
|
|
230
232
|
:title => document.at('title').inner_text,
|
|
231
233
|
:link => URI.parse(document.link.href),
|
|
232
234
|
:modified => Time.now
|
|
233
|
-
|
|
235
|
+
}
|
|
234
236
|
|
|
235
237
|
begin
|
|
236
238
|
timeline = document.search(timeline_element)
|
data/lib/timelog4r/version.rb
CHANGED
metadata
CHANGED