commonjs 0.0.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.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/README.md +17 -0
- data/Rakefile +2 -0
- data/commonjs.gemspec +17 -0
- data/lib/commonjs.rb +5 -0
- data/lib/commonjs/version.rb +3 -0
- metadata +74 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
|
2
|
+
# CommonJS
|
3
|
+
|
4
|
+
Host CommonJS JavaScript environments in Ruby
|
5
|
+
|
6
|
+
## An experimental API for hosting CommonJS apps
|
7
|
+
|
8
|
+
class MyRuntime < CommonJS::Runtime
|
9
|
+
modules :require, :filesystem, :process, :crypto
|
10
|
+
end
|
11
|
+
|
12
|
+
runtime = CommonJS::Runtime.new
|
13
|
+
runtime.modules :require, :filesystem, :process
|
14
|
+
|
15
|
+
## Supported runtimes
|
16
|
+
|
17
|
+
We'll shoot for Johnson, The Ruby Racer, The Ruby Rhino, (and possibly Lyndon?)
|
data/Rakefile
ADDED
data/commonjs.gemspec
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/commonjs/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Charles Lowell"]
|
6
|
+
gem.email = ["cowboyd@thefrontside.net"]
|
7
|
+
gem.description = "Host CommonJS JavaScript environments in Ruby"
|
8
|
+
gem.summary = "Provide access to your Ruby and Operating System runtime via the commonjs API"
|
9
|
+
gem.homepage = "http://github.com/cowboyd/commonjs"
|
10
|
+
|
11
|
+
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
12
|
+
gem.files = `git ls-files`.split("\n")
|
13
|
+
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
14
|
+
gem.name = "commonjs"
|
15
|
+
gem.require_paths = ["lib"]
|
16
|
+
gem.version = CommonJS::VERSION
|
17
|
+
end
|
data/lib/commonjs.rb
ADDED
metadata
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: commonjs
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Charles Lowell
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2011-09-09 00:00:00 -05:00
|
19
|
+
default_executable:
|
20
|
+
dependencies: []
|
21
|
+
|
22
|
+
description: Host CommonJS JavaScript environments in Ruby
|
23
|
+
email:
|
24
|
+
- cowboyd@thefrontside.net
|
25
|
+
executables: []
|
26
|
+
|
27
|
+
extensions: []
|
28
|
+
|
29
|
+
extra_rdoc_files: []
|
30
|
+
|
31
|
+
files:
|
32
|
+
- .gitignore
|
33
|
+
- Gemfile
|
34
|
+
- README.md
|
35
|
+
- Rakefile
|
36
|
+
- commonjs.gemspec
|
37
|
+
- lib/commonjs.rb
|
38
|
+
- lib/commonjs/version.rb
|
39
|
+
has_rdoc: true
|
40
|
+
homepage: http://github.com/cowboyd/commonjs
|
41
|
+
licenses: []
|
42
|
+
|
43
|
+
post_install_message:
|
44
|
+
rdoc_options: []
|
45
|
+
|
46
|
+
require_paths:
|
47
|
+
- lib
|
48
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
hash: 3
|
54
|
+
segments:
|
55
|
+
- 0
|
56
|
+
version: "0"
|
57
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
hash: 3
|
63
|
+
segments:
|
64
|
+
- 0
|
65
|
+
version: "0"
|
66
|
+
requirements: []
|
67
|
+
|
68
|
+
rubyforge_project:
|
69
|
+
rubygems_version: 1.6.2
|
70
|
+
signing_key:
|
71
|
+
specification_version: 3
|
72
|
+
summary: Provide access to your Ruby and Operating System runtime via the commonjs API
|
73
|
+
test_files: []
|
74
|
+
|