yard 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of yard might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 81c76130fea5d80195cc0e8f500a672346c85400
4
- data.tar.gz: 5afb557723706f69a06218b483b834bb86f9eb1a
3
+ metadata.gz: 994e4c83b93e9b6c520138f2d8a221b25ab95ca4
4
+ data.tar.gz: 82668951125bfa84bb79b636c130af43a6daf772
5
5
  SHA512:
6
- metadata.gz: 4cc7185c859e475c3460c7f7f0e9a8f7f3fa5617f64cbbcf93c7255e897a9e1304a8d5cfe4e8038c29ea6a746cca81f977b306e45f38e08e868d85b0142a12fb
7
- data.tar.gz: 75eff8b37ee76c18d952cfa2de40c797addac6b4f5cec97871d633970b182e6fbb964cf1e59f11cd6851156f3b85034c1f68bd70977c5395a92d2633de521a35
6
+ metadata.gz: f41d5b06ef5224e1f4ebdc2278323df57e8c70ccd13105827905494c1e4ea81e170c20d9fe797e362dd45e045f4a17c700818e0cba2503fbf8c9178ffdac6392
7
+ data.tar.gz: 99e47e1a3ea86721d389ee3215d6adf643e0e1becc851f2ea0e4c1f7e26224d9d61e30530533c776c094d5e9035b5e43f45241e72e9f76cf59ca362526730f07
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.9.4 - July 21st, 2016
2
+
3
+ - Minor Ruby file parsing and CSS bug fixes.
4
+
1
5
  # 0.9.3 - July 20th, 2016
2
6
 
3
7
  - Added support for {YARD::Server::RackAdapter} to be mounted under prefix URIs.
@@ -249,7 +249,7 @@ module YARD
249
249
  @last_ns_token = [token, data]
250
250
  @charno += data.length
251
251
  @ns_charno = charno
252
- @newline = [:semicolon, :comment, :kw, :op].include?(token)
252
+ @newline = [:semicolon, :comment, :kw, :op, :lparen, :lbrace].include?(token)
253
253
  if ast_token
254
254
  AstNode.new(token, [data], :line => lineno..lineno, :char => ch..charno-1, :token => true)
255
255
  end
data/lib/yard/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module YARD
2
- VERSION = '0.9.3'
2
+ VERSION = '0.9.4'
3
3
  end
@@ -403,6 +403,20 @@ eof
403
403
  expect(Registry.at("Foo::Bar#foo").docstring).to eq "Docstring2"
404
404
  end
405
405
 
406
+ it "can handle complex non-modifier '#{type}' statements" do
407
+ Registry.clear
408
+ YARD.parse_string <<-eof
409
+ class Foo
410
+ def initialize(data, options = Hash.new)
411
+ #{type} true; raise "error" end
412
+ @x = ( #{type} 1; true end ) # This line should not blow up
413
+ end
414
+ end
415
+ eof
416
+
417
+ expect(Registry.at('Foo#initialize')).not_to eq nil
418
+ end
419
+
406
420
  it "does not add comment blocks to #{type}_mod nodes" do
407
421
  Registry.clear
408
422
  ast = YARD.parse_string(<<-eof).enumerator
@@ -215,7 +215,14 @@ p.inherited {
215
215
 
216
216
  ul.toplevel { list-style: none; padding-left: 0; font-size: 1.1em; }
217
217
  .index_inline_list { padding-left: 0; font-size: 1.1em; }
218
- .index_inline_list li { list-style: none; display: inline-block; padding: 7px 12px; line-height: 35px; }
218
+
219
+ .index_inline_list li {
220
+ list-style: none;
221
+ display: inline-block;
222
+ padding: 0 12px;
223
+ line-height: 30px;
224
+ margin-bottom: 5px;
225
+ }
219
226
 
220
227
  dl.constants { margin-left: 10px; }
221
228
  dl.constants dt { font-weight: bold; font-size: 1.1em; margin-bottom: 5px; }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Loren Segal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-20 00:00:00.000000000 Z
11
+ date: 2016-07-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  YARD is a documentation generation tool for the Ruby programming language.