webidl 0.0.5 → 0.0.6
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.
- data/VERSION +1 -1
- data/lib/webidl/ast/exception.rb +2 -1
- data/spec/ast_spec.rb +3 -0
- data/spec/fixtures/module_with_exception.idl +1 -1
- data/webidl.gemspec +4 -4
- metadata +4 -10
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            0.0. | 
| 1 | 
            +
            0.0.6
         | 
    
        data/lib/webidl/ast/exception.rb
    CHANGED
    
    | @@ -2,12 +2,13 @@ module WebIDL | |
| 2 2 | 
             
              module Ast
         | 
| 3 3 | 
             
                class Exception < Node
         | 
| 4 4 | 
             
                  attr_reader :name
         | 
| 5 | 
            -
                  attr_accessor :members
         | 
| 5 | 
            +
                  attr_accessor :members, :extended_attributes
         | 
| 6 6 |  | 
| 7 7 | 
             
                  def initialize(parent, name)
         | 
| 8 8 | 
             
                    @parent  = parent
         | 
| 9 9 | 
             
                    @name    = name
         | 
| 10 10 | 
             
                    @members = []
         | 
| 11 | 
            +
                    @extended_attributes = []
         | 
| 11 12 | 
             
                  end
         | 
| 12 13 |  | 
| 13 14 | 
             
                end # Exception
         | 
    
        data/spec/ast_spec.rb
    CHANGED
    
    | @@ -182,6 +182,9 @@ describe WebIDL::Ast do | |
| 182 182 | 
             
                ex.qualified_name.should == '::framework::FrameworkException'
         | 
| 183 183 | 
             
                ex.members.size.should == 2
         | 
| 184 184 |  | 
| 185 | 
            +
                xattr = ex.extended_attributes
         | 
| 186 | 
            +
                xattr.first.name.should == "Supplemental"
         | 
| 187 | 
            +
             | 
| 185 188 | 
             
                first, last = ex.members
         | 
| 186 189 |  | 
| 187 190 | 
             
                first.should be_kind_of(WebIDL::Ast::Const)
         | 
| @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            module framework {
         | 
| 2 2 | 
             
              // Exception identifier: "FrameworkException"
         | 
| 3 3 | 
             
              // Qualified name:       "::framework::FrameworkException"
         | 
| 4 | 
            -
              exception FrameworkException {
         | 
| 4 | 
            +
              [Supplemental] exception FrameworkException {
         | 
| 5 5 |  | 
| 6 6 | 
             
                // Constant identifier: "ERR_NOT_FOUND"
         | 
| 7 7 | 
             
                // Qualified name:      "::framework::FrameworkException::ERR_NOT_FOUND"
         | 
    
        data/webidl.gemspec
    CHANGED
    
    | @@ -5,11 +5,11 @@ | |
| 5 5 |  | 
| 6 6 | 
             
            Gem::Specification.new do |s|
         | 
| 7 7 | 
             
              s.name = %q{webidl}
         | 
| 8 | 
            -
              s.version = "0.0. | 
| 8 | 
            +
              s.version = "0.0.6"
         | 
| 9 9 |  | 
| 10 10 | 
             
              s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
         | 
| 11 11 | 
             
              s.authors = ["Jari Bakken"]
         | 
| 12 | 
            -
              s.date = %q{2010- | 
| 12 | 
            +
              s.date = %q{2010-10-06}
         | 
| 13 13 | 
             
              s.default_executable = %q{webidl2ruby}
         | 
| 14 14 | 
             
              s.description = %q{Built on Treetop, this gem will parse an interface declaration in WebIDL and generate ruby code}
         | 
| 15 15 | 
             
              s.email = %q{jari.bakken@gmail.com}
         | 
| @@ -105,9 +105,9 @@ Gem::Specification.new do |s| | |
| 105 105 | 
             
              s.rubygems_version = %q{1.3.7}
         | 
| 106 106 | 
             
              s.summary = %q{WebIDL parser/generator for ruby}
         | 
| 107 107 | 
             
              s.test_files = [
         | 
| 108 | 
            -
                "spec/ | 
| 109 | 
            -
                 "spec/ast_spec.rb",
         | 
| 108 | 
            +
                "spec/ast_spec.rb",
         | 
| 110 109 | 
             
                 "spec/generator_spec.rb",
         | 
| 110 | 
            +
                 "spec/parser_spec.rb",
         | 
| 111 111 | 
             
                 "spec/spec_helper.rb",
         | 
| 112 112 | 
             
                 "examples/html5.rb"
         | 
| 113 113 | 
             
              ]
         | 
    
        metadata
    CHANGED
    
    | @@ -1,13 +1,12 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification 
         | 
| 2 2 | 
             
            name: webidl
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 | 
            -
              hash: 21
         | 
| 5 4 | 
             
              prerelease: false
         | 
| 6 5 | 
             
              segments: 
         | 
| 7 6 | 
             
              - 0
         | 
| 8 7 | 
             
              - 0
         | 
| 9 | 
            -
              -  | 
| 10 | 
            -
              version: 0.0. | 
| 8 | 
            +
              - 6
         | 
| 9 | 
            +
              version: 0.0.6
         | 
| 11 10 | 
             
            platform: ruby
         | 
| 12 11 | 
             
            authors: 
         | 
| 13 12 | 
             
            - Jari Bakken
         | 
| @@ -15,7 +14,7 @@ autorequire: | |
| 15 14 | 
             
            bindir: bin
         | 
| 16 15 | 
             
            cert_chain: []
         | 
| 17 16 |  | 
| 18 | 
            -
            date: 2010- | 
| 17 | 
            +
            date: 2010-10-06 00:00:00 +02:00
         | 
| 19 18 | 
             
            default_executable: webidl2ruby
         | 
| 20 19 | 
             
            dependencies: 
         | 
| 21 20 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| @@ -26,7 +25,6 @@ dependencies: | |
| 26 25 | 
             
                requirements: 
         | 
| 27 26 | 
             
                - - ">="
         | 
| 28 27 | 
             
                  - !ruby/object:Gem::Version 
         | 
| 29 | 
            -
                    hash: 3
         | 
| 30 28 | 
             
                    segments: 
         | 
| 31 29 | 
             
                    - 0
         | 
| 32 30 | 
             
                    version: "0"
         | 
| @@ -40,7 +38,6 @@ dependencies: | |
| 40 38 | 
             
                requirements: 
         | 
| 41 39 | 
             
                - - ">="
         | 
| 42 40 | 
             
                  - !ruby/object:Gem::Version 
         | 
| 43 | 
            -
                    hash: 3
         | 
| 44 41 | 
             
                    segments: 
         | 
| 45 42 | 
             
                    - 0
         | 
| 46 43 | 
             
                    version: "0"
         | 
| @@ -54,7 +51,6 @@ dependencies: | |
| 54 51 | 
             
                requirements: 
         | 
| 55 52 | 
             
                - - ">="
         | 
| 56 53 | 
             
                  - !ruby/object:Gem::Version 
         | 
| 57 | 
            -
                    hash: 3
         | 
| 58 54 | 
             
                    segments: 
         | 
| 59 55 | 
             
                    - 0
         | 
| 60 56 | 
             
                    version: "0"
         | 
| @@ -163,7 +159,6 @@ required_ruby_version: !ruby/object:Gem::Requirement | |
| 163 159 | 
             
              requirements: 
         | 
| 164 160 | 
             
              - - ">="
         | 
| 165 161 | 
             
                - !ruby/object:Gem::Version 
         | 
| 166 | 
            -
                  hash: 3
         | 
| 167 162 | 
             
                  segments: 
         | 
| 168 163 | 
             
                  - 0
         | 
| 169 164 | 
             
                  version: "0"
         | 
| @@ -172,7 +167,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 172 167 | 
             
              requirements: 
         | 
| 173 168 | 
             
              - - ">="
         | 
| 174 169 | 
             
                - !ruby/object:Gem::Version 
         | 
| 175 | 
            -
                  hash: 3
         | 
| 176 170 | 
             
                  segments: 
         | 
| 177 171 | 
             
                  - 0
         | 
| 178 172 | 
             
                  version: "0"
         | 
| @@ -184,8 +178,8 @@ signing_key: | |
| 184 178 | 
             
            specification_version: 3
         | 
| 185 179 | 
             
            summary: WebIDL parser/generator for ruby
         | 
| 186 180 | 
             
            test_files: 
         | 
| 187 | 
            -
            - spec/parser_spec.rb
         | 
| 188 181 | 
             
            - spec/ast_spec.rb
         | 
| 189 182 | 
             
            - spec/generator_spec.rb
         | 
| 183 | 
            +
            - spec/parser_spec.rb
         | 
| 190 184 | 
             
            - spec/spec_helper.rb
         | 
| 191 185 | 
             
            - examples/html5.rb
         |