commonjs 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'http://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in commonjs.gemspec
4
+ gemspec
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
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
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
@@ -0,0 +1,5 @@
1
+ require "commonjs/version"
2
+
3
+ module CommonJS
4
+
5
+ end
@@ -0,0 +1,3 @@
1
+ module CommonJS
2
+ VERSION = "0.0.1"
3
+ end
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
+