yard 0.8.7.1 → 0.8.7.2

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: 208c73915b432a5fabd54f533ca824a1c3b2e26d
4
- data.tar.gz: 120c523ff3ca0f0fcdcc42f8981730004d091cde
3
+ metadata.gz: ef9efe4edad38a159aae8b484a45d222408c7c34
4
+ data.tar.gz: 68281500153ef94cdcaba336bc139a9e930ab46a
5
5
  SHA512:
6
- metadata.gz: dc1f452675e2a7cdd91605ce36c294748d4d427d712e63cea8f157fbb35f5b8425546b0d8cb37dc10b330cb619618e9942ffa86a38f3b832bd423936883675fb
7
- data.tar.gz: 1c513dd64c24b5d84aae04ce57c889daf552896f3cf62f243114297b388f68e01abbd9d33c3343078b22bd386df4a52730cdabce2eeeb62ff79836393b08207a
6
+ metadata.gz: 876cde2d21d6952a00e48c7ab4db8131b54960b7a92d1c1e1fe02e68a253a7f58f9830a93607fe8d55e196acd94a99a8cc72db17352ceeda5d1101e4ffeee6fb
7
+ data.tar.gz: 71981d8942aeef7eff85bdac219896656a0d4fab0fc355202bc993e554f3d1e4fd51bef14224134b3d574306ad659238e78e0bda53a170302b32d55adf3c6885
data/README.md CHANGED
@@ -7,8 +7,8 @@
7
7
  **Contributors**: http://github.com/lsegal/yard/contributors
8
8
  **Copyright**: 2007-2013
9
9
  **License**: MIT License
10
- **Latest Version**: 0.8.7.1
11
- **Release Date**: September 11th 2013
10
+ **Latest Version**: 0.8.7.2
11
+ **Release Date**: September 18th 2013
12
12
 
13
13
  ## Synopsis
14
14
 
@@ -283,6 +283,10 @@ More options can be seen by typing `yard graph --help`, but here is an example:
283
283
 
284
284
  ## Changelog
285
285
 
286
+ - **September.18.13**: 0.8.7.2 release
287
+ - Disallow absolute URLs when using frame anchor support.
288
+ - Support casted functions in CRuby method declarations (#697)
289
+
286
290
  - **September.11.13**: 0.8.7.1 release
287
291
  - Fix potential XSS issue with frame anchor support.
288
292
  - Add support for gettext 3.x gem.
@@ -8,11 +8,11 @@ class YARD::Handlers::C::MethodHandler < YARD::Handlers::C::Base
8
8
  )
9
9
  \s*\(\s*([\w\.]+),
10
10
  \s*"([^"]+)",
11
- \s*(?:RUBY_METHOD_FUNC\(|VALUEFUNC\()?(\w+)\)?,
11
+ \s*(?:RUBY_METHOD_FUNC\(|VALUEFUNC\(|\(\w+\))?(\w+)\)?,
12
12
  \s*(-?\w+)\s*\)}xm
13
13
  MATCH2 = %r{rb_define_global_function\s*\(
14
14
  \s*"([^"]+)",
15
- \s*(?:RUBY_METHOD_FUNC\(|VALUEFUNC\()?(\w+)\)?,
15
+ \s*(?:RUBY_METHOD_FUNC\(|VALUEFUNC\(|\(\w+\))?(\w+)\)?,
16
16
  \s*(-?\w+)\s*\)}xm
17
17
  handles MATCH1
18
18
  handles MATCH2
data/lib/yard/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module YARD
2
- VERSION = "0.8.7.1"
2
+ VERSION = "0.8.7.2"
3
3
  end
@@ -226,4 +226,14 @@ describe YARD::Handlers::C::MethodHandler do
226
226
  foo = Registry.at('Foo#foo?')
227
227
  foo.tag(:return).types.should == ['String']
228
228
  end
229
+
230
+ it "should handle casted method names" do
231
+ parse_init <<-eof
232
+ mFoo = rb_define_module("Foo");
233
+ rb_define_method(mFoo, "bar", (METHOD)bar, 0);
234
+ rb_define_global_function("baz", (METHOD)baz, 0);
235
+ eof
236
+ Registry.at('Foo#bar').should_not be_nil
237
+ Registry.at('Kernel#baz').should_not be_nil
238
+ end
229
239
  end
@@ -10,6 +10,7 @@
10
10
  window.onload = function() {
11
11
  var match = unescape(window.location.hash).match(/^#!(.+)/);
12
12
  var name = match ? match[1] : '<%= url_for_main %>';
13
+ name = name.replace(/^(\w+):\/\//, '').replace(/^\/\//, '');
13
14
  document.writeln('<frameset cols="20%,*">' +
14
15
  '<frame name="list" src="<%= url_for_list('class') %>" />' +
15
16
  '<frame name="main" src="' + escape(name) + '" />' +
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.8.7.1
4
+ version: 0.8.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Loren Segal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-11 00:00:00.000000000 Z
11
+ date: 2013-09-18 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.