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 +4 -0
- data/README.rdoc +8 -7
- data/example.rb +1 -1
- data/lib/dansguardian.rb +1 -1
- metadata +2 -2
data/Changelog
CHANGED
data/README.rdoc
CHANGED
@@ -21,13 +21,14 @@ the same author.
|
|
21
21
|
|
22
22
|
dgconf.filtergroup(1, :cached => true)
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
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)
|
data/lib/dansguardian.rb
CHANGED