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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 546b2c752e9f8c6461488c0a7b4046a1ce26c1bd
4
- data.tar.gz: 7ca4d52d67cc2e8ac3ac21e8af4c08deb40a6d09
3
+ metadata.gz: a0fe486ff5518f31430cdc8e4017d158f9d88465
4
+ data.tar.gz: 9944426a65d60ffdebb9fe237a947e3a8194b7bc
5
5
  SHA512:
6
- metadata.gz: 5cb36cef03b5ef5d72d7425606823b11b3c2472dcd977338f4f80c322bd6c128fc0c5f828e144d8fe122e9d640edaaf7ae26eeedee2ced94c4e8d48ca2a277ec
7
- data.tar.gz: 33fb8906f751a4c9b54ffd60a832df86102a136bd6e0ea21fdab64e77d658a6547be35e2d8977b737f1529dd9c730753c5e822da392d7d1dd0358bbd72b4506b
6
+ metadata.gz: dcef7d2f2caf03e151306e85f9f7c63d46b8dbfad64dd41ffd767d84301a4d72f1eacb418f2d205b79a04f3c70efb4995ed05ca018b871c97f7981f2100c08ec
7
+ data.tar.gz: b7c2ab40c6ac9fe1207859c4e7c57a526c16408f741c8add71f5c59b927e548f788ea456e9734a7cc427cffeb518ca02e4560b400a22062d988a9470c528daa7
@@ -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. For instance, with a Sinatra app at work, we do this:
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
- def params
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.
@@ -1,3 +1,3 @@
1
1
  module ModularStrongParams
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
@@ -222,7 +222,7 @@ module StrongParameters
222
222
  if value.present? || value == false
223
223
  value
224
224
  else
225
- fail ParameterMissing.new(key)
225
+ fail StrongParameters::Error::ParameterMissing.new(key)
226
226
  end
227
227
  end
228
228
 
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.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-15 00:00:00.000000000 Z
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