inch 0.5.5 → 0.5.6

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: b12b363eb00038db02874725972b83da9fd08497
4
- data.tar.gz: 532a72028fd10310edf939889792afee49c1899b
3
+ metadata.gz: 14108473ee83283cca8d56b272807810ab09056e
4
+ data.tar.gz: a51660cc84f73f11717335bb48d2c48b61c13d8c
5
5
  SHA512:
6
- metadata.gz: dd9296697a79d5314c92e4ca3d6bc992155e425dded28068408354ff7681953f76348808c2af479ddd3c28eb9a02e175d34b46e633af2eb28e05e26dc38daf58
7
- data.tar.gz: 02fa19ae2caf4859b13511ad506e95a3ac5c1c94e515a46c3256d7d665d6dd2ee6796f7c9b61b070357a95c75b2da80f8051945a003296a22854a721c5606c5e
6
+ metadata.gz: fbc22fb1dd913d5b77ddd6097a079a060f1eb0bb2fe4ed801b057794e442e4ea6b6ef406727b7cae78e044f371682b29e69c91c1c6493d58cbd45bd3c49c7ed6
7
+ data.tar.gz: 7bb0049037d2abc2814e63934df47571afb9bf91a1f863bea16b303503fd120ff34286ad024a6e73da6782e869c1fe8c5dc2b814cc395dba5750e4cbdef18243
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.6
4
+
5
+ - NodeJS: Fix bug regarding visibility of objects
6
+
7
+ ## 0.5.5
8
+
9
+ - Ruby: Add support for named arguments in Ruby 2.1
10
+
3
11
  ## 0.5.4
4
12
 
5
13
  - CLI: Fix a bug with the `inspect` command
@@ -5,6 +5,8 @@ module Inch
5
5
  module Provider
6
6
  module JSDoc
7
7
  class Docstring < Ruby::Provider::YARD::Docstring
8
+ VISIBILITIES = %w(public protected private)
9
+
8
10
  # Removes the comment markers // /* */ from the docstring.
9
11
  #
10
12
  # Docstring.new("// test").without_comment_markers
@@ -43,9 +45,10 @@ module Inch
43
45
  end
44
46
 
45
47
  def visibility
46
- %w(public protected private).detect do |v|
48
+ tagged_value = VISIBILITIES.detect do |v|
47
49
  tag?(v)
48
- end || 'public'
50
+ end
51
+ (tagged_value || 'public').to_sym
49
52
  end
50
53
 
51
54
  def tag?(tagname, regex = nil)
@@ -1,3 +1,3 @@
1
1
  module Inch
2
- VERSION = '0.5.5'
2
+ VERSION = '0.5.6'
3
3
  end
@@ -52,7 +52,7 @@ describe ::Inch::Language::Nodejs::Provider::JSDoc::Docstring do
52
52
  */
53
53
  DOC
54
54
  docstring = described_class.new(text)
55
- assert_equal visibility, docstring.visibility
55
+ assert_equal visibility.to_sym, docstring.visibility
56
56
  end
57
57
  end
58
58
 
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.5
4
+ version: 0.5.6
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-26 00:00:00.000000000 Z
11
+ date: 2014-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -396,7 +396,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
396
396
  version: '0'
397
397
  requirements: []
398
398
  rubyforge_project:
399
- rubygems_version: 2.2.2
399
+ rubygems_version: 2.4.2
400
400
  signing_key:
401
401
  specification_version: 4
402
402
  summary: Documentation measurement tool for Ruby