typescript-src 1.0.0.0 → 1.0.1.1

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.
Files changed (39) hide show
  1. checksums.yaml +5 -13
  2. data/.gitignore +2 -0
  3. data/Gemfile +4 -2
  4. data/Rakefile +20 -1
  5. data/lib/typescript-src/support/typescript/.npmignore +12 -0
  6. data/lib/typescript-src/support/typescript/CopyrightNotice.txt +15 -0
  7. data/lib/typescript-src/support/typescript/LICENSE.txt +55 -0
  8. data/lib/typescript-src/support/typescript/README.txt +27 -0
  9. data/lib/typescript-src/support/typescript/ThirdPartyNoticeText.txt +85 -0
  10. data/lib/{support → typescript-src/support/typescript/bin}/lib.d.ts +1 -1
  11. data/lib/{support → typescript-src/support/typescript/bin}/resources/cs/cz/diagnosticMessages.generated.json +0 -0
  12. data/lib/{support → typescript-src/support/typescript/bin}/resources/cs/diagnosticMessages.generated.json +0 -0
  13. data/lib/{support → typescript-src/support/typescript/bin}/resources/cz/diagnosticMessages.generated.json +0 -0
  14. data/lib/{support → typescript-src/support/typescript/bin}/resources/de/diagnosticMessages.generated.json +0 -0
  15. data/lib/{support → typescript-src/support/typescript/bin}/resources/diagnosticMessages.generated.json +0 -0
  16. data/lib/{support → typescript-src/support/typescript/bin}/resources/en/diagnosticMessages.generated.json +0 -0
  17. data/lib/{support → typescript-src/support/typescript/bin}/resources/en/us/diagnosticMessages.generated.json +0 -0
  18. data/lib/{support → typescript-src/support/typescript/bin}/resources/es/diagnosticMessages.generated.json +0 -0
  19. data/lib/{support → typescript-src/support/typescript/bin}/resources/fr/diagnosticMessages.generated.json +0 -0
  20. data/lib/{support → typescript-src/support/typescript/bin}/resources/it/diagnosticMessages.generated.json +0 -0
  21. data/lib/{support → typescript-src/support/typescript/bin}/resources/ja/diagnosticMessages.generated.json +0 -0
  22. data/lib/{support → typescript-src/support/typescript/bin}/resources/ja/jp/diagnosticMessages.generated.json +0 -0
  23. data/lib/{support → typescript-src/support/typescript/bin}/resources/ko/diagnosticMessages.generated.json +0 -0
  24. data/lib/{support → typescript-src/support/typescript/bin}/resources/ko/kr/diagnosticMessages.generated.json +0 -0
  25. data/lib/{support → typescript-src/support/typescript/bin}/resources/pl/diagnosticMessages.generated.json +0 -0
  26. data/lib/{support → typescript-src/support/typescript/bin}/resources/pt/br/diagnosticMessages.generated.json +0 -0
  27. data/lib/{support → typescript-src/support/typescript/bin}/resources/pt/diagnosticMessages.generated.json +0 -0
  28. data/lib/{support → typescript-src/support/typescript/bin}/resources/ru/diagnosticMessages.generated.json +0 -0
  29. data/lib/{support → typescript-src/support/typescript/bin}/resources/tr/diagnosticMessages.generated.json +0 -0
  30. data/lib/{support → typescript-src/support/typescript/bin}/resources/zh/cn/diagnosticMessages.generated.json +0 -0
  31. data/lib/{support → typescript-src/support/typescript/bin}/resources/zh/tw/diagnosticMessages.generated.json +0 -0
  32. data/lib/{support → typescript-src/support/typescript/bin}/tsc +0 -0
  33. data/lib/{support → typescript-src/support/typescript/bin}/tsc.js +294 -154
  34. data/lib/{support → typescript-src/support/typescript/bin}/typescript.js +289 -152
  35. data/lib/typescript-src/support/typescript/package.json +61 -0
  36. data/lib/typescript-src.rb +37 -5
  37. data/test/test_type_script_src.rb +31 -0
  38. data/typescript-src.gemspec +20 -10
  39. metadata +60 -37
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "typescript",
3
+ "author": {
4
+ "name": "Microsoft Corp."
5
+ },
6
+ "homepage": "http://typescriptlang.org/",
7
+ "version": "1.0.1",
8
+ "licenses": [
9
+ {
10
+ "type": "Apache License 2.0",
11
+ "url": "http://typescript.codeplex.com/license"
12
+ }
13
+ ],
14
+ "description": "TypeScript is a language for application scale JavaScript development",
15
+ "keywords": [
16
+ "TypeScript",
17
+ "Microsoft",
18
+ "compiler",
19
+ "language",
20
+ "javascript"
21
+ ],
22
+ "bugs": {
23
+ "url": "http://typescript.codeplex.com/workitem/list/basic"
24
+ },
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "https://git01.codeplex.com/typescript"
28
+ },
29
+ "preferGlobal": true,
30
+ "main": "./bin/typescript.js",
31
+ "bin": {
32
+ "tsc": "./bin/tsc"
33
+ },
34
+ "engines": {
35
+ "node": ">=0.8.0"
36
+ },
37
+ "devDependencies": {
38
+ "jake": "latest"
39
+ },
40
+ "_id": "typescript@1.0.1",
41
+ "dist": {
42
+ "shasum": "e8eacde3084a091d3fe29b60ac5862252662a25a",
43
+ "tarball": "http://registry.npmjs.org/typescript/-/typescript-1.0.1.tgz"
44
+ },
45
+ "_from": "typescript@*",
46
+ "_npmVersion": "1.4.3",
47
+ "_npmUser": {
48
+ "name": "typescript",
49
+ "email": "typescript@microsoft.com"
50
+ },
51
+ "maintainers": [
52
+ {
53
+ "name": "typescript",
54
+ "email": "typescript@microsoft.com"
55
+ }
56
+ ],
57
+ "directories": {},
58
+ "_shasum": "e8eacde3084a091d3fe29b60ac5862252662a25a",
59
+ "_resolved": "https://registry.npmjs.org/typescript/-/typescript-1.0.1.tgz",
60
+ "readme": "ERROR: No README data found!"
61
+ }
@@ -1,21 +1,53 @@
1
+ require 'json'
2
+ require 'pathname'
3
+
1
4
  module TypeScript
