simple-validators 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 29005c768248d39a784d7cb10a51eaf7b40baa6f
4
+ data.tar.gz: 0fbed019fe141df5268c24ce1411e6ae083b8a71
5
+ SHA512:
6
+ metadata.gz: 5bc23d9ad61771be474cc287614eff3eac894b03596613a6a29eef6ecabcd4f645442e580798247ec143cfd1fa6f3caa7bc1088a5ed1f2c703b78888b5b41db1
7
+ data.tar.gz: d4b1e9de07b62b9a52333710894d58fcc8f6574eb460f11c304d80b17e819e8ec47eec7235a05b70ec779e879c39f015bdf043e91db5c95372bb3309f99536ed
@@ -1,5 +1,5 @@
1
1
  module Simple
2
2
  module Validators
3
- VERSION = "1.0.1"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -4,11 +4,10 @@ require 'rails/all'
4
4
  require 'active_record/railtie'
5
5
  require 'action_controller/railtie'
6
6
  require 'action_mailer/railtie'
7
- require 'active_resource/railtie'
8
7
  require 'sprockets/railtie'
9
8
 
10
9
  Bundler.require
11
- require "simple"
10
+ require "simple/validators"
12
11
 
13
12
  module Dummy
14
13
  class Application < Rails::Application
@@ -48,12 +47,6 @@ module Dummy
48
47
  # like if you have constraints or database-specific column types
49
48
  # config.active_record.schema_format = :sql
50
49
 
51
- # Enforce whitelist mode for mass assignment.
52
- # This will create an empty whitelist of attributes available for mass-assignment for all models
53
- # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
54
- # parameters by using an attr_accessible or attr_protected declaration.
55
- config.active_record.whitelist_attributes = true
56
-
57
50
  # Enable the asset pipeline
58
51
  config.assets.enabled = true
59
52
 
@@ -11,9 +11,6 @@ Dummy::Application.configure do
11
11
  config.serve_static_assets = true
12
12
  config.static_cache_control = "public, max-age=3600"
13
13
 
14
- # Log error messages when you accidentally call methods on nil
15
- config.whiny_nils = true
16
-
17
14
  # Show full error reports and disable caching
18
15
  config.consider_all_requests_local = true
19
16
  config.action_controller.perform_caching = false
@@ -29,9 +26,8 @@ Dummy::Application.configure do
29
26
  # ActionMailer::Base.deliveries array.
30
27
  config.action_mailer.delivery_method = :test
31
28
 
32
- # Raise exception on mass assignment protection for Active Record models
33
- config.active_record.mass_assignment_sanitizer = :strict
34
-
35
29
  # Print deprecation notices to the stderr
36
30
  config.active_support.deprecation = :stderr
31
+
32
+ config.eager_load = false
37
33
  end
@@ -1 +0,0 @@
1
- Connecting to database specified by database.yml
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-validators
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
5
- prerelease:
4
+ version: 1.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Chris Mytton
@@ -10,24 +9,36 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-04-05 00:00:00.000000000 Z
12
+ date: 2013-12-19 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: rails
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
18
  - - ~>
21
19
  - !ruby/object:Gem::Version
22
- version: 3.2.11
23
- type: :runtime
20
+ version: 4.0.2
21
+ type: :development
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
25
  - - ~>
29
26
  - !ruby/object:Gem::Version
30
- version: 3.2.11
27
+ version: 4.0.2
28
+ - !ruby/object:Gem::Dependency
29
+ name: activemodel
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '3.2'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - '>='
40
+ - !ruby/object:Gem::Version
41
+ version: '3.2'
31
42
  description: Adds model validations to the host application
32
43
  email:
33
44
  - paul@simpleweb.co.uk
@@ -77,33 +88,26 @@ files:
77
88
  - spec/validators/username_validator_spec.rb
78
89
  homepage: https://github.com/simpleweb/simple-validators
79
90
  licenses: []
91
+ metadata: {}
80
92
  post_install_message:
81
93
  rdoc_options: []
82
94
  require_paths:
83
95
  - lib
84
96
  required_ruby_version: !ruby/object:Gem::Requirement
85
- none: false
86
97
  requirements:
87
- - - ! '>='
98
+ - - '>='
88
99
  - !ruby/object:Gem::Version
89
100
  version: '0'
90
- segments:
91
- - 0
92
- hash: -1686671528114769587
93
101
  required_rubygems_version: !ruby/object:Gem::Requirement
94
- none: false
95
102
  requirements:
96
- - - ! '>='
103
+ - - '>='
97
104
  - !ruby/object:Gem::Version
98
105
  version: '0'
99
- segments:
100
- - 0
101
- hash: -1686671528114769587
102
106
  requirements: []
103
107
  rubyforge_project:
104
- rubygems_version: 1.8.24
108
+ rubygems_version: 2.0.3
105
109
  signing_key:
106
- specification_version: 3
110
+ specification_version: 4
107
111
  summary: Rails utilities
108
112
  test_files:
109
113
  - spec/dummy/app/assets/javascripts/application.js