obscenity 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,4 +2,5 @@ language: ruby
2
2
  rvm:
3
3
  - 1.9.2
4
4
  - 1.9.3
5
+ - 2.0.0
5
6
  - rbx-19mode
data/README.md CHANGED
@@ -24,7 +24,7 @@ gem install obscenity
24
24
 
25
25
  ## Compatibility
26
26
 
27
- Obscenity is compatible with Ruby 1.9.X, Rubinius 1.9, Rails 3.X, and Rack as a middleware. Starting with Rails 3, the profanity validation works with any ORM supported by ActiveModel, e.g: ActiveRecord, MongoMapper, Mongoid, etc.
27
+ Obscenity is compatible with Ruby 1.9.X, Ruby 2.0.X, Rubinius 1.9, Rails 3.X, and Rack as a middleware. Starting with Rails 3, the profanity validation works with any ORM supported by ActiveModel, e.g: ActiveRecord, MongoMapper, Mongoid, etc.
28
28
 
29
29
  ## Using Obscenity
30
30
 
@@ -1,5 +1,7 @@
1
- RSpec::Matchers.define :be_profane do |expected|
2
- match do |actual|
3
- Obscenity.profane?(actual) == expected
1
+ if defined?(RSpec::Matchers)
2
+ RSpec::Matchers.define :be_profane do |expected|
3
+ match do |actual|
4
+ Obscenity.profane?(actual) == expected
5
+ end
4
6
  end
5
7
  end
@@ -1,5 +1,5 @@
1
1
  module Obscenity
2
2
 
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
 
5
5
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "obscenity"
8
- s.version = "1.0.1"
8
+ s.version = "1.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Thiago Jackiw"]
12
- s.date = "2012-11-22"
12
+ s.date = "2013-05-30"
13
13
  s.description = " Obscenity is a profanity filter gem for Ruby/Rubinius, Rails (through ActiveModel), and Rack middleware "
14
14
  s.email = "tjackiw@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -48,7 +48,7 @@ Gem::Specification.new do |s|
48
48
  s.homepage = "http://github.com/tjackiw/obscenity"
49
49
  s.licenses = ["MIT"]
50
50
  s.require_paths = ["lib"]
51
- s.rubygems_version = "1.8.24"
51
+ s.rubygems_version = "1.8.25"
52
52
  s.summary = "Obscenity is a profanity filter gem for Ruby/Rubinius, Rails (through ActiveModel), and Rack middleware"
53
53
  s.test_files = ["test/helper.rb", "test/static/422.html", "test/test_active_model.rb", "test/test_base.rb", "test/test_config.rb", "test/test_obscenity.rb", "test/test_rack.rb", "test/test_version.rb"]
54
54
 
@@ -3,7 +3,7 @@ require 'helper'
3
3
  class TestVersion < Test::Unit::TestCase
4
4
 
5
5
  should "return the correct product version" do
6
- assert_equal '1.0.1', Obscenity::VERSION
6
+ assert_equal '1.0.2', Obscenity::VERSION
7
7
  end
8
8
 
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: obscenity
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-22 00:00:00.000000000 Z
12
+ date: 2013-05-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shoulda
@@ -174,7 +174,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
174
174
  version: '0'
175
175
  segments:
176
176
  - 0
177
- hash: -2450424540235026340
177
+ hash: -1363471610398164170
178
178
  required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  none: false
180
180
  requirements:
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  version: '0'
184
184
  requirements: []
185
185
  rubyforge_project:
186
- rubygems_version: 1.8.24
186
+ rubygems_version: 1.8.25
187
187
  signing_key:
188
188
  specification_version: 3
189
189
  summary: Obscenity is a profanity filter gem for Ruby/Rubinius, Rails (through ActiveModel),