protected_attributes 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/active_record/mass_assignment_security.rb +3 -1
- data/lib/protected_attributes/version.rb +1 -1
- data/test/models/person.rb +0 -1
- metadata +24 -40
- data/.gitignore +0 -17
- data/.travis.yml +0 -17
- data/Gemfile +0 -7
- data/Rakefile +0 -11
- data/protected_attributes.gemspec +0 -26
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ddb1da62656644f70bab2fa7487c48f4db28ef66
|
4
|
+
data.tar.gz: b7a30350e181c584988c0cae43048a79a655d282
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ebe0b8a90ac224fc367393328c125766dcff46b717ed4318a6242563286b3f0942bc53b72b47b5544f78bb67b54e128c1e8dee8719fc635d1babeed24a7ca963
|
7
|
+
data.tar.gz: c22cf7f06635d4e25b22c492c415f264552daf2720a9a47a80fccc88a2ff3a28e4bfcfdfc3a36b6e29c8c01251099849c0ebd2090f5c3a55d5ab2583855e9797
|
data/test/models/person.rb
CHANGED
metadata
CHANGED
@@ -1,22 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protected_attributes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- David Heinemeier Hansson
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-04-06 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: activemodel
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 4.0.0.beta
|
22
20
|
- - <
|
@@ -25,9 +23,8 @@ dependencies:
|
|
25
23
|
type: :runtime
|
26
24
|
prerelease: false
|
27
25
|
version_requirements: !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
29
26
|
requirements:
|
30
|
-
- -
|
27
|
+
- - '>='
|
31
28
|
- !ruby/object:Gem::Version
|
32
29
|
version: 4.0.0.beta
|
33
30
|
- - <
|
@@ -36,9 +33,8 @@ dependencies:
|
|
36
33
|
- !ruby/object:Gem::Dependency
|
37
34
|
name: activerecord
|
38
35
|
requirement: !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
36
|
requirements:
|
41
|
-
- -
|
37
|
+
- - '>='
|
42
38
|
- !ruby/object:Gem::Version
|
43
39
|
version: 4.0.0.beta
|
44
40
|
- - <
|
@@ -47,9 +43,8 @@ dependencies:
|
|
47
43
|
type: :development
|
48
44
|
prerelease: false
|
49
45
|
version_requirements: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
46
|
requirements:
|
52
|
-
- -
|
47
|
+
- - '>='
|
53
48
|
- !ruby/object:Gem::Version
|
54
49
|
version: 4.0.0.beta
|
55
50
|
- - <
|
@@ -58,9 +53,8 @@ dependencies:
|
|
58
53
|
- !ruby/object:Gem::Dependency
|
59
54
|
name: actionpack
|
60
55
|
requirement: !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
56
|
requirements:
|
63
|
-
- -
|
57
|
+
- - '>='
|
64
58
|
- !ruby/object:Gem::Version
|
65
59
|
version: 4.0.0.beta
|
66
60
|
- - <
|
@@ -69,9 +63,8 @@ dependencies:
|
|
69
63
|
type: :development
|
70
64
|
prerelease: false
|
71
65
|
version_requirements: !ruby/object:Gem::Requirement
|
72
|
-
none: false
|
73
66
|
requirements:
|
74
|
-
- -
|
67
|
+
- - '>='
|
75
68
|
- !ruby/object:Gem::Version
|
76
69
|
version: 4.0.0.beta
|
77
70
|
- - <
|
@@ -80,53 +73,44 @@ dependencies:
|
|
80
73
|
- !ruby/object:Gem::Dependency
|
81
74
|
name: sqlite3
|
82
75
|
requirement: !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
76
|
requirements:
|
85
|
-
- -
|
77
|
+
- - '>='
|
86
78
|
- !ruby/object:Gem::Version
|
87
79
|
version: '0'
|
88
80
|
type: :development
|
89
81
|
prerelease: false
|
90
82
|
version_requirements: !ruby/object:Gem::Requirement
|
91
|
-
none: false
|
92
83
|
requirements:
|
93
|
-
- -
|
84
|
+
- - '>='
|
94
85
|
- !ruby/object:Gem::Version
|
95
86
|
version: '0'
|
96
87
|
- !ruby/object:Gem::Dependency
|
97
88
|
name: mocha
|
98
89
|
requirement: !ruby/object:Gem::Requirement
|
99
|
-
none: false
|
100
90
|
requirements:
|
101
|
-
- -
|
91
|
+
- - '>='
|
102
92
|
- !ruby/object:Gem::Version
|
103
93
|
version: '0'
|
104
94
|
type: :development
|
105
95
|
prerelease: false
|
106
96
|
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
none: false
|
108
97
|
requirements:
|
109
|
-
- -
|
98
|
+
- - '>='
|
110
99
|
- !ruby/object:Gem::Version
|
111
100
|
version: '0'
|
112
|
-
description: Protect attributes from mass assignment
|
101
|
+
description: Protect attributes from mass assignment
|
113
102
|
email:
|
114
103
|
- david@loudthinking.com
|
115
104
|
executables: []
|
116
105
|
extensions: []
|
117
106
|
extra_rdoc_files: []
|
118
107
|
files:
|
119
|
-
- .gitignore
|
120
|
-
- .travis.yml
|
121
|
-
- Gemfile
|
122
108
|
- LICENSE.txt
|
123
109
|
- README.md
|
124
|
-
- Rakefile
|
125
110
|
- lib/action_controller/accessible_params_wrapper.rb
|
126
|
-
- lib/active_model/mass_assignment_security.rb
|
127
111
|
- lib/active_model/mass_assignment_security/permission_set.rb
|
128
112
|
- lib/active_model/mass_assignment_security/sanitizer.rb
|
129
|
-
- lib/
|
113
|
+
- lib/active_model/mass_assignment_security.rb
|
130
114
|
- lib/active_record/mass_assignment_security/associations.rb
|
131
115
|
- lib/active_record/mass_assignment_security/attribute_assignment.rb
|
132
116
|
- lib/active_record/mass_assignment_security/core.rb
|
@@ -136,10 +120,10 @@ files:
|
|
136
120
|
- lib/active_record/mass_assignment_security/reflection.rb
|
137
121
|
- lib/active_record/mass_assignment_security/relation.rb
|
138
122
|
- lib/active_record/mass_assignment_security/validations.rb
|
139
|
-
- lib/
|
123
|
+
- lib/active_record/mass_assignment_security.rb
|
140
124
|
- lib/protected_attributes/railtie.rb
|
141
125
|
- lib/protected_attributes/version.rb
|
142
|
-
- protected_attributes.
|
126
|
+
- lib/protected_attributes.rb
|
143
127
|
- test/abstract_unit.rb
|
144
128
|
- test/accessible_params_wrapper_test.rb
|
145
129
|
- test/ar_helper.rb
|
@@ -157,29 +141,29 @@ files:
|
|
157
141
|
- test/models/task.rb
|
158
142
|
- test/test_helper.rb
|
159
143
|
homepage: https://github.com/rails/protected_attributes
|
160
|
-
licenses:
|
144
|
+
licenses:
|
145
|
+
- MIT
|
146
|
+
metadata: {}
|
161
147
|
post_install_message:
|
162
148
|
rdoc_options: []
|
163
149
|
require_paths:
|
164
150
|
- lib
|
165
151
|
required_ruby_version: !ruby/object:Gem::Requirement
|
166
|
-
none: false
|
167
152
|
requirements:
|
168
|
-
- -
|
153
|
+
- - '>='
|
169
154
|
- !ruby/object:Gem::Version
|
170
155
|
version: '0'
|
171
156
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
172
|
-
none: false
|
173
157
|
requirements:
|
174
|
-
- -
|
158
|
+
- - '>='
|
175
159
|
- !ruby/object:Gem::Version
|
176
160
|
version: '0'
|
177
161
|
requirements: []
|
178
162
|
rubyforge_project:
|
179
|
-
rubygems_version:
|
163
|
+
rubygems_version: 2.0.0
|
180
164
|
signing_key:
|
181
|
-
specification_version:
|
182
|
-
summary: Protect attributes from mass assignment in
|
165
|
+
specification_version: 4
|
166
|
+
summary: Protect attributes from mass assignment in Active Record models
|
183
167
|
test_files:
|
184
168
|
- test/abstract_unit.rb
|
185
169
|
- test/accessible_params_wrapper_test.rb
|
data/.gitignore
DELETED
data/.travis.yml
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
before_install:
|
3
|
-
- gem install bundler
|
4
|
-
rvm:
|
5
|
-
- 1.9.3
|
6
|
-
notifications:
|
7
|
-
email: false
|
8
|
-
irc:
|
9
|
-
on_success: change
|
10
|
-
on_failure: always
|
11
|
-
channels:
|
12
|
-
- "irc.freenode.org#rails-contrib"
|
13
|
-
campfire:
|
14
|
-
on_success: change
|
15
|
-
on_failure: always
|
16
|
-
rooms:
|
17
|
-
- secure: "CGWvthGkBKNnTnk9YSmf9AXKoiRI33fCl5D3jU4nx3cOPu6kv2R9nMjt9EAo\nOuS4Q85qNSf4VNQ2cUPNiNYSWQ+XiTfivKvDUw/QW9r1FejYyeWarMsSBWA+\n0fADjF1M2dkDIVLgYPfwoXEv7l+j654F1KLKB69F0F/netwP9CQ="
|
data/Gemfile
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
# Specify your gem's dependencies in protected_attributes.gemspec
|
4
|
-
gem 'rails', github: 'rails/rails', branch: 'master'
|
5
|
-
gem 'activerecord-deprecated_finders', github: 'rails/activerecord-deprecated_finders', branch: 'master'
|
6
|
-
|
7
|
-
gemspec
|
data/Rakefile
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'protected_attributes/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |gem|
|
7
|
-
gem.name = "protected_attributes"
|
8
|
-
gem.version = ProtectedAttributes::VERSION
|
9
|
-
gem.authors = ["David Heinemeier Hansson"]
|
10
|
-
gem.email = ["david@loudthinking.com"]
|
11
|
-
gem.description = %q{Protect attributes from mass assignment in AR models}
|
12
|
-
gem.summary = %q{Protect attributes from mass assignment in AR models}
|
13
|
-
gem.homepage = "https://github.com/rails/protected_attributes"
|
14
|
-
|
15
|
-
gem.files = `git ls-files`.split($/)
|
16
|
-
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
|
-
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
|
-
gem.require_paths = ["lib"]
|
19
|
-
|
20
|
-
gem.add_dependency "activemodel", ">= 4.0.0.beta", "< 5.0"
|
21
|
-
|
22
|
-
gem.add_development_dependency "activerecord", ">= 4.0.0.beta", "< 5.0"
|
23
|
-
gem.add_development_dependency "actionpack", ">= 4.0.0.beta", "< 5.0"
|
24
|
-
gem.add_development_dependency "sqlite3"
|
25
|
-
gem.add_development_dependency "mocha"
|
26
|
-
end
|