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 CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.3.2 2011-08-24
2
+
3
+ * 1 minor enhancement:
4
+ * [bugfix][web_handler] bugfix for html_parser.
5
+
1
6
  == 0.3.1 2011-08-24
2
7
 
3
8
  * 1 minor enhancement:
@@ -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)
@@ -2,7 +2,7 @@ class Timelog4r
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timelog4r
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 1
10
- version: 0.3.1
9
+ - 2
10
+ version: 0.3.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - saronpasu