2
5
  module Src
3
6
  class << self
4
- def root
5
- File.expand_path("..", File.dirname(__FILE__))
7
+ # @return [Pathname]
8
+ def typescript_path
9
+ @typescript_path ||= ::Pathname.new(File.dirname(__FILE__)).join('typescript-src/support/typescript')
6
10
  end
7
11
 
12
+ # @return [Pathname]
8
13
  def tsc_path
9
- root + "/lib/support/tsc"
14
+ typescript_path.join('bin/tsc')
10
15
  end
11
16
 
17
+ # @return [Pathname]
12
18
  def js_path
13
- root + "/lib/support/typescript.js"
19
+ typescript_path.join('bin/typescript.js')
20
+ end
21
+
22
+ # @return [Pathname]
23
+ def package_json_path
24
+ typescript_path.join('package.json')
14
25
  end
15
26
 
27
+ # @return [Pathname]
28
+ def license_path
29
+ typescript_path.join('LICENSE.txt')
30
+ end
31
+
32
+ ### contents
33
+
34
+ # @return [String]
16
35
  def js_content
17
- File.read(js_path)
36
+ js_path.read
37
+ end
38
+
39
+ # @return [Hash]
40
+ def package_info
41
+ JSON.parse(package_json_path.read)
42
+ end
43
+
44
+ # to lazy loading
45
+ # @param name [Symbol]
46
+ # @return [Object]
47
+ def const_missing(name)
48
+ package_info[name.downcase.to_s]
18
49
  end
19
50
  end
20
51
  end
21
52
  end
