fencepost 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2863943be9d2accba2401320b387556cb1ef7a35
4
- data.tar.gz: c7d7f357a72ed8e5a41a0a6525037b27c9499fb7
3
+ metadata.gz: 30c4c5e78c7f5b4576a4963a4272132e68382859
4
+ data.tar.gz: 59943dfc6fc8b42a73c9f92523410f417816a04f
5
5
  SHA512:
6
- metadata.gz: c8ffffe4d44d0e6d1c96ff3fc67f0c20309c3a02979af822780e63bd8320a87126d252299e9065ddbbc153b2c1e15863a73a3cdbfb934f05ce8dc1e73b5b387f
7
- data.tar.gz: cefe19ee0dc56eda5eb358177cf235f2e359dc0484b453c50dca1a86212ea93f71e8472d1016a06cd8fabd15ddf0c4c0177db035769b053b75734ef99230e29c
6
+ metadata.gz: 3964fbe6ef2b90ded0d8444c52dc0657bca8bc321650d240328f0db0d3c3e1ea882f294410dda97eb20ca977bf8ba418c7024d2d00dfefa06074df097b622440
7
+ data.tar.gz: 837bf02cc4732764904c5a672e25769ad1fd15d921b686afc5ee268abc57efe732e8e95be287b6afb646ebbe7a47a4190306f5b078d184b7d4071f3d3d2b8e65
@@ -7,7 +7,7 @@ module Fencepost
7
7
  @gate = Gate.new(self.class.model_list, params)
8
8
  self.class.models.each do |model|
9
9
  define_singleton_method self.class.method_name(model) do
10
- gate.open(params,self.class.param_key(model), model)
10
+ gate.open(params, self.class.param_key(model), model)
11
11
  end
12
12
  end
13
13
  end
@@ -10,6 +10,7 @@ module Fencepost
10
10
 
11
11
  def open(params, key, model)
12
12
  perms = deny_permissions(allow_permissions(build_permits(model, [])))
13
+ params = params.permit!.to_h if params.respond_to?(:permit!)
13
14
  ActionController::Parameters.new(params).require(key).permit(perms)
14
15
  end
15
16
 
@@ -1,3 +1,3 @@
1
1
  module Fencepost
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,55 +1,61 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fencepost
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Helm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-10 00:00:00.000000000 Z
11
+ date: 2017-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.1'
19
+ version: '4.0'
20
+ - - "<="
21
+ - !ruby/object:Gem::Version
22
+ version: '5.2'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - ~>
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '4.0'
30
+ - - "<="
25
31
  - !ruby/object:Gem::Version
26
- version: '4.1'
32
+ version: '5.2'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: sqlite3
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
- - - '>='
37
+ - - ">="
32
38
  - !ruby/object:Gem::Version
33
39
  version: '0'
34
40
  type: :development
35
41
  prerelease: false
36
42
  version_requirements: !ruby/object:Gem::Requirement
37
43
  requirements:
38
- - - '>='
44
+ - - ">="
39
45
  - !ruby/object:Gem::Version
40
46
  version: '0'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: rspec-rails
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
- - - '>='
51
+ - - ">="
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
- - - '>='
58
+ - - ">="
53
59
  - !ruby/object:Gem::Version
54
60
  version: '0'
55
61
  description: Dynamic strong parameter configuration for your AR models
@@ -59,16 +65,16 @@ executables: []
59
65
  extensions: []
60
66
  extra_rdoc_files: []
61
67
  files:
68
+ - MIT-LICENSE
69
+ - Rakefile
70
+ - lib/fencepost.rb
62
71
  - lib/fencepost/acts_as_fencepost.rb
63
72
  - lib/fencepost/configuration.rb
64
73
  - lib/fencepost/fencepost.rb
65
74
  - lib/fencepost/gate.rb
66
75
  - lib/fencepost/railtie.rb
67
76
  - lib/fencepost/version.rb
68
- - lib/fencepost.rb
69
77
  - lib/generators/fencepost_config_generator.rb
70
- - MIT-LICENSE
71
- - Rakefile
72
78
  homepage: https://github.com/scotthelm/fencepost
73
79
  licenses:
74
80
  - MIT
@@ -79,17 +85,17 @@ require_paths:
79
85
  - lib
80
86
  required_ruby_version: !ruby/object:Gem::Requirement
81
87
  requirements:
82
- - - '>='
88
+ - - ">="
83
89
  - !ruby/object:Gem::Version
84
90
  version: '0'
85
91
  required_rubygems_version: !ruby/object:Gem::Requirement
86
92
  requirements:
87
- - - '>='
93
+ - - ">="
88
94
  - !ruby/object:Gem::Version
89
95
  version: '0'
90
96
  requirements: []
91
97
  rubyforge_project:
92
- rubygems_version: 2.0.3
98
+ rubygems_version: 2.6.11
93
99
  signing_key:
94
100
  specification_version: 4
95
101
  summary: Rails 4.x strong parameter configuration for your AR models