validate_url 0.1.3 → 0.1.4

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.markdown CHANGED
@@ -1,23 +1,17 @@
1
1
  # ValidateUrl
2
2
 
3
- This gem adds the capability of validating URLs to ActiveRecord (Rails 2) and ActiveModel (Rails 3).
3
+ This gem adds the capability of validating URLs to ActiveRecord and ActiveModel (Rails 3).
4
4
 
5
5
  ### Installation
6
- # add this to your Gemfile (Rails 3)
6
+ # add this to your Gemfile
7
7
  gem "validate_url"
8
8
 
9
- # add this to environment.rb
10
- config.gem "validate_url"
11
-
12
- # and then run
13
- rake gems:install
14
-
15
- # or just run
9
+ # and run
16
10
  sudo gem install validate_url
17
11
 
18
12
  ### Usage
19
13
 
20
- #### With ActiveRecord in Rails 3
14
+ #### With ActiveRecord
21
15
  class Pony < ActiveRecord::Base
22
16
  # standard validation
23
17
  validates :homepage, :url => true
@@ -29,11 +23,6 @@ This gem adds the capability of validating URLs to ActiveRecord (Rails 2) and Ac
29
23
  validates :homepage, :url => {:allow_blank => true}
30
24
  end
31
25
 
32
- #### With ActiveRecord in Rails 2
33
- class Pony < ActiveRecord::Base
34
- validates_url :homepage, :allow_blank => true
35
- end
36
-
37
26
  #### With ActiveModel
38
27
  class Unicorn
39
28
  include ActiveModel::Validations
File without changes
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 3
9
- version: 0.1.3
8
+ - 4
9
+ version: 0.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tanel Suurhans
@@ -73,9 +73,9 @@ extra_rdoc_files:
73
73
  - README.markdown
74
74
  files:
75
75
  - README.markdown
76
+ - init.rb
76
77
  - install.rb
77
78
  - lib/validates_url.rb
78
- - rails/init.rb
79
79
  - spec/validates_url_spec.rb
80
80
  - spec/resources/user_with_blank.rb
81
81
  - spec/resources/user_with_nil.rb