dansguardian 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog CHANGED
@@ -1,3 +1,7 @@
1
+ 0.2.3 (2011-02-16)
2
+
3
+ * slight doc fixes
4
+
1
5
  0.2.2 (2011-02-16)
2
6
 
3
7
  * force binary encoding when reading lists (be charset-agnostic)
@@ -21,13 +21,14 @@ the same author.
21
21
 
22
22
  dgconf.filtergroup(1, :cached => true)
23
23
 
24
- wfl = dgconf.filtergroup(1)[:weightedphraselist]
25
-
26
- p wfl
27
-
28
- pp DansGuardian::Inclusion.get(wfl)
29
-
30
- #dg.config.filtergroup(1).inclusiontree('weightedphraselist')
24
+ listfile = dgconf.filtergroup(1)[:weightedphraselist]
25
+ listobject = DansGuardian::List.new(:file => listfile)
26
+ pp listobject
27
+
28
+ listfile2 = "/etc/dansguardian/lists/phraselists/goodphrases/weighted_news"
29
+ listobject2 = DansGuardian::List.new(listfile2)
30
+ listobject2.read!
31
+ pp listobject2
31
32
 
32
33
  == License
33
34
 
data/example.rb CHANGED
@@ -20,7 +20,7 @@ dgconf = DansGuardian::Config.new(:mainfile => file)
20
20
 
21
21
  dgconf.main
22
22
 
23
- dgconf.filtergroup(1, :cached => true)
23
+ fg1 = dgconf.filtergroup(1, :cached => true)
24
24
 
25
25
  listfile = dgconf.filtergroup(1)[:weightedphraselist]
26
26
  listobject = DansGuardian::List.new(:file => listfile)
@@ -5,7 +5,7 @@ autoload :Set, 'set'
5
5
  require 'configfiles'
6
6
 
7
7
  module DansGuardian
8
- VERSION = '0.2.2'
8
+ VERSION = '0.2.3'
9
9
 
10
10
  autoload :Config, 'dansguardian/config'
11
11
  autoload :Parser, 'dansguardian/parser'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 2
9
- version: 0.2.2
8
+ - 3
9
+ version: 0.2.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Guido De Rosa