53
+
@@ -0,0 +1,31 @@
1
+ require 'test/unit'
2
+
3
+ class TestTypeScriptSrc < Test::Unit::TestCase
4
+ def test_version
5
+ assert { TypeScript::Src::VERSION.kind_of?(String) }
6
+ end
7
+
8
+ def test_package_json_path
9
+ assert { TypeScript::Src.package_json_path.file? }
10
+ end
11
+
12
+ def test_license_path
13
+ assert { TypeScript::Src.license_path.file? }
14
+ end
15
+
16
+ def test_typescript_path
17
+ assert { TypeScript::Src.typescript_path.directory? }
18
+ end
19
+
20
+ def test_tsc_path
21
+ assert { TypeScript::Src.tsc_path.file? }
22
+ end
23
+
24
+ def test_js_path
25
+ assert { TypeScript::Src.js_path.file? }
26
+ end
27
+
28
+ def test_js_content
29
+ assert { TypeScript::Src.js_content.length > 0 }
30
+ end
31
+ end
@@ -1,12 +1,22 @@
1
1
  # -*- encoding: utf-8 -*-
2
- Gem::Specification.new do |gem|
3
- gem.authors = ["KAWACHI Takashi"]
4
- gem.email = ["tkawachi@gmail.com"]
5
- gem.description = %q{TypeScript source}
6
- gem.summary = %q{TypeScript source files}
7
- gem.homepage = ""
8
-
9
- gem.files = `git ls-files`.split($\)
10
- gem.name = "typescript-src"
11
- gem.version = "1.0.0.0"
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'typescript-src' # for VERSION
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "typescript-src"
8
+ spec.description = %q{TypeScript source files}
9
+ spec.summary = %q{TypeScript source files}
10
+
11
+ spec.authors = ["KAWACHI Takashi"]
12
+ spec.email = ["tkawachi@gmail.com"]
13
+ spec.homepage = 'https://github.com/typescript-ruby/typescript-src-ruby'
14
+ spec.license = 'Apache 2.0 License'
15
+
16
+ spec.files = `git ls-files`.split($\)
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_path = ['lib']
19
+ spec.version = TypeScript::Src::VERSION + ".1"
20
+
21
+ spec.add_development_dependency 'rake'
12
22
  end
metadata CHANGED
@@ -1,75 +1,98 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typescript-src
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.0
4
+ version: 1.0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - KAWACHI Takashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-05 00:00:00.000000000 Z
12
- dependencies: []
13
- description: TypeScript source
11
+ date: 2014-08-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: TypeScript source files
14
28
  email:
15
29
  - tkawachi@gmail.com
16
30
  executables: []
17
31
  extensions: []
18
32
  extra_rdoc_files: []
19
33
  files:
20
- - .gitignore
34
+ - ".gitignore"
21
35
  - Gemfile
22
36
  - LICENSE
23
37
  - README.md
24
38
  - Rakefile
25
- - lib/support/lib.d.ts
26
- - lib/support/resources/cs/cz/diagnosticMessages.generated.json
27
- - lib/support/resources/cs/diagnosticMessages.generated.json
28
- - lib/support/resources/cz/diagnosticMessages.generated.json
29
- - lib/support/resources/de/diagnosticMessages.generated.json
30
- - lib/support/resources/diagnosticMessages.generated.json
31
- - lib/support/resources/en/diagnosticMessages.generated.json
32
- - lib/support/resources/en/us/diagnosticMessages.generated.json
33
- - lib/support/resources/es/diagnosticMessages.generated.json
34
- - lib/support/resources/fr/diagnosticMessages.generated.json
35
- - lib/support/resources/it/diagnosticMessages.generated.json
36
- - lib/support/resources/ja/diagnosticMessages.generated.json
37
- - lib/support/resources/ja/jp/diagnosticMessages.generated.json
38
- - lib/support/resources/ko/diagnosticMessages.generated.json
39
- - lib/support/resources/ko/kr/diagnosticMessages.generated.json
40
- - lib/support/resources/pl/diagnosticMessages.generated.json
41
- - lib/support/resources/pt/br/diagnosticMessages.generated.json
42
- - lib/support/resources/pt/diagnosticMessages.generated.json
43
- - lib/support/resources/ru/diagnosticMessages.generated.json
44
- - lib/support/resources/tr/diagnosticMessages.generated.json
45
- - lib/support/resources/zh/cn/diagnosticMessages.generated.json
46
- - lib/support/resources/zh/tw/diagnosticMessages.generated.json
47
- - lib/support/tsc
48
- - lib/support/tsc.js
49
- - lib/support/typescript.js
50
39
  - lib/typescript-src.rb
