params_keeper_rails 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42544c02623dbab162cb32dfbf47788df7ccec735e0b606591577033712c9687
4
- data.tar.gz: 3a1e1ba2b64830eb1615c3de5200df092166739c6676b94dd17dd495ab420b2b
3
+ metadata.gz: d76b72564d1cc871d7577b052c4e9d082dd3c76861676a06d7847ad5aed8b4ae
4
+ data.tar.gz: 3e8f6bd4efff874dd152733c86b68b0e03ff29e8b1da34df3c3a27e9be3d14e7
5
5
  SHA512:
6
- metadata.gz: a1c5604ee7acfc4db4b552a6e9408df49a4cb0085cb1e04556582241b303abde1e04216c9404e80315bc65b8f7e8d7925f60edbf1df68d001ca112d040e342c1
7
- data.tar.gz: 3548469944a9851c9ca439d9423a9ad9393b5e546fe25c842b7a575da027521f7e724976043fe6c6aa4fa6e9c753daf1cb08f8b175c42e8ab440b1fc553d05c5
6
+ metadata.gz: b4836bfc19533e07b6f5341d6d467842ff03dd1364f25383ffb3beab21a4884682498fc3d99022f0995067c67f74bf27463bca4e73286b26c08a79799ff084de
7
+ data.tar.gz: 302e980d238c96315f2e8185e475b9235b79aaccfdd7456c6c416243efac446f19f72365ec896656d213e1797de60f062eca8fdd30ec4bb6a52a82c3e8abda3d
data/.gitignore CHANGED
@@ -11,5 +11,6 @@
11
11
  /log/
12
12
  /pkg/
13
13
  /spec/reports/
14
+ /spec/dummy/log/
14
15
  /tmp/
15
16
  /vendor/
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.1.1
4
+
5
+ * Support symbolized :to config.
6
+
3
7
  ## 1.1.0
4
8
 
5
9
  Features:
@@ -39,7 +39,8 @@ class ParamsKeeper::Resolver
39
39
  def link_to_target_controller?(options)
40
40
  controller = options[:controller].to_s
41
41
  if config[:to].present?
42
- ([controller] - Array(config[:to])).blank?
42
+ target = controller.present? ? [controller] : [@controller.controller_name, @controller.controller_path]
43
+ (Array(config[:to]).map(&:to_s) & target).present?
43
44
  else
44
45
  controller.blank? || controller.in?([@controller.controller_name, @controller.controller_path])
45
46
  end
@@ -1,3 +1,3 @@
1
1
  module ParamsKeeper
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: params_keeper_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshikazu Kaneta
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-31 00:00:00.000000000 Z
11
+ date: 2019-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails