get_link_list 0.0.3 → 0.0.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 +4 -4
- data/lib/get_link_list/config.rb +1 -1
- data/lib/get_link_list/helper.rb +5 -1
- data/lib/get_link_list/version.rb +1 -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: 80f91db7b4ff3f33a408adb20f30320680fe1759
|
4
|
+
data.tar.gz: 637cce61e8067f49e59d1f70b17b054016cb0c9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c019ccf81a785e8ddebe4c0380cd0b6aebce63bfca4307a0836e827c5ffb022837ab63f053ed098bd5abf7951f758c67a4d45fffbba318b2f7bb57588276a6c9
|
7
|
+
data.tar.gz: 3a87631acda5c1def2becd2ccb5faba6a137c74b5e15d33a5bc6a745d678ee0eac10638eb9daffda078695938cceb190756f09fce0b55b6c9f5cf2aa818e5be8
|
data/lib/get_link_list/config.rb
CHANGED
data/lib/get_link_list/helper.rb
CHANGED
@@ -5,8 +5,12 @@ module GetLinkList
|
|
5
5
|
@paths = Hash.new { |hash,key| hash[key] = Hash.new {} }
|
6
6
|
Rails.application.routes.routes.each do |route|
|
7
7
|
if "GET" =~ route.constraints[:request_method] && route.path.spec.left != "/"
|
8
|
-
if not GetLinkList.config.ignore_controller.
|
8
|
+
if not GetLinkList.config.ignore_controller.first.has_key?(:"#{route.defaults[:controller]}")
|
9
9
|
@paths[route.defaults[:controller]][route.defaults[:action]] = match_initial_path_segment(route.path.spec.to_s)
|
10
|
+
elsif not GetLinkList.config.ignore_controller.first[:"#{route.defaults[:controller]}"].empty?
|
11
|
+
if not GetLinkList.config.ignore_controller.first[:"#{route.defaults[:controller]}"].include?("#{route.defaults[:action]}")
|
12
|
+
@paths[route.defaults[:controller]][route.defaults[:action]] = match_initial_path_segment(route.path.spec.to_s)
|
13
|
+
end
|
10
14
|
end
|
11
15
|
end
|
12
16
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: get_link_list
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- candle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: It showed your rails project GET path
|
14
14
|
email:
|