typescript-src 1.0.1.1 → 1.0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c78e404a026a5709f2f75e20fe41519822675c2
4
- data.tar.gz: 1cc6b74bd16f989d418e5cad0dfd8bae6abf6a79
3
+ metadata.gz: 82cea03d88c91d65533f5650de105218f63e3081
4
+ data.tar.gz: 159fd6659d471f7f4611a4a5a30b0d805d3c701f
5
5
  SHA512:
6
- metadata.gz: e405aa3536632515232a70395ea77db3b9b1738b7b20dfa4d92a02230a4acc2cd9f9b46dd8bc15efaa70f021539fab5126de54700bffd9f772bed2a4a945c96c
7
- data.tar.gz: cc61307b237151ee46ccee034fb72c6fa75d9829cb38f93d9e2052177e27df1bf6d116952e36ed34b583b1f3c092f9df4f8d0b806ebc963bb45ad01acad01e30
6
+ metadata.gz: f761326356e62ade155869252bdc6bd60d88b18e0683e0fef060ef85ed93b2b68f5f7ecd630b4aa7a698bed53a2669f3d7cc562f6a2cd04fc379f977974dd5b0
7
+ data.tar.gz: 67515faf5fd22fcb51d8740107e7797632caf2d949e245c5216d2d39eeacecf212db40c3165e0573a1654e562280b4847e33c23a6b87ecda6ff40e6a013343ac
data/CHANGES.md ADDED
@@ -0,0 +1,11 @@
1
+
2
+ ## v1.0.1.2 2014-08-09 08:37:08+0900
3
+
4
+ * Fix versioning: TypeScript::Src::VERSION is the gem's version
5
+ and TypeScript::Src.version is the TypeScript's version
6
+
7
+ ## v1.0.1.1 2014-08-09 08:28:41+0900
8
+
9
+ * Shipped with TypeScript v1.0.1
10
+
11
+
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # Typescript::Src
2
2
 
3
- TODO: Write a gem description
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
- TODO: Write usage instructions here
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
 
@@ -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
- # to lazy loading
45
- # @param name [Symbol]
46
- # @return [Object]
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
@@ -0,0 +1,5 @@
1
+ module TypeScript
2
+ module Src
3
+ VERSION = '1.0.1.2' # TypeScript compiler version + gem's revision
4
+ end
5
+ 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 test_version
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
@@ -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' # for VERSION
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 + ".1"
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.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