html5_validators 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -4,3 +4,4 @@ Gemfile.lock
4
4
  pkg/*
5
5
  tmp
6
6
  log
7
+ gemfiles/*.lock
data/.travis.yml ADDED
@@ -0,0 +1,19 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.2
5
+ - 1.9.3
6
+ - ruby-head
7
+ gemfile:
8
+ - gemfiles/Gemfile.rails-3.0
9
+ - gemfiles/Gemfile.rails-3.1
10
+ - gemfiles/Gemfile.rails-3.2
11
+ - gemfiles/Gemfile.rails-edge
12
+ matrix:
13
+ exclude:
14
+ - rvm: 1.8.7
15
+ gemfile: gemfiles/Gemfile.rails-edge
16
+ - rvm: 1.9.2
17
+ gemfile: gemfiles/Gemfile.rails-edge
18
+ allow_failures:
19
+ - rvm: ruby-head
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source "http://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in html5_validators.gemspec
4
4
  gemspec
data/README.rdoc CHANGED
@@ -104,7 +104,7 @@ Write `auto_html5_validation = false` in ActiveModelish class
104
104
 
105
105
  Model:
106
106
  class User < ActiveRecord::Base
107
- auto_html5_validation = false
107
+ self.auto_html5_validation = false
108
108
  end
109
109
 
110
110
  Controller:
@@ -118,7 +118,7 @@ Write `auto_html5_validation = false` in ActiveModelish class
118
118
 
119
119
  == Supported versions
120
120
 
121
- * Ruby 1.8.7, 1.9.2, 1.9.3, 2.0 (trunk)
121
+ * Ruby 1.8.7, 1.9.2, 1.9.3, 2.0, 2.1 (trunk)
122
122
 
123
123
  * Rails 3.0.x, 3.1.x, 3.2.x, 4.0 (edge)
124
124
 
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'railties', '~> 3.0.0'
4
+ gem 'activerecord', '~> 3.0.0'
5
+
6
+ gemspec :path => '..'
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'railties', '~> 3.1.0'
4
+ gem 'activerecord', '~> 3.1.0'
5
+
6
+ gemspec :path => '..'
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'railties', '~> 3.2.0'
4
+ gem 'activerecord', '~> 3.2.0'
5
+
6
+ gemspec :path => '..'
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'railties', :git => 'git://github.com/rails/rails.git'
4
+ gem 'activerecord', :git => 'git://github.com/rails/rails.git'
5
+
6
+ gemspec :path => '..'
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.email = ['ronnie@dio.jp']
11
11
  s.homepage = 'https://github.com/amatsuda/html5_validators'
12
12
  s.summary = 'Automatic client side validation using HTML5 Form Validation'
13
- s.description = 'A gem/plugin for Rails 3 that enables client-side validation using ActiveModel + HTML5'
13
+ s.description = 'A gem/plugin for Rails 3+ that enables client-side validation using ActiveModel + HTML5'
14
14
 
15
15
  s.rubyforge_project = 'html5_validators'
16
16
 
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.require_paths = ['lib']
21
21
  s.add_development_dependency 'activerecord'
22
22
  s.add_development_dependency 'rspec-rails'
23
- s.add_development_dependency 'capybara'
23
+ s.add_development_dependency 'capybara', '>= 2'
24
24
  s.add_development_dependency 'sqlite3'
25
+ s.add_development_dependency 'rake'
25
26
  end
@@ -52,6 +52,7 @@ module ActionView
52
52
 
53
53
  render_without_html5_attributes
54
54
  end
55
+ alias_method_chain :render, :html5_attributes
55
56
  end
56
57
 
57
58
  #TODO probably I have to add some more classes here
@@ -59,7 +60,7 @@ module ActionView
59
60
  kls.class_eval do
60
61
  def render_with_html5_attributes
61
62
  inject_required_field
62
- render_without_html5_attributes options
63
+ render_without_html5_attributes
63
64
  end
64
65
  alias_method_chain :render, :html5_attributes
65
66
  end
@@ -1,3 +1,3 @@
1
1
  module Html5Validators
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html5_validators
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
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-06-13 00:00:00.000000000 Z
12
+ date: 2013-02-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -45,6 +45,22 @@ dependencies:
45
45
  version: '0'
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: capybara
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '2'
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: '2'
62
+ - !ruby/object:Gem::Dependency
63
+ name: sqlite3
48
64
  requirement: !ruby/object:Gem::Requirement
49
65
  none: false
50
66
  requirements:
@@ -60,7 +76,7 @@ dependencies:
60
76
  - !ruby/object:Gem::Version
61
77
  version: '0'
62
78
  - !ruby/object:Gem::Dependency
63
- name: sqlite3
79
+ name: rake
64
80
  requirement: !ruby/object:Gem::Requirement
65
81
  none: false
66
82
  requirements:
@@ -75,7 +91,7 @@ dependencies:
75
91
  - - ! '>='
76
92
  - !ruby/object:Gem::Version
77
93
  version: '0'
78
- description: A gem/plugin for Rails 3 that enables client-side validation using ActiveModel
94
+ description: A gem/plugin for Rails 3+ that enables client-side validation using ActiveModel
79
95
  + HTML5
80
96
  email:
81
97
  - ronnie@dio.jp
@@ -85,10 +101,15 @@ extra_rdoc_files: []
85
101
  files:
86
102
  - .gitignore
87
103
  - .rspec
104
+ - .travis.yml
88
105
  - Gemfile
89
106
  - MIT-LICENSE
90
107
  - README.rdoc
91
108
  - Rakefile
109
+ - gemfiles/Gemfile.rails-3.0
110
+ - gemfiles/Gemfile.rails-3.1
111
+ - gemfiles/Gemfile.rails-3.2
112
+ - gemfiles/Gemfile.rails-edge
92
113
  - html5_validators.gemspec
93
114
  - lib/html5_validators.rb
94
115
  - lib/html5_validators/action_view/form_helpers.rb
@@ -98,7 +119,7 @@ files:
98
119
  - lib/html5_validators/active_record/base.rb
99
120
  - lib/html5_validators/version.rb
100
121
  - spec/fake_app.rb
101
- - spec/requests/validation_spec.rb
122
+ - spec/features/validation_spec.rb
102
123
  - spec/spec_helper.rb
103
124
  homepage: https://github.com/amatsuda/html5_validators
104
125
  licenses: []
@@ -120,11 +141,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
141
  version: '0'
121
142
  requirements: []
122
143
  rubyforge_project: html5_validators
123
- rubygems_version: 1.8.24
144
+ rubygems_version: 1.8.23
124
145
  signing_key:
125
146
  specification_version: 3
126
147
  summary: Automatic client side validation using HTML5 Form Validation
127
148
  test_files:
128
149
  - spec/fake_app.rb
129
- - spec/requests/validation_spec.rb
150
+ - spec/features/validation_spec.rb
130
151
  - spec/spec_helper.rb
152
+ has_rdoc: