dansguardian 0.2.1 → 0.2.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/Changelog CHANGED
@@ -1,6 +1,14 @@
1
+ 0.2.2 (2011-02-16)
2
+
3
+ * force binary encoding when reading lists (be charset-agnostic)
4
+
5
+ 0.2.1 (2011-02-15)
6
+
7
+ * fix gemspec
8
+
1
9
  0.2.0 (2011-02-15)
2
10
 
3
- * manage lists
11
+ * read lists
4
12
 
5
13
  0.1.0
6
14
 
@@ -5,7 +5,7 @@ autoload :Set, 'set'
5
5
  require 'configfiles'
6
6
 
7
7
  module DansGuardian
8
- VERSION = '0.2.1'
8
+ VERSION = '0.2.2'
9
9
 
10
10
  autoload :Config, 'dansguardian/config'
11
11
  autoload :Parser, 'dansguardian/parser'
@@ -25,6 +25,7 @@ module DansGuardian
25
25
  def read!
26
26
  File.foreach(@init[:file]) do |line|
27
27
  line.strip!
28
+ line.force_encoding Encoding::BINARY
28
29
  # Special comment used to "categorize" DG message pages
29
30
  if line =~ /^#listcategory:\s*"(.*)"/
30
31
  @listcategory = $1
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Guido De Rosa
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-02-15 00:00:00 +00:00
17
+ date: 2011-02-16 00:00:00 +00:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency