much-rails 0.2.7 → 0.2.8

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: 8a66a39e5898e5491c562aed8a32fb4036382a3d62485e71d45d8c946d18f622
4
- data.tar.gz: ff4307e38c7d7d8115823189bd5d39d7799b3f4bcedc0fd5f3e39320215dfffe
3
+ metadata.gz: 4b16874b1abd3bada37a15e501101bf2b1f3b0f49949e939078a06fe5df861ee
4
+ data.tar.gz: abf58e64838b2a14a2a2b3d243f6fb601dbe93fb1537f00a9cfca12e09c2c16a
5
5
  SHA512:
6
- metadata.gz: 40877d371bdefb9fb77e370c5847a61becc905658ccaf2504066ed2092a4e0f3343e9fcf37e6e334e90155c14a6f13cea4bf1e0faaf7f893554e9b333f235ff7
7
- data.tar.gz: 804743827c52ec702454bc5fed1999883ffaa8d7a0434c8266323f23d1fb231ed73bf2bec93b710d84797297c4cd58566209e0ba1fba09f7eb3a8cb9997a9417
6
+ metadata.gz: 3a971f04f2f90b7c5adc8284d7fe7b6ff11a115d637183921c6bc2f12867e226f6ce741513068cf9418f6094778e9b2adf27e74fafaf11fcf3e621913271058f
7
+ data.tar.gz: c0ba8ef4a6242a9e0d1ccfe56d1d6b1a6aeec49f994e47e9d4c52553bc13f6311fe3f5e2a41ce7105c30b3d7bbac79f68399d6e2f75b5bbfbde85aad6d457b23
@@ -97,14 +97,14 @@ class MuchRails::Action::Router < MuchRails::Action::BaseRouter
97
97
  def path_for(**kargs)
98
98
  MuchRails::RailsRoutes.instance.public_send(
99
99
  "#{name}_path",
100
- **kargs.symbolize_keys,
100
+ **kargs.symbolize_keys.except(:format),
101
101
  )
102
102
  end
103
103
 
104
104
  def url_for(**kargs)
105
105
  MuchRails::RailsRoutes.instance.public_send(
106
106
  "#{name}_url",
107
- **kargs.symbolize_keys,
107
+ **kargs.symbolize_keys.except(:format),
108
108
  )
109
109
  end
110
110
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MuchRails
4
- VERSION = "0.2.7"
4
+ VERSION = "0.2.8"
5
5
  end
@@ -212,12 +212,12 @@ class MuchRails::Action::Router
212
212
  should have_imeths :path_for, :url_for
213
213
 
214
214
  should "know its attributes" do
215
- path_string = subject.path_for(test: "args")
215
+ path_string = subject.path_for(test: "args", format: "html")
216
216
  assert_that(path_string).equals("TEST PATH OR URL STRING")
217
217
  assert_that(@rails_routes_method_missing_call.args)
218
218
  .equals(["#{url_name1}_path".to_sym, { test: "args" }])
219
219
 
220
- url_string = subject.url_for(test: "args")
220
+ url_string = subject.url_for(test: "args", format: "xml")
221
221
  assert_that(url_string).equals("TEST PATH OR URL STRING")
222
222
  assert_that(@rails_routes_method_missing_call.args)
223
223
  .equals(["#{url_name1}_url".to_sym, { test: "args" }])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: much-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Redding
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-04-12 00:00:00.000000000 Z
12
+ date: 2021-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: much-style-guide