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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 352154b6641924650ac72a21bc6d6c146edd506b
4
- data.tar.gz: 3b7e985be76240bdfd54f32b38f39d1cc0b506f1
3
+ metadata.gz: 80f91db7b4ff3f33a408adb20f30320680fe1759
4
+ data.tar.gz: 637cce61e8067f49e59d1f70b17b054016cb0c9f
5
5
  SHA512:
6
- metadata.gz: b5a3a4d01d53057f2d4b2f2a61d68218127b752a6891752636381fd95e7d201d1ca4700f7e324f29753cacc1067cefefe3f92fddb56903934337b8ab324fad4b
7
- data.tar.gz: 45f7d89224fb8e28d8d7f84bfd393213c96cd462d55523cd9e53c76092ad4ca679b95c571eec07c800591999abef80ee950097cd0eb7a3c90030c36cf1084acd
6
+ metadata.gz: c019ccf81a785e8ddebe4c0380cd0b6aebce63bfca4307a0836e827c5ffb022837ab63f053ed098bd5abf7951f758c67a4d45fffbba318b2f7bb57588276a6c9
7
+ data.tar.gz: 3a87631acda5c1def2becd2ccb5faba6a137c74b5e15d33a5bc6a745d678ee0eac10638eb9daffda078695938cceb190756f09fce0b55b6c9f5cf2aa818e5be8
@@ -3,7 +3,7 @@ module GetLinkList
3
3
  attr_accessor :ignore_controller
4
4
 
5
5
  def initialize
6
- @ignore_controller = []
6
+ @ignore_controller = ["controller_name1": ["action_name1","action_name2"],"controller_name2": ""]
7
7
  end
8
8
 
9
9
  end
@@ -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.include?(route.defaults[: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
@@ -1,3 +1,3 @@
1
1
  module GetLinkList
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  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.3
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-04 00:00:00.000000000 Z
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: