yard 0.8.7.1 → 0.8.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of yard might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +6 -2
- data/lib/yard/handlers/c/method_handler.rb +2 -2
- data/lib/yard/version.rb +1 -1
- data/spec/handlers/c/method_handler_spec.rb +10 -0
- data/templates/default/fulldoc/html/frames.erb +1 -0
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: ef9efe4edad38a159aae8b484a45d222408c7c34
         | 
| 4 | 
            +
              data.tar.gz: 68281500153ef94cdcaba336bc139a9e930ab46a
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 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. | 
| 11 | 
            -
            **Release Date**: September  | 
| 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
    
    
| @@ -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. | 
| 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 | 
            +
            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.
         |