hotdog 0.1.11 → 0.1.12

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
  SHA1:
3
- metadata.gz: 386ea5a2e53080113a7136e39a71a08465e087fa
4
- data.tar.gz: c69190562efa14c594d20976025d1abd408b47b6
3
+ metadata.gz: 6348ddfde91219ff81265832db03891ed9d6add6
4
+ data.tar.gz: 26936b0ea07053dd51b6ac52833999ce5a3b4be1
5
5
  SHA512:
6
- metadata.gz: df1751d43d7c69edd34a6a1decb2a4b247a7993c0f0bc0a9277066d90a95364ca5582a3e5c2a30eb103e9fdfccf6d79a63029bbcb796862e766fb31897d74c33
7
- data.tar.gz: 84178da6939e1066e18062e235caaa0c055e9bd5d28280aa5f60a4d648d8272ac1ae66ceaf1219e8930ea0d70dc78f4ca543d330a960db53d109dd2d8945a55d
6
+ metadata.gz: cb2a0ed3534d157cdaf7535ae58c0fbc18d84c46d026b050c50be8c9a65aefe4990e2f1b4b047bc681c78f8ba43a3becd2cf113d19ce107713f6b0229c8458f3
7
+ data.tar.gz: b89c70fb502bf4140ab2f0d027d7e6a773166272d305105a8a6b78da1e148d423427b0da9ef48399735ec54d9a265944351c9c8d1f86684d7fa5ae9de96c8aed
@@ -40,8 +40,16 @@ module Hotdog
40
40
  else []
41
41
  end
42
42
  }
43
- identifiers = drilldown.call(node).map(&:to_s)
44
- tags = @options[:display_search_tags] ? identifiers : nil
43
+ if @options[:display_search_tags]
44
+ identifiers = drilldown.call(node).map(&:to_s)
45
+ if @options[:primary_tag]
46
+ tags = [@options[:primary_tag]] + identifiers
47
+ else
48
+ tags = identifiers
49
+ end
50
+ else
51
+ tags = nil
52
+ end
45
53
  get_hosts(result, tags)
46
54
  end
47
55
 
@@ -1,3 +1,3 @@
1
1
  module Hotdog
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hotdog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yamashita Yuu