text_sanitizer 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +90 -0
  3. data/Rakefile +38 -0
  4. data/lib/tasks/text_sanitizer_tasks.rake +4 -0
  5. data/lib/text_sanitizer/text_sanitizer.rb +75 -0
  6. data/lib/text_sanitizer/version.rb +3 -0
  7. data/lib/text_sanitizer.rb +4 -0
  8. data/test/dummy/README.rdoc +261 -0
  9. data/test/dummy/Rakefile +7 -0
  10. data/test/dummy/app/assets/javascripts/application.js +15 -0
  11. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  12. data/test/dummy/app/controllers/application_controller.rb +3 -0
  13. data/test/dummy/app/helpers/application_helper.rb +2 -0
  14. data/test/dummy/app/models/post.rb +6 -0
  15. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  16. data/test/dummy/config/application.rb +59 -0
  17. data/test/dummy/config/boot.rb +10 -0
  18. data/test/dummy/config/database.yml +25 -0
  19. data/test/dummy/config/environment.rb +5 -0
  20. data/test/dummy/config/environments/development.rb +37 -0
  21. data/test/dummy/config/environments/production.rb +67 -0
  22. data/test/dummy/config/environments/test.rb +37 -0
  23. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  24. data/test/dummy/config/initializers/inflections.rb +15 -0
  25. data/test/dummy/config/initializers/mime_types.rb +5 -0
  26. data/test/dummy/config/initializers/secret_token.rb +7 -0
  27. data/test/dummy/config/initializers/session_store.rb +8 -0
  28. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  29. data/test/dummy/config/locales/en.yml +5 -0
  30. data/test/dummy/config/routes.rb +58 -0
  31. data/test/dummy/config.ru +4 -0
  32. data/test/dummy/db/development.sqlite3 +0 -0
  33. data/test/dummy/db/migrate/20120622103727_create_posts.rb +11 -0
  34. data/test/dummy/db/migrate/20120622105359_add_name_to_posts.rb +5 -0
  35. data/test/dummy/db/schema.rb +25 -0
  36. data/test/dummy/db/test.sqlite3 +0 -0
  37. data/test/dummy/log/development.log +47 -0
  38. data/test/dummy/log/test.log +385 -0
  39. data/test/dummy/public/404.html +26 -0
  40. data/test/dummy/public/422.html +26 -0
  41. data/test/dummy/public/500.html +25 -0
  42. data/test/dummy/public/favicon.ico +0 -0
  43. data/test/dummy/script/rails +6 -0
  44. data/test/dummy/test/fixtures/posts.yml +11 -0
  45. data/test/dummy/test/unit/post_test.rb +7 -0
  46. data/test/test_helper.rb +15 -0
  47. data/test/text_sanitizer_test.rb +37 -0
  48. metadata +182 -0
