whimsy-asf 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/asf.version +1 -1
- data/lib/whimsy/asf/agenda.rb +6 -0
- data/lib/whimsy/asf/agenda/attachments.rb +4 -0
- metadata +2 -2
data/asf.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/lib/whimsy/asf/agenda.rb
CHANGED
@@ -52,6 +52,12 @@ class ASF::Board::Agenda
|
|
52
52
|
|
53
53
|
def parse(file)
|
54
54
|
@file = file
|
55
|
+
|
56
|
+
if not @file.valid_encoding?
|
57
|
+
filter = Proc.new {|c| c.unpack('U').first rescue 0xFFFD}
|
58
|
+
@file = @file.chars.map(&filter).pack('U*').force_encoding('utf-8')
|
59
|
+
end
|
60
|
+
|
55
61
|
@@parsers.each { |parser| instance_exec(&parser) }
|
56
62
|
|
57
63
|
# add index markers for major sections
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whimsy-asf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-10-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|