inch 0.5.3 → 0.5.4

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: 134df9a58b6c94acbea3a40e9c13a1866dad4ba3
4
- data.tar.gz: 86f583e22f1efba67e99a541d7d3aa7831845672
3
+ metadata.gz: b159ccc8a6f431736e8c6f91aa53e420f6a6ff03
4
+ data.tar.gz: d6f83758eda7afa51ffb16ced3eb0752910b7f03
5
5
  SHA512:
6
- metadata.gz: 06c80b30becf6922f37fef61ebb2d9086a4f593d4e3ef57f2ed7a803b8031e6021157003f30bf21aa86d7d4340f487a0b0adfbcdf0adbff03227cc191379e262
7
- data.tar.gz: 3859356b25d2bc894ce88653fb60c94c95869e583176f4d96f89710bd7f81660c0968ecb71fa3f90eabc2f06513e97b175a8f4c953472f1d9c520cd6f9173a74
6
+ metadata.gz: 8d214f541c9f2c0d76c2e6fa75ab2bdff73fa8ee76428785ae5013add67f29b49619ecc7e81c1f354378791b4fdad0981746c221578abe4d7e6d7c51cb5f4f85
7
+ data.tar.gz: 5a0aae9c76e117d9e71763e87e7c969bee17ea86a2b5e9cd0826fa4ad976ebf06535250c5a9bfd06b7a41cc4a6232e0d2f60e6b7c893c60bd32853434a56cd84
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.4
4
+
5
+ - CLI: Fix a bug with the `inspect` command
6
+ - Elixir: Implicitly ignore callbacks, macros, and exceptions
7
+
3
8
  ## 0.5.3
4
9
 
5
10
  - Elixir: Hide implementations of protocols
@@ -148,7 +148,7 @@ module Inch
148
148
  end
149
149
 
150
150
  def comments
151
- code_object.original_docstring.lines.map do |line|
151
+ code_object.original_docstring.to_s.lines.map do |line|
152
152
  "# #{line}"
153
153
  end
154
154
  end
@@ -107,8 +107,10 @@ module Inch
107
107
  false
108
108
  end
109
109
 
110
+ HIDDEN_TYPES = %w(defcallback defmacro exception impl)
110
111
  def nodoc?
111
- @hash['doc'] == false
112
+ @hash['doc'] == false ||
113
+ HIDDEN_TYPES.include?(@hash['type'])
112
114
  end
113
115
 
114
116
  def namespace?
@@ -10,10 +10,8 @@ module Inch
10
10
  @hash['moduledoc']
11
11
  end
12
12
 
13
- HIDDEN_TYPES = %w(impl)
14
13
  def nodoc?
15
- @hash['moduledoc'] == false ||
16
- HIDDEN_TYPES.include?(@hash['type'])
14
+ @hash['moduledoc'] == false || super
17
15
  end
18
16
 
19
17
  def fullname
data/lib/inch/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Inch
2
- VERSION = '0.5.3'
2
+ VERSION = '0.5.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - René Föhring
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-10 00:00:00.000000000 Z
11
+ date: 2014-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler