rubinius-compiler 2.0.1 → 2.0.4
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.
- checksums.yaml +4 -4
- data/lib/rubinius/compiler/compiled_file.rb +14 -1
- data/lib/rubinius/compiler/printers.rb +1 -1
- data/lib/rubinius/compiler/version.rb +1 -1
- data/rubinius-compiler.gemspec +0 -2
- metadata +11 -10
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: a8770864e11b10b91210d89d9278f223f8471fd3
         | 
| 4 | 
            +
              data.tar.gz: 380f6ba72280272efeed19dd29317b702a358bce
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: a213cb2271866445a8c951ae8769c68cc75d8b87c0ce25575d5364f29bd91d0319b764b6f3779c1827c268a90d6d8ed59709572505208aa3dfdee00a044bf1a1
         | 
| 7 | 
            +
              data.tar.gz: 308bbb4be99788c507e5e193d293e1268613cacbd2b37739085b8c8fe38f665953c752291fe61522027010ae50059ddf857b504efa759cddc2159b391feefcdb
         | 
| @@ -140,8 +140,10 @@ module Rubinius::ToolSet.current::TS | |
| 140 140 | 
             
                      str.force_encoding enc if enc and defined?(Encoding)
         | 
| 141 141 | 
             
                      return str
         | 
| 142 142 | 
             
                    when 120 # ?x
         | 
| 143 | 
            +
                      enc = unmarshal_data
         | 
| 143 144 | 
             
                      count = next_string.to_i
         | 
| 144 145 | 
             
                      str = next_bytes count
         | 
| 146 | 
            +
                      str.force_encoding enc if enc and defined?(Encoding)
         | 
| 145 147 | 
             
                      return str.to_sym
         | 
| 146 148 | 
             
                    when 99  # ?c
         | 
| 147 149 | 
             
                      count = next_string.to_i
         | 
| @@ -264,7 +266,18 @@ module Rubinius::ToolSet.current::TS | |
| 264 266 | 
             
                      "s\n#{enc_name}#{val.bytesize}\n#{val}\n"
         | 
| 265 267 | 
             
                    when Symbol
         | 
| 266 268 | 
             
                      s = val.to_s
         | 
| 267 | 
            -
                       | 
| 269 | 
            +
                      if defined?(Encoding)
         | 
| 270 | 
            +
                        # We manually construct the Encoding data to avoid recursion
         | 
| 271 | 
            +
                        # marshaling an Encoding name as a String.
         | 
| 272 | 
            +
                        name = s.encoding.name
         | 
| 273 | 
            +
                        enc_name = "E\n#{name.bytesize}\n#{name}\n"
         | 
| 274 | 
            +
                      else
         | 
| 275 | 
            +
                        # The kernel code is all US-ASCII. When building melbourne for 1.8
         | 
| 276 | 
            +
                        # Ruby, we fake a bunch of encoding stuff so force US-ASCII here.
         | 
| 277 | 
            +
                        enc_name = "E\n8\nUS-ASCII\n"
         | 
| 278 | 
            +
                      end
         | 
| 279 | 
            +
             | 
| 280 | 
            +
                      "x\n#{enc_name}#{s.bytesize}\n#{s}\n"
         | 
| 268 281 | 
             
                    when Rubinius::Tuple
         | 
| 269 282 | 
             
                      str = "p\n#{val.size}\n"
         | 
| 270 283 | 
             
                      val.each do |ele|
         | 
    
        data/rubinius-compiler.gemspec
    CHANGED
    
    | @@ -17,8 +17,6 @@ Gem::Specification.new do |spec| | |
| 17 17 | 
             
              spec.test_files    = spec.files.grep(%r{^(test|spec|features)/})
         | 
| 18 18 | 
             
              spec.require_paths = ["lib"]
         | 
| 19 19 |  | 
| 20 | 
            -
              spec.required_ruby_version = "~> 2.0"
         | 
| 21 | 
            -
             | 
| 22 20 | 
             
              spec.add_development_dependency "bundler", "~> 1.3"
         | 
| 23 21 | 
             
              spec.add_development_dependency "rake", "~> 10.0"
         | 
| 24 22 | 
             
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,41 +1,41 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: rubinius-compiler
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 2.0. | 
| 4 | 
            +
              version: 2.0.4
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Brian Shirai
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2013- | 
| 11 | 
            +
            date: 2013-10-02 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         | 
| 15 15 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 16 16 | 
             
                requirements:
         | 
| 17 | 
            -
                - - ~>
         | 
| 17 | 
            +
                - - "~>"
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 19 | 
             
                    version: '1.3'
         | 
| 20 20 | 
             
              type: :development
         | 
| 21 21 | 
             
              prerelease: false
         | 
| 22 22 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 23 23 | 
             
                requirements:
         | 
| 24 | 
            -
                - - ~>
         | 
| 24 | 
            +
                - - "~>"
         | 
| 25 25 | 
             
                  - !ruby/object:Gem::Version
         | 
| 26 26 | 
             
                    version: '1.3'
         | 
| 27 27 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 28 28 | 
             
              name: rake
         | 
| 29 29 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 30 30 | 
             
                requirements:
         | 
| 31 | 
            -
                - - ~>
         | 
| 31 | 
            +
                - - "~>"
         | 
| 32 32 | 
             
                  - !ruby/object:Gem::Version
         | 
| 33 33 | 
             
                    version: '10.0'
         | 
| 34 34 | 
             
              type: :development
         | 
| 35 35 | 
             
              prerelease: false
         | 
| 36 36 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 37 37 | 
             
                requirements:
         | 
| 38 | 
            -
                - - ~>
         | 
| 38 | 
            +
                - - "~>"
         | 
| 39 39 | 
             
                  - !ruby/object:Gem::Version
         | 
| 40 40 | 
             
                    version: '10.0'
         | 
| 41 41 | 
             
            description: Rubinius bytecode compiler.
         | 
| @@ -45,7 +45,7 @@ executables: [] | |
| 45 45 | 
             
            extensions: []
         | 
| 46 46 | 
             
            extra_rdoc_files: []
         | 
| 47 47 | 
             
            files:
         | 
| 48 | 
            -
            - .gitignore
         | 
| 48 | 
            +
            - ".gitignore"
         | 
| 49 49 | 
             
            - Gemfile
         | 
| 50 50 | 
             
            - LICENSE
         | 
| 51 51 | 
             
            - README.md
         | 
| @@ -74,12 +74,12 @@ require_paths: | |
| 74 74 | 
             
            - lib
         | 
| 75 75 | 
             
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 76 76 | 
             
              requirements:
         | 
| 77 | 
            -
              - -  | 
| 77 | 
            +
              - - ">="
         | 
| 78 78 | 
             
                - !ruby/object:Gem::Version
         | 
| 79 | 
            -
                  version: ' | 
| 79 | 
            +
                  version: '0'
         | 
| 80 80 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 81 81 | 
             
              requirements:
         | 
| 82 | 
            -
              - -  | 
| 82 | 
            +
              - - ">="
         | 
| 83 83 | 
             
                - !ruby/object:Gem::Version
         | 
| 84 84 | 
             
                  version: '0'
         | 
| 85 85 | 
             
            requirements: []
         | 
| @@ -89,3 +89,4 @@ signing_key: | |
| 89 89 | 
             
            specification_version: 4
         | 
| 90 90 | 
             
            summary: Rubinius bytecode compiler.
         | 
| 91 91 | 
             
            test_files: []
         | 
| 92 | 
            +
            has_rdoc: 
         |