explicit-parameters 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/explicit_parameters/parameters.rb +1 -1
- data/lib/explicit_parameters/version.rb +1 -1
- data/spec/parameters_spec.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b8678ec793b3a6c362be9da00a31ce5f03d60b7
|
4
|
+
data.tar.gz: f8b1c8d883db57b5203881eb598f50eddc361a77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6e21cb9325fd96891449fd4a9e22a121adfee90d01e7950ea8c5b5c260c46c789321119c625c05f6f929947c892701e5c8dee814ca5eecbf1c602315bbd47ec
|
7
|
+
data.tar.gz: c8cb01c64d716c8467cd2ff01c5b2d2ee5914e85e1ad4cd0d85aa800da31180ce2828b03509fc3e80b834d10eb52515cf8718e8de3b163b635d59700b33a9b34
|
data/spec/parameters_spec.rb
CHANGED
@@ -41,6 +41,9 @@ RSpec.describe ExplicitParameters::Parameters do
|
|
41
41
|
expect(params.stringify_keys.keys).to be == %w(id name)
|
42
42
|
end
|
43
43
|
|
44
|
+
it '#reject returns a hash' do
|
45
|
+
expect(params.reject { false }).to be == {id: 42, name: 'George'}
|
46
|
+
end
|
44
47
|
|
45
48
|
it 'allows access to raw parameters when accessed like a Hash' do
|
46
49
|
expect(params[:id]).to be == '42'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: explicit-parameters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean Boussier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|