metadata ADDED
@@ -0,0 +1,182 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: text_sanitizer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Benjamin Larralde
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-06-22 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 3.0.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 3.0.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: sanitize
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: sqlite3
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ description: Defines multiple helpers that operate various textual operations like
63
+ downcase, capitalize or sanitize (strip dangerous content) from string/text attributes
64
+ in ActiveRecord models at validation (or any other callback).
65
+ email:
66
+ - benjamin.larralde@gmail.com
67
+ executables: []
68
+ extensions: []
69
+ extra_rdoc_files: []
70
+ files:
71
+ - lib/tasks/text_sanitizer_tasks.rake
72
+ - lib/text_sanitizer/text_sanitizer.rb
73
+ - lib/text_sanitizer/version.rb
74
+ - lib/text_sanitizer.rb
75
+ - MIT-LICENSE
76
+ - Rakefile
77
+ - README.md
78
+ - test/dummy/app/assets/javascripts/application.js
79
+ - test/dummy/app/assets/stylesheets/application.css
80
+ - test/dummy/app/controllers/application_controller.rb
81
+ - test/dummy/app/helpers/application_helper.rb
82
+ - test/dummy/app/models/post.rb
83
+ - test/dummy/app/views/layouts/application.html.erb
84
+ - test/dummy/config/application.rb
85
+ - test/dummy/config/boot.rb
86
+ - test/dummy/config/database.yml
87
+ - test/dummy/config/environment.rb
88
+ - test/dummy/config/environments/development.rb
89
+ - test/dummy/config/environments/production.rb
90
+ - test/dummy/config/environments/test.rb
91
+ - test/dummy/config/initializers/backtrace_silencers.rb
92
+ - test/dummy/config/initializers/inflections.rb
93
+ - test/dummy/config/initializers/mime_types.rb
94
+ - test/dummy/config/initializers/secret_token.rb
95
+ - test/dummy/config/initializers/session_store.rb
96
+ - test/dummy/config/initializers/wrap_parameters.rb
97
+ - test/dummy/config/locales/en.yml
98
+ - test/dummy/config/routes.rb
99
+ - test/dummy/config.ru
100
+ - test/dummy/db/development.sqlite3
101
+ - test/dummy/db/migrate/20120622103727_create_posts.rb
102
+ - test/dummy/db/migrate/20120622105359_add_name_to_posts.rb
103
+ - test/dummy/db/schema.rb
104
+ - test/dummy/db/test.sqlite3
105
+ - test/dummy/log/development.log
106
+ - test/dummy/log/test.log
107
+ - test/dummy/public/404.html
108
+ - test/dummy/public/422.html
109
+ - test/dummy/public/500.html
110
+ - test/dummy/public/favicon.ico
111
+ - test/dummy/Rakefile
112
+ - test/dummy/README.rdoc
113
+ - test/dummy/script/rails
114
+ - test/dummy/test/fixtures/posts.yml
115
+ - test/dummy/test/unit/post_test.rb
116
+ - test/test_helper.rb
117
+ - test/text_sanitizer_test.rb
118
+ homepage: https://github.com/blarralde/text_sanitizer
119
+ licenses: []
120
+ post_install_message:
121
+ rdoc_options: []
122
+ require_paths:
123
+ - lib
124
+ required_ruby_version: !ruby/object:Gem::Requirement
125
+ none: false
126
+ requirements:
127
+ - - ! '>='
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
130
+ required_rubygems_version: !ruby/object:Gem::Requirement
131
+ none: false
132
+ requirements:
133
+ - - ! '>='
134
+ - !ruby/object:Gem::Version
135
+ version: '0'
136
+ requirements: []
137
+ rubyforge_project:
138
+ rubygems_version: 1.8.23
139
+ signing_key:
140
+ specification_version: 3
141
+ summary: Cleans text fields in ActiveRecord.
142
+ test_files:
143
+ - test/dummy/app/assets/javascripts/application.js
144
+ - test/dummy/app/assets/stylesheets/application.css
145
+ - test/dummy/app/controllers/application_controller.rb
146
+ - test/dummy/app/helpers/application_helper.rb
147
+ - test/dummy/app/models/post.rb
148
+ - test/dummy/app/views/layouts/application.html.erb
149
+ - test/dummy/config/application.rb
150
+ - test/dummy/config/boot.rb
151
+ - test/dummy/config/database.yml
152
+ - test/dummy/config/environment.rb
153
+ - test/dummy/config/environments/development.rb
154
+ - test/dummy/config/environments/production.rb
155
+ - test/dummy/config/environments/test.rb
156
+ - test/dummy/config/initializers/backtrace_silencers.rb
157
+ - test/dummy/config/initializers/inflections.rb
158
+ - test/dummy/config/initializers/mime_types.rb
159
+ - test/dummy/config/initializers/secret_token.rb
160
+ - test/dummy/config/initializers/session_store.rb
161
+ - test/dummy/config/initializers/wrap_parameters.rb
162
+ - test/dummy/config/locales/en.yml
163
+ - test/dummy/config/routes.rb
164
+ - test/dummy/config.ru
165
+ - test/dummy/db/development.sqlite3
166
+ - test/dummy/db/migrate/20120622103727_create_posts.rb
167
+ - test/dummy/db/migrate/20120622105359_add_name_to_posts.rb
168
+ - test/dummy/db/schema.rb
169
+ - test/dummy/db/test.sqlite3
170
+ - test/dummy/log/development.log
171
+ - test/dummy/log/test.log
172
+ - test/dummy/public/404.html
173
+ - test/dummy/public/422.html
174
+ - test/dummy/public/500.html
175
+ - test/dummy/public/favicon.ico
176
+ - test/dummy/Rakefile
177
+ - test/dummy/README.rdoc
178
+ - test/dummy/script/rails
179
+ - test/dummy/test/fixtures/posts.yml
180
+ - test/dummy/test/unit/post_test.rb
181
+ - test/test_helper.rb
182
+ - test/text_sanitizer_test.rb