fu-fu 0.1.0

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.
@@ -0,0 +1,5 @@
1
+ ActiveRecord::Schema.define(:version => 0) do
2
+ create_table :posts, :force => true do |t|
3
+ t.string :title, :body
4
+ end
5
+ end
@@ -0,0 +1,22 @@
1
+ require 'test/unit'
2
+ require 'yaml'
3
+
4
+ begin
5
+ require File.dirname(__FILE__) + '/../../../../config/environment'
6
+ rescue LoadError
7
+ require 'rubygems'
8
+ gem 'activerecord'
9
+ gem 'actionpack'
10
+ require 'active_record'
11
+ require 'action_controller'
12
+ end
13
+
14
+ require File.dirname(__FILE__) + '/../lib/fu-fu/profanity_filter'
15
+
16
+ ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + '/debug.log')
17
+ ActiveRecord::Base.configurations = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
18
+ ActiveRecord::Base.establish_connection('test')
19
+ load(File.dirname(__FILE__) + "/schema.rb")
20
+
21
+ ActiveRecord::Base.send(:include, ProfanityFilter)
22
+
metadata ADDED
@@ -0,0 +1,114 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fu-fu
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - Adam Bair
14
+ - Stefano B.
15
+ autorequire:
16
+ bindir: bin
17
+ cert_chain: []
18
+
19
+ date: 2011-01-09 00:00:00 -05:00
20
+ default_executable:
21
+ dependencies: []
22
+
23
+ description: "Fu-fu: The Profanity Filter for Rails."
24
+ email:
25
+ - stefano@challengepost.com
26
+ executables: []
27
+
28
+ extensions: []
29
+
30
+ extra_rdoc_files: []
31
+
32
+ files:
33
+ - .gitignore
34
+ - Gemfile
35
+ - Gemfile.lock
36
+ - MIT-LICENSE
37
+ - README.rdoc
38
+ - Rakefile
39
+ - fu-fu.gemspec
40
+ - lib/fu-fu.rb
41
+ - lib/fu-fu/config/dictionary.yml
42
+ - lib/fu-fu/profanity_filter.rb
43
+ - lib/fu-fu/version.rb
44
+ - test/benchmark/dictionary_test_100.yml
45
+ - test/benchmark/dictionary_test_1000.yml
46
+ - test/benchmark/dictionary_test_100000.yml
47
+ - test/benchmark/dictionary_test_25000.yml
48
+ - test/benchmark/dictionary_test_5000.yml
49
+ - test/benchmark/dictionary_test_50000.yml
50
+ - test/benchmark/fu-fu_benchmark.rb
51
+ - test/benchmark/last_run.txt
52
+ - test/benchmark/text_test_100.txt
53
+ - test/benchmark/text_test_1000.txt
54
+ - test/benchmark/text_test_10000.txt
55
+ - test/benchmark/text_test_5000.txt
56
+ - test/benign_filter_test.rb
57
+ - test/database.yml
58
+ - test/destructive_filter_test.rb
59
+ - test/profanity_filter_test.rb
60
+ - test/schema.rb
61
+ - test/test_harness.rb
62
+ has_rdoc: true
63
+ homepage: https://github.com/adambair/fu-fu
64
+ licenses: []
65
+
66
+ post_install_message:
67
+ rdoc_options: []
68
+
69
+ require_paths:
70
+ - lib
71
+ required_ruby_version: !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ hash: 3
77
+ segments:
78
+ - 0
79
+ version: "0"
80
+ required_rubygems_version: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ hash: 3
86
+ segments:
87
+ - 0
88
+ version: "0"
89
+ requirements: []
90
+
91
+ rubyforge_project: fu-fu
92
+ rubygems_version: 1.3.7
93
+ signing_key:
94
+ specification_version: 3
95
+ summary: Gem version of Adam Bair's profanity filter plugin'
96
+ test_files:
97
+ - test/benchmark/dictionary_test_100.yml
98
+ - test/benchmark/dictionary_test_1000.yml
99
+ - test/benchmark/dictionary_test_100000.yml
100
+ - test/benchmark/dictionary_test_25000.yml
101
+ - test/benchmark/dictionary_test_5000.yml
102
+ - test/benchmark/dictionary_test_50000.yml
103
+ - test/benchmark/fu-fu_benchmark.rb
104
+ - test/benchmark/last_run.txt
105
+ - test/benchmark/text_test_100.txt
106
+ - test/benchmark/text_test_1000.txt
107
+ - test/benchmark/text_test_10000.txt
108
+ - test/benchmark/text_test_5000.txt
109
+ - test/benign_filter_test.rb
110
+ - test/database.yml
111
+ - test/destructive_filter_test.rb
112
+ - test/profanity_filter_test.rb
113
+ - test/schema.rb
114
+ - test/test_harness.rb