weak_parameters 0.1.6 → 0.1.7

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: 7e14888d6ca91c30183114b9da6414fd06813b14
4
- data.tar.gz: ddf56dcd3f9802d6fc82bbc4a0b26d3efb537a39
3
+ metadata.gz: 0e880b9c7c7a5df3d10f1ca83509d4ac09de2d17
4
+ data.tar.gz: 9d030f6d391518b29e25da018db0767fff919e2c
5
5
  SHA512:
6
- metadata.gz: 2c4e91827ef9bc297a92475c07539dd46f7cf6bc8f3e47006fa090c04f877fca8563b1654640e117ea2ebb67a2775f379f80a92c8531e81c578e92492e5cc9c8
7
- data.tar.gz: adb68ddf8264e3a4020eef3bac59673d5f79b1c7215ff73ab638e0223b032d96e6a78dff97b55a1ac3f2bdf5c64fbd9a74795e714a522b87dc9948dffc2d7a44
6
+ metadata.gz: 76e2224bf86280fe5940aa67f19fe96a0d4c41e570c51e3d6164f5c36e4017151455c7d4c11e1f8fb20c31072e9eb6c19fbf33abda479e636011cc51b6825a9d
7
+ data.tar.gz: 67c683e0f450e7df5b747103d5d74b0db2497bab6db0b1bd899f174ee62939b419890a89e5df9ebb7431aba3e2a42f05cbf90029313d8385511f43f27d8cd0ec
@@ -1,3 +1,6 @@
1
+ ## 0.1.7
2
+ * Fix bug on missing `@path` variable (Thx @taka0125)
3
+
1
4
  ## 0.1.6
2
5
  * Support nested parameters (Thx @mzp)
3
6
 
data/README.md CHANGED
@@ -56,6 +56,8 @@ irb(main):005:0> app.post "/recipes", name: "alice", type: "bob"
56
56
  * string
57
57
  * boolean (= 0, 1, false, true)
58
58
  * file
59
+ * object
60
+ * list
59
61
 
60
62
  ### Avilable options
61
63
  * required
@@ -7,6 +7,7 @@ module WeakParameters
7
7
  @key = key
8
8
  @options = options
9
9
  @block = block
10
+ @path = []
10
11
  end
11
12
 
12
13
  def validate(*path)
@@ -1,3 +1,3 @@
1
1
  module WeakParameters
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weak_parameters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-27 00:00:00.000000000 Z
11
+ date: 2015-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  requirements: []
155
155
  rubyforge_project:
156
- rubygems_version: 2.2.2
156
+ rubygems_version: 2.4.5
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Add a validation filter to your controller.