modular_strong_params 1.0.0 → 1.0.1
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 +4 -4
- data/CHANGELOG.md +17 -0
- data/README.md +2 -6
- data/lib/modular_strong_params/version.rb +1 -1
- data/lib/strong_parameters.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a0fe486ff5518f31430cdc8e4017d158f9d88465
|
|
4
|
+
data.tar.gz: 9944426a65d60ffdebb9fe237a947e3a8194b7bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dcef7d2f2caf03e151306e85f9f7c63d46b8dbfad64dd41ffd767d84301a4d72f1eacb418f2d205b79a04f3c70efb4995ed05ca018b871c97f7981f2100c08ec
|
|
7
|
+
data.tar.gz: b7c2ab40c6ac9fe1207859c4e7c57a526c16408f741c8add71f5c59b927e548f788ea456e9734a7cc427cffeb518ca02e4560b400a22062d988a9470c528daa7
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
All notable changes to this project will be documented in this file.
|
|
3
|
+
This file should follow the standards specified on [http://keepachangelog.com/]
|
|
4
|
+
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
5
|
+
|
|
6
|
+
## [Unreleased][unreleased]
|
|
7
|
+
|
|
8
|
+
## [1.0.1] - 2015-07-16
|
|
9
|
+
|
|
10
|
+
## Fixed
|
|
11
|
+
- Errors were not firing outside of ActionController.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.0.0] - 2015-07-15
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
- Everything. It's all new. Broke ties to ActionController, fixed tests.
|
data/README.md
CHANGED
|
@@ -33,16 +33,12 @@ class MyAppClass
|
|
|
33
33
|
end
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
Those methods and the `method_that_returns_base_params_hash` will need to be adapted to your environment.
|
|
36
|
+
Those methods and the `method_that_returns_base_params_hash` will need to be adapted to your environment. Alternatively, you can turn any hash into a Parameters:
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
|
|
40
|
-
@params ||= StrongParameters::Parameters.new(super)
|
|
41
|
-
end
|
|
39
|
+
StrongParameters::Parameters.new(hash)
|
|
42
40
|
```
|
|
43
41
|
|
|
44
|
-
This gets Sinatra's magical params first, then turns them into a StrongParams. Though you take a bit of a performance hit here, we think that the rewards outweigh the costs.
|
|
45
|
-
|
|
46
42
|
## Credit Where Credit's Due
|
|
47
43
|
|
|
48
44
|
Full credit for this code goes to those who contributed to this code in Rails.
|
data/lib/strong_parameters.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: modular_strong_params
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Grigg
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2015-07-
|
|
12
|
+
date: 2015-07-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rack
|
|
@@ -152,6 +152,7 @@ files:
|
|
|
152
152
|
- ".rspec"
|
|
153
153
|
- ".ruby-version"
|
|
154
154
|
- ".travis.yml"
|
|
155
|
+
- CHANGELOG.md
|
|
155
156
|
- Gemfile
|
|
156
157
|
- README.md
|
|
157
158
|
- Rakefile
|