seamusabshere-decency_validation 1.0 → 1.1

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/README CHANGED
@@ -6,6 +6,19 @@ http://en.wikipedia.org/wiki/Seven_dirty_words
6
6
 
7
7
  It gives you String#is_decent? and a new ActiveRecord validation, validates_decency_of.
8
8
 
9
+ Installation
10
+ ============
11
+
12
+ You should be able to run this as a plugin or as a gem.
13
+
14
+ For environment.rb:
15
+
16
+ config.gem 'seamusabshere-decency_validation', :lib => 'decency_validation', :source => 'http://gems.github.com'
17
+
18
+ Then be sure to:
19
+
20
+ rake gems:install
21
+
9
22
  Example
10
23
  =======
11
24
 
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "decency_validation"
3
- s.version = "1.0"
4
- s.date = "2008-12-29"
3
+ s.version = "1.1"
4
+ s.date = "2009-01-02"
5
5
  s.summary = "Rails plugin that uses George Carlin's list of seven dirty words (aka swear words, aka cuss words) to check for decency on ActiveRecord model attributes."
6
6
  s.email = "seamus@abshere.net"
7
7
  s.homepage = "http://github.com/seamusabshere/decency_validation"
@@ -17,6 +17,8 @@ Gem::Specification.new do |s|
17
17
  "Rakefile",
18
18
  "README",
19
19
  "tasks/decency_validation_tasks.rake",
20
+ "init.rb",
21
+ "rails/init.rb"
20
22
  ]
21
23
  s.test_files = [
22
24
  "test/decency_validation_test.rb",
data/init.rb ADDED
@@ -0,0 +1,2 @@
1
+ require 'is_decent'
2
+ require 'validates_decency_of'
@@ -1,2 +1 @@
1
- require 'is_decent'
2
- require 'validates_decency_of'
1
+ require File.join(File.dirname(__FILE__), '..', 'init')
data/rails/init.rb ADDED
@@ -0,0 +1 @@
1
+ require File.join(File.dirname(__FILE__), '..', 'init')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seamusabshere-decency_validation
3
3
  version: !ruby/object:Gem::Version
4
- version: "1.0"
4
+ version: "1.1"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seamus Abshere
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-29 00:00:00 -08:00
12
+ date: 2009-01-02 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -30,6 +30,8 @@ files:
30
30
  - Rakefile
31
31
  - README
32
32
  - tasks/decency_validation_tasks.rake
33
+ - init.rb
34
+ - rails/init.rb
33
35
  has_rdoc: false
34
36
  homepage: http://github.com/seamusabshere/decency_validation
35
37
  post_install_message: