Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Change to a Rails 4 ActiveModel validator. #11

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

== Description

Extension to ActiveRecord::Base for validating hostnames and domain names.
Validate hostnames and domain names in Rails.


== Features
Expand All @@ -16,6 +16,8 @@ Extension to ActiveRecord::Base for validating hostnames and domain names.

== Installation

Requires Rails 4 or newer.

As plugin (from master)

rails plugin install git://github.com/KimNorgaard/validates_hostname.git
Expand Down
8 changes: 2 additions & 6 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,16 @@ spec = Gem::Specification.new do |s|
s.version = GEM_VERSION
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Kim Nørgaard"]
s.description = 'Extension to ActiveRecord::Base for validating hostnames'
s.description = 'Extension to validate hostnames in Rails'
s.summary = 'Checks for valid hostnames'
s.email = '[email protected]'
s.extra_rdoc_files = ["README.rdoc", "CHANGELOG.rdoc", "MIT-LICENSE"]
s.files = ["validates_hostname.gemspec", "MIT-LICENSE", "CHANGELOG.rdoc", "README.rdoc", "Rakefile", "lib/validates_hostname", "lib/validates_hostname/version.rb", "lib/validates_hostname.rb"]
s.homepage = %q{https://github.com/KimNorgaard/validates_hostname}
s.licenses = 'MIT'
s.require_paths = ["lib"]
s.add_runtime_dependency 'activerecord', '>= 3.0'
s.add_runtime_dependency 'activesupport', '>= 3.0'
s.add_runtime_dependency 'activemodel', '>= 4.0'
s.add_development_dependency 'rspec', '~> 3.0'
s.add_development_dependency 'rspec-rails'
s.add_development_dependency 'rails'
s.add_development_dependency 'sqlite3'
s.add_development_dependency 'pry-byebug'
s.add_development_dependency 'rspec-collection_matchers'
end
Expand Down
Loading