inch 0.2.1 → 0.2.2

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: b45ee9e22c7c03f1a92857c1151264ee5d4352a0
4
- data.tar.gz: e161b4cb3cea56f16da2d147f5fa816471d7f7ed
3
+ metadata.gz: a3d046495aa235b1de7a7b672064aa637bd234a9
4
+ data.tar.gz: 8c1f011bbae79bebace8b24652bc8d4a91e03423
5
5
  SHA512:
6
- metadata.gz: 48e145cb1210ebdbec71cb7e265342d0dda637ceb3a1ed617ea18161a457c94071a4eb1ebe836c6ca7875656da696d1b6e64abf63f20d71f525d5c932c8e5f01
7
- data.tar.gz: c5f96298f5389b9cd63e227b7fb9568e70bf9edd31a6697e3484496da38247320f2c86d27bf712ea0dab43a029c02ceeaf9b8b35036a331de803ec57fdb7b7c6
6
+ metadata.gz: da0b420bda2854141896e838ab0cb399110415370ceffdc026e686017a796389bd29f66fb4e085d617e42fc30c5e234e436f49b234270b7690fe67000121a549
7
+ data.tar.gz: a56f9672e84f23952719ea7c2087aa08ae736ed5b7e20c24f612066abc5fed6dc145e252c11cceae797c4fcb7a138a37a3a04373534ad5b9f1147d47a81580de
@@ -31,7 +31,11 @@ module Inch
31
31
  end
32
32
 
33
33
  def api_tag?
34
- !object.tag(:api).nil? || (parent && parent.api_tag?)
34
+ !api_tag.nil?
35
+ end
36
+
37
+ def api_tag
38
+ object.tag(:api) || (parent && parent.api_tag)
35
39
  end
36
40
 
37
41
  # To be overridden
@@ -148,8 +152,7 @@ module Inch
148
152
  end
149
153
 
150
154
  def private_api_tag?
151
- tag = object.tag(:api)
152
- tag && tag.text == 'private'
155
+ api_tag && api_tag.text == 'private'
153
156
  end
154
157
 
155
158
  def protected?
@@ -1,3 +1,3 @@
1
1
  module Inch
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - René Föhring