40
+ - lib/typescript-src/support/typescript/.npmignore
41
+ - lib/typescript-src/support/typescript/CopyrightNotice.txt
42
+ - lib/typescript-src/support/typescript/LICENSE.txt
43
+ - lib/typescript-src/support/typescript/README.txt
44
+ - lib/typescript-src/support/typescript/ThirdPartyNoticeText.txt
45
+ - lib/typescript-src/support/typescript/bin/lib.d.ts
46
+ - lib/typescript-src/support/typescript/bin/resources/cs/cz/diagnosticMessages.generated.json
47
+ - lib/typescript-src/support/typescript/bin/resources/cs/diagnosticMessages.generated.json
48
+ - lib/typescript-src/support/typescript/bin/resources/cz/diagnosticMessages.generated.json
49
+ - lib/typescript-src/support/typescript/bin/resources/de/diagnosticMessages.generated.json
50
+ - lib/typescript-src/support/typescript/bin/resources/diagnosticMessages.generated.json
51
+ - lib/typescript-src/support/typescript/bin/resources/en/diagnosticMessages.generated.json
52
+ - lib/typescript-src/support/typescript/bin/resources/en/us/diagnosticMessages.generated.json
53
+ - lib/typescript-src/support/typescript/bin/resources/es/diagnosticMessages.generated.json
54
+ - lib/typescript-src/support/typescript/bin/resources/fr/diagnosticMessages.generated.json
55
+ - lib/typescript-src/support/typescript/bin/resources/it/diagnosticMessages.generated.json
56
+ - lib/typescript-src/support/typescript/bin/resources/ja/diagnosticMessages.generated.json
57
+ - lib/typescript-src/support/typescript/bin/resources/ja/jp/diagnosticMessages.generated.json
58
+ - lib/typescript-src/support/typescript/bin/resources/ko/diagnosticMessages.generated.json
59
+ - lib/typescript-src/support/typescript/bin/resources/ko/kr/diagnosticMessages.generated.json
60
+ - lib/typescript-src/support/typescript/bin/resources/pl/diagnosticMessages.generated.json
61
+ - lib/typescript-src/support/typescript/bin/resources/pt/br/diagnosticMessages.generated.json
62
+ - lib/typescript-src/support/typescript/bin/resources/pt/diagnosticMessages.generated.json
63
+ - lib/typescript-src/support/typescript/bin/resources/ru/diagnosticMessages.generated.json
64
+ - lib/typescript-src/support/typescript/bin/resources/tr/diagnosticMessages.generated.json
65
+ - lib/typescript-src/support/typescript/bin/resources/zh/cn/diagnosticMessages.generated.json
66
+ - lib/typescript-src/support/typescript/bin/resources/zh/tw/diagnosticMessages.generated.json
67
+ - lib/typescript-src/support/typescript/bin/tsc
68
+ - lib/typescript-src/support/typescript/bin/tsc.js
69
+ - lib/typescript-src/support/typescript/bin/typescript.js
70
+ - lib/typescript-src/support/typescript/package.json
71
+ - test/test_type_script_src.rb
51
72
  - typescript-src.gemspec
52
- homepage: ''
53
- licenses: []
73
+ homepage: https://github.com/typescript-ruby/typescript-src-ruby
74
+ licenses:
75
+ - Apache 2.0 License
54
76
  metadata: {}
55
77
  post_install_message:
56
78
  rdoc_options: []
57
79
  require_paths:
58
- - lib
80
+ - - lib
59
81
  required_ruby_version: !ruby/object:Gem::Requirement
60
82
  requirements:
61
- - - ! '>='
83
+ - - ">="
62
84
  - !ruby/object:Gem::Version
63
85
  version: '0'
64
86
  required_rubygems_version: !ruby/object:Gem::Requirement
65
87
  requirements:
66
- - - ! '>='
88
+ - - ">="
67
89
  - !ruby/object:Gem::Version
68
90
  version: '0'
69
91
  requirements: []
70
92
  rubyforge_project:
71
- rubygems_version: 2.2.0
93
+ rubygems_version: 2.2.2
72
94
  signing_key:
73
95
  specification_version: 4
74
96
  summary: TypeScript source files
75
- test_files: []
97
+ test_files:
98
+ - test/test_type_script_src.rb