typescript-src 1.0.1.1 → 1.0.1.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.
- checksums.yaml +4 -4
- data/CHANGES.md +11 -0
- data/README.md +9 -3
- data/lib/typescript-src.rb +4 -5
- data/lib/typescript-src/version.rb +5 -0
- data/test/test_type_script_src.rb +6 -1
- data/typescript-src.gemspec +2 -2
- metadata +3 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 82cea03d88c91d65533f5650de105218f63e3081
         | 
| 4 | 
            +
              data.tar.gz: 159fd6659d471f7f4611a4a5a30b0d805d3c701f
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: f761326356e62ade155869252bdc6bd60d88b18e0683e0fef060ef85ed93b2b68f5f7ecd630b4aa7a698bed53a2669f3d7cc562f6a2cd04fc379f977974dd5b0
         | 
| 7 | 
            +
              data.tar.gz: 67515faf5fd22fcb51d8740107e7797632caf2d949e245c5216d2d39eeacecf212db40c3165e0573a1654e562280b4847e33c23a6b87ecda6ff40e6a013343ac
         | 
    
        data/CHANGES.md
    ADDED
    
    
    
        data/README.md
    CHANGED
    
    | @@ -1,10 +1,10 @@ | |
| 1 1 | 
             
            # Typescript::Src
         | 
| 2 2 |  | 
| 3 | 
            -
             | 
| 3 | 
            +
            TypeScript source files in a gem.
         | 
| 4 4 |  | 
| 5 5 | 
             
            ## Installation
         | 
| 6 6 |  | 
| 7 | 
            -
            Add this line to your application's Gemfile | 
| 7 | 
            +
            Add this line to your application's `Gemfile`:
         | 
| 8 8 |  | 
| 9 9 | 
             
                gem 'typescript-src'
         | 
| 10 10 |  | 
| @@ -18,7 +18,13 @@ Or install it yourself as: | |
| 18 18 |  | 
| 19 19 | 
             
            ## Usage
         | 
| 20 20 |  | 
| 21 | 
            -
             | 
| 21 | 
            +
            ```ruby
         | 
| 22 | 
            +
            require 'typescript-src'
         | 
| 23 | 
            +
             | 
| 24 | 
            +
            p TypeScript::Src.tsc_path # => #<Pathname:/path/to/tsc>
         | 
| 25 | 
            +
            p TypeScript::Src.js_path  # => #<Pathname:/path/to/typescript.js>
         | 
| 26 | 
            +
            p TypeScript::Src.version  # => "1.0.1"
         | 
| 27 | 
            +
            ```
         | 
| 22 28 |  | 
| 23 29 | 
             
            ## Contributing
         | 
| 24 30 |  | 
    
        data/lib/typescript-src.rb
    CHANGED
    
    | @@ -1,5 +1,6 @@ | |
| 1 1 | 
             
            require 'json'
         | 
| 2 2 | 
             
            require 'pathname'
         | 
| 3 | 
            +
            require 'typescript-src/version'
         | 
| 3 4 |  | 
| 4 5 | 
             
            module TypeScript
         | 
| 5 6 | 
             
              module Src
         | 
| @@ -41,11 +42,9 @@ module TypeScript | |
| 41 42 | 
             
                    JSON.parse(package_json_path.read)
         | 
| 42 43 | 
             
                  end
         | 
| 43 44 |  | 
| 44 | 
            -
                  #  | 
| 45 | 
            -
                   | 
| 46 | 
            -
             | 
| 47 | 
            -
                  def const_missing(name)
         | 
| 48 | 
            -
                    package_info[name.downcase.to_s]
         | 
| 45 | 
            +
                  # @return [String]
         | 
| 46 | 
            +
                  def version
         | 
| 47 | 
            +
                    package_info['version']
         | 
| 49 48 | 
             
                  end
         | 
| 50 49 | 
             
                end
         | 
| 51 50 | 
             
              end
         | 
| @@ -1,10 +1,15 @@ | |
| 1 1 | 
             
            require 'test/unit'
         | 
| 2 | 
            +
            require 'typescript-src'
         | 
| 2 3 |  | 
| 3 4 | 
             
            class TestTypeScriptSrc < Test::Unit::TestCase
         | 
| 4 | 
            -
              def  | 
| 5 | 
            +
              def test_gem_version
         | 
| 5 6 | 
             
                assert { TypeScript::Src::VERSION.kind_of?(String) }
         | 
| 6 7 | 
             
              end
         | 
| 7 8 |  | 
| 9 | 
            +
              def test_version
         | 
| 10 | 
            +
                assert { TypeScript::Src.version.kind_of?(String) }
         | 
| 11 | 
            +
              end
         | 
| 12 | 
            +
             | 
| 8 13 | 
             
              def test_package_json_path
         | 
| 9 14 | 
             
                assert { TypeScript::Src.package_json_path.file? }
         | 
| 10 15 | 
             
              end
         | 
    
        data/typescript-src.gemspec
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            # -*- encoding: utf-8 -*-
         | 
| 2 2 | 
             
            lib = File.expand_path('../lib', __FILE__)
         | 
| 3 3 | 
             
            $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
         | 
| 4 | 
            -
            require 'typescript-src' | 
| 4 | 
            +
            require 'typescript-src/version'
         | 
| 5 5 |  | 
| 6 6 | 
             
            Gem::Specification.new do |spec|
         | 
| 7 7 | 
             
              spec.name          = "typescript-src"
         | 
| @@ -16,7 +16,7 @@ Gem::Specification.new do |spec| | |
| 16 16 | 
             
              spec.files         = `git ls-files`.split($\)
         | 
| 17 17 | 
             
              spec.test_files    = spec.files.grep(%r{^(test|spec|features)/})
         | 
| 18 18 | 
             
              spec.require_path  = ['lib']
         | 
| 19 | 
            -
              spec.version       = TypeScript::Src::VERSION | 
| 19 | 
            +
              spec.version       = TypeScript::Src::VERSION
         | 
| 20 20 |  | 
| 21 21 | 
             
              spec.add_development_dependency 'rake'
         | 
| 22 22 | 
             
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: typescript-src
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.0.1. | 
| 4 | 
            +
              version: 1.0.1.2
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - KAWACHI Takashi
         | 
| @@ -32,6 +32,7 @@ extensions: [] | |
| 32 32 | 
             
            extra_rdoc_files: []
         | 
| 33 33 | 
             
            files:
         | 
| 34 34 | 
             
            - ".gitignore"
         | 
| 35 | 
            +
            - CHANGES.md
         | 
| 35 36 | 
             
            - Gemfile
         | 
| 36 37 | 
             
            - LICENSE
         | 
| 37 38 | 
             
            - README.md
         | 
| @@ -68,6 +69,7 @@ files: | |
| 68 69 | 
             
            - lib/typescript-src/support/typescript/bin/tsc.js
         | 
| 69 70 | 
             
            - lib/typescript-src/support/typescript/bin/typescript.js
         | 
| 70 71 | 
             
            - lib/typescript-src/support/typescript/package.json
         | 
| 72 | 
            +
            - lib/typescript-src/version.rb
         | 
| 71 73 | 
             
            - test/test_type_script_src.rb
         | 
| 72 74 | 
             
            - typescript-src.gemspec
         | 
| 73 75 | 
             
            homepage: https://github.com/typescript-ruby/typescript-src-ruby
         |