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 +4 -4
- data/lib/much-rails/action/router.rb +2 -2
- data/lib/much-rails/version.rb +1 -1
- data/test/unit/action/router_tests.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b16874b1abd3bada37a15e501101bf2b1f3b0f49949e939078a06fe5df861ee
|
|
4
|
+
data.tar.gz: abf58e64838b2a14a2a2b3d243f6fb601dbe93fb1537f00a9cfca12e09c2c16a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/much-rails/version.rb
CHANGED
|
@@ -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.
|
|
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
|
+
date: 2021-04-24 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: much-style-guide
|