html5_validators 1.1.1 → 1.1.2

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6ff5ec0a7554d38261e38bddc75870287889c8b5
4
+ data.tar.gz: fe369b4ed887f8c6ec3466b091676f62ab9d5563
5
+ SHA512:
6
+ metadata.gz: c52519002574af01ae89e8122a12132112c5ba5211a2470e9232e51d8230cdd2592461b0e99a31328f632bae3310709716c7ccccf563f55af4e2b86e941f0af6
7
+ data.tar.gz: f6f143ce2746e9b98a59f9d08e2a9f102a3d05ecac16e5182e6f4c18cc4406624e1d69db7e664849f9de828b8885b0865d93d07be2fa1b957436bf319d7efbb8
data/.travis.yml CHANGED
@@ -1,19 +1,28 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 1.8.7
4
- - 1.9.2
5
4
  - 1.9.3
5
+ - 2.0.0
6
6
  - ruby-head
7
7
  gemfile:
8
8
  - gemfiles/Gemfile.rails-3.0
9
9
  - gemfiles/Gemfile.rails-3.1
10
10
  - gemfiles/Gemfile.rails-3.2
11
+ - gemfiles/Gemfile.rails-4.0
11
12
  - gemfiles/Gemfile.rails-edge
12
13
  matrix:
13
14
  exclude:
15
+ - rvm: 2.0.0
16
+ gemfile: gemfiles/Gemfile-rails.3.0
17
+ - rvm: 2.0.0
18
+ gemfile: gemfiles/Gemfile-rails.3.1
19
+ - rvm: ruby-head
20
+ gemfile: gemfiles/Gemfile-rails.3.0
21
+ - rvm: ruby-head
22
+ gemfile: gemfiles/Gemfile-rails.3.1
23
+ - rvm: 1.8.7
24
+ gemfile: gemfiles/Gemfile.rails-4.0
14
25
  - rvm: 1.8.7
15
- gemfile: gemfiles/Gemfile.rails-edge
16
- - rvm: 1.9.2
17
26
  gemfile: gemfiles/Gemfile.rails-edge
18
27
  allow_failures:
19
28
  - rvm: ruby-head
data/README.rdoc CHANGED
@@ -120,7 +120,7 @@ Write `auto_html5_validation = false` in ActiveModelish class
120
120
 
121
121
  * Ruby 1.8.7, 1.9.2, 1.9.3, 2.0, 2.1 (trunk)
122
122
 
123
- * Rails 3.0.x, 3.1.x, 3.2.x, 4.0 (edge)
123
+ * Rails 3.0.x, 3.1.x, 3.2.x, 4.0.x, 4.1 (edge)
124
124
 
125
125
  * HTML5 compatible browsers
126
126
 
@@ -2,5 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem 'railties', '~> 3.0.0'
4
4
  gem 'activerecord', '~> 3.0.0'
5
+ gem 'nokogiri', '~> 1.5.0'
6
+ gem 'capybara', '~> 2.0.0'
5
7
 
6
8
  gemspec :path => '..'
@@ -2,5 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem 'railties', '~> 3.1.0'
4
4
  gem 'activerecord', '~> 3.1.0'
5
+ gem 'nokogiri', '~> 1.5.0'
6
+ gem 'capybara', '~> 2.0.0'
5
7
 
6
8
  gemspec :path => '..'
@@ -2,5 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem 'railties', '~> 3.2.0'
4
4
  gem 'activerecord', '~> 3.2.0'
5
+ gem 'nokogiri', '~> 1.5.0'
6
+ gem 'capybara', '~> 2.0.0'
5
7
 
6
8
  gemspec :path => '..'
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'railties', '~> 4.0.0'
4
+ gem 'activerecord', '~> 4.0.0'
5
+
6
+ gemspec :path => '..'
@@ -5,7 +5,7 @@ module ActiveRecord
5
5
  def inherited_with_html5_validation(kls) #:nodoc:
6
6
  inherited_without_html5_validation kls
7
7
  kls.class_eval do
8
- cattr_accessor :auto_html5_validation, :instance_accessor => false
8
+ cattr_accessor :auto_html5_validation, :instance_accessor => false, :instance_reader => false, :instance_writer => false
9
9
  end if kls.superclass == ActiveRecord::Base
10
10
  end
11
11
  alias_method_chain :inherited, :html5_validation
@@ -13,7 +13,7 @@ module ActiveRecord
13
13
 
14
14
  # Existing subclasses pick up the model extension as well
15
15
  self.descendants.each do |kls|
16
- cattr_accessor :auto_html5_validation, :instance_accessor => false if kls.superclass == ActiveRecord::Base
16
+ cattr_accessor :auto_html5_validation, :instance_accessor => false, :instance_reader => false, :instance_writer => false if kls.superclass == ActiveRecord::Base
17
17
  end
18
18
  end
19
19
  end
@@ -1,3 +1,3 @@
1
1
  module Html5Validators
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
3
3
  end
data/spec/fake_app.rb CHANGED
@@ -8,6 +8,7 @@ app = Class.new(Rails::Application)
8
8
  app.config.secret_token = "You know I'm born to lose, and gambling's for fools, But that's the way I like it baby, I don't wanna live for ever, And don't forget the joker!"
9
9
  app.config.session_store :cookie_store, :key => '_myapp_session'
10
10
  app.config.active_support.deprecation = :log
11
+ app.config.eager_load = false
11
12
  app.initialize!
12
13
 
13
14
  # routes
metadata CHANGED
@@ -1,94 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html5_validators
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
5
- prerelease:
4
+ version: 1.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Akira Matsuda
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-26 00:00:00.000000000 Z
11
+ date: 2013-06-26 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activerecord
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rspec-rails
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: capybara
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '2'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '2'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: sqlite3
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rake
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - '>='
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - '>='
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  description: A gem/plugin for Rails 3+ that enables client-side validation using ActiveModel
@@ -109,6 +98,7 @@ files:
109
98
  - gemfiles/Gemfile.rails-3.0
110
99
  - gemfiles/Gemfile.rails-3.1
111
100
  - gemfiles/Gemfile.rails-3.2
101
+ - gemfiles/Gemfile.rails-4.0
112
102
  - gemfiles/Gemfile.rails-edge
113
103
  - html5_validators.gemspec
114
104
  - lib/html5_validators.rb
@@ -123,30 +113,28 @@ files:
123
113
  - spec/spec_helper.rb
124
114
  homepage: https://github.com/amatsuda/html5_validators
125
115
  licenses: []
116
+ metadata: {}
126
117
  post_install_message:
127
118
  rdoc_options: []
128
119
  require_paths:
129
120
  - lib
130
121
  required_ruby_version: !ruby/object:Gem::Requirement
131
- none: false
132
122
  requirements:
133
- - - ! '>='
123
+ - - '>='
134
124
  - !ruby/object:Gem::Version
135
125
  version: '0'
136
126
  required_rubygems_version: !ruby/object:Gem::Requirement
137
- none: false
138
127
  requirements:
139
- - - ! '>='
128
+ - - '>='
140
129
  - !ruby/object:Gem::Version
141
130
  version: '0'
142
131
  requirements: []
143
132
  rubyforge_project: html5_validators
144
- rubygems_version: 1.8.23
133
+ rubygems_version: 2.0.2
145
134
  signing_key:
146
- specification_version: 3
135
+ specification_version: 4
147
136
  summary: Automatic client side validation using HTML5 Form Validation
148
137
  test_files:
149
138
  - spec/fake_app.rb
150
139
  - spec/features/validation_spec.rb
151
140
  - spec/spec_helper.rb
152
- has_rdoc: