material_raingular 0.0.2.4.1.alpha → 0.0.2.4.2.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/material_raingular/version.rb +1 -1
- data/lib/tasks/material_raingular.rake +2 -1
- 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: 51452aeb2f968f78ee1d065681a84ab46b664c05
|
4
|
+
data.tar.gz: 9eef038151f9d3d52a1cc29fac87e1e0a32e8916
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a489cc0e49a5131e775dcb0ea828bd2fa335b2defb160ecfa676244bfabd21f43e0a16caf3831387752e14bcee4e2cddbd8bfa4cb84f6b627636fb6a17e2f65f
|
7
|
+
data.tar.gz: 33e4987dce1cc7cb9cdc61086dd54d07606d51af1f20d02c6dea86b597f38f68f0173f6c4f62b0a9d7a5745749a7cba057a1e94b395d90fa0e13ba7f725d772f
|
@@ -10,7 +10,8 @@ namespace :material_raingular do
|
|
10
10
|
controllers[route.defaults[:controller]] ||= {}
|
11
11
|
controllers[route.defaults[:controller]][:parent_model_name_and_format_symbol] ||= []
|
12
12
|
controllers[route.defaults[:controller]][:parent_model_name_and_format_symbol] |= route.parts
|
13
|
-
|
13
|
+
action = (route.parts - [:id, :format]).present? ? "#{(route.parts - [:id, :format])[0][0..-4]}_#{route.defaults[:action]}" : route.defaults[:action]
|
14
|
+
controllers[route.defaults[:controller]][action] = {url: route.path.spec.to_s.gsub('(.:format)',''), method: route.constraints[:request_method].inspect.delete('/^$')}
|
14
15
|
end
|
15
16
|
end
|
16
17
|
controllers.each do |controller,routes|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: material_raingular
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.2.4.
|
4
|
+
version: 0.0.2.4.2.alpha
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Moody
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|