client_side_validations 3.2.8 → 4.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/HISTORY.md +46 -0
  3. data/README.md +540 -0
  4. data/lib/client_side_validations.rb +0 -1
  5. data/lib/client_side_validations/action_view.rb +4 -3
  6. data/lib/client_side_validations/action_view/form_builder.rb +101 -84
  7. data/lib/client_side_validations/action_view/form_helper.rb +99 -110
  8. data/lib/client_side_validations/action_view/form_tag_helper.rb +13 -9
  9. data/lib/client_side_validations/active_model.rb +95 -80
  10. data/lib/client_side_validations/active_model/absence.rb +11 -0
  11. data/lib/client_side_validations/active_model/acceptance.rb +7 -6
  12. data/lib/client_side_validations/active_model/exclusion.rb +4 -24
  13. data/lib/client_side_validations/active_model/format.rb +24 -23
  14. data/lib/client_side_validations/active_model/inclusion.rb +4 -23
  15. data/lib/client_side_validations/active_model/length.rb +15 -15
  16. data/lib/client_side_validations/active_model/numericality.rb +23 -22
  17. data/lib/client_side_validations/active_model/presence.rb +7 -6
  18. data/lib/client_side_validations/active_record.rb +2 -2
  19. data/lib/client_side_validations/active_record/middleware.rb +41 -39
  20. data/lib/client_side_validations/active_record/uniqueness.rb +24 -23
  21. data/lib/client_side_validations/config.rb +1 -1
  22. data/lib/client_side_validations/core_ext/range.rb +1 -2
  23. data/lib/client_side_validations/core_ext/regexp.rb +6 -4
  24. data/lib/client_side_validations/engine.rb +0 -1
  25. data/lib/client_side_validations/generators.rb +2 -3
  26. data/lib/client_side_validations/generators/rails_validations.rb +2 -3
  27. data/lib/client_side_validations/middleware.rb +17 -24
  28. data/lib/client_side_validations/version.rb +1 -1
  29. data/lib/generators/client_side_validations/copy_assets_generator.rb +7 -11
  30. data/lib/generators/client_side_validations/install_generator.rb +0 -2
  31. data/lib/generators/templates/client_side_validations/initializer.rb +1 -2
  32. data/vendor/assets/javascripts/rails.validations.js +26 -20
  33. metadata +173 -48
  34. data/client_side_validations.gemspec +0 -30
@@ -1,30 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "client_side_validations/version"
4
-
5
- Gem::Specification.new do |s|
6
- s.name = "client_side_validations"
7
- s.version = ClientSideValidations::VERSION
8
- s.platform = Gem::Platform::RUBY
9
- s.authors = ["Brian Cardarella"]
10
- s.email = ["bcardarella@gmail.com"]
11
- s.homepage = "https://github.com/bcardarella/client_side_validations"
12
- s.summary = %q{Client Side Validations}
13
- s.description = %q{Client Side Validations}
14
-
15
- s.files = `git ls-files -- {lib/*,vendor/*,*.gemspec}`.split("\n")
16
- s.require_paths = ["lib"]
17
-
18
- s.add_development_dependency 'rails', '~> 3.2.0'
19
- s.add_development_dependency 'sqlite3'
20
- s.add_development_dependency 'mocha'
21
- s.add_development_dependency 'm'
22
-
23
- # For QUnit testing
24
- s.add_development_dependency 'sinatra', '~> 1.0'
25
- s.add_development_dependency 'shotgun'
26
- s.add_development_dependency 'thin'
27
- s.add_development_dependency 'json'
28
- s.add_development_dependency 'coffee-script'
29
- s.add_development_dependency 'jquery-rails'
30
- end