wicked 1.3.3 → 1.3.4

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
  SHA256:
3
- metadata.gz: e96378355b47c275b83c88d56fe9e1990b4f11f0c63eaa5f9a35a7e96d16fd22
4
- data.tar.gz: 74d23604baf926973c6ffc93d968f28ff185112266e22f9c2c56911e6217b133
3
+ metadata.gz: 483905a170cbf0f6edace70c1673ba2c6cbcbeb6df0765ce8f86f73c5cf884f7
4
+ data.tar.gz: 6f9f288d5c14e26082666345d4e02191c62135743860bc4a15931fe2659132c9
5
5
  SHA512:
6
- metadata.gz: 612558d4b0072ff42dd1c336bdc20d91827d1fd57b71cd8ef20b318ae240c490c39fd0065e2dd48b73179c6f6a549ed2b3fe4476f0fa9df16be6a60bfa0c27c3
7
- data.tar.gz: fc0ec0f5146b016608ef7bcca9d5d364b257bb5a52488a7e1afc06a97deeda9991b3b2c7e74a73c5232288a63549e72dc8135b54b41a58bf0f9f1fe4f509a6b0
6
+ metadata.gz: 5cf319e58176f0985c111a4513f29580d5a3aa4161da881781021c77b6131f72166f00a8d68638938158030948c1b4e97ddd0ce5a8e95cb76557eb801c29de81
7
+ data.tar.gz: 6187eb1522ae0998571f21aa8580707445771f84a2d6d27d2aa3358c1508a9200e55f61050cb0be967580c305ec5e25a02be6c79f370d3b7b5f762ecb61d0c31
@@ -1,5 +1,9 @@
1
1
  ## Master
2
2
 
3
+ ## 1.3.4
4
+
5
+ * Remove arity check for AR objects (https://github.com/schneems/wicked/pull/257)
6
+
3
7
  ## 1.3.3
4
8
 
5
9
  * Support being able to set a context in validation (https://github.com/schneems/wicked/pull/236)
data/README.md CHANGED
@@ -245,10 +245,10 @@ end
245
245
 
246
246
  ```ruby
247
247
  # Test find_friends block of show action
248
- get :show, id: :find_friends
248
+ get :show, params: { id: :find_friends }
249
249
 
250
250
  # Test find_friends block of update action
251
- put :update, {'id' => 'find_friends', "user" => { "id" => @user.id.to_s }}
251
+ patch :update, params: {'id' => 'find_friends', "user" => { "id" => @user.id.to_s }}
252
252
  ```
253
253
 
254
254
  ### Internationalization of URLS (I18n)
@@ -466,7 +466,7 @@ This project rocks and uses MIT-LICENSE.
466
466
 
467
467
  ## Compatibility
468
468
 
469
- Refer to the Travis CI test matrix for test using your version of Ruby and Rails. If there is a newer Ruby or Rails you don't see on there, please add an entry to the Apprasials file, then run `$ apprasials install` and update the `.travis.yml` file and send me a pull request.
469
+ Refer to the Travis CI test matrix for test using your version of Ruby and Rails. If there is a newer Ruby or Rails you don't see on there, please add an entry to the Appraisals file, then run `$ appraisals install` and update the `.travis.yml` file and send me a pull request.
470
470
 
471
471
  Note: Rails 3.0 support is only for Ruby 1.9.3 or JRuby, not Ruby 2.0.0 or newer.
472
472
 
@@ -16,7 +16,7 @@ module Wicked::Controller::Concerns::RenderRedirect
16
16
  def process_resource!(resource, options = {})
17
17
  return unless resource
18
18
 
19
- if options[:context] && resource.method(:save).arity >= 1
19
+ if options[:context]
20
20
  did_save = resource.save(context: options[:context])
21
21
  else
22
22
  did_save = resource.save
@@ -1,3 +1,3 @@
1
1
  module Wicked
2
- VERSION = "1.3.3"
2
+ VERSION = "1.3.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wicked
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Schneeman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-24 00:00:00.000000000 Z
11
+ date: 2019-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -232,8 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
232
  - !ruby/object:Gem::Version
233
233
  version: '0'
234
234
  requirements: []
235
- rubyforge_project:
236
- rubygems_version: 2.7.6
235
+ rubygems_version: 3.0.3
237
236
  signing_key:
238
237
  specification_version: 4
239
238
  summary: Use Wicked to turn your controller into a wizard