commonjs 0.2.3 → 0.2.4
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/commonjs.gemspec +1 -1
- data/lib/commonjs/module.rb +1 -1
- data/lib/commonjs/version.rb +1 -1
- metadata +8 -8
data/commonjs.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
|
|
6
6
|
gem.email = ["cowboyd@thefrontside.net"]
|
7
7
|
gem.description = "Host CommonJS JavaScript environments in Ruby"
|
8
8
|
gem.summary = "Provide access to your Ruby and Operating System runtime via the commonjs API"
|
9
|
-
gem.homepage = "http://github.com/cowboyd/commonjs"
|
9
|
+
gem.homepage = "http://github.com/cowboyd/commonjs.rb"
|
10
10
|
|
11
11
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
12
12
|
gem.files = `git ls-files`.split("\n")
|
data/lib/commonjs/module.rb
CHANGED
@@ -13,7 +13,7 @@ module CommonJS
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def require_function
|
16
|
-
@require_function ||= lambda do |this, module_id|
|
16
|
+
@require_function ||= lambda do |this, module_id = nil|
|
17
17
|
module_id ||= this #backwards compatibility with TRR < 0.10
|
18
18
|
@env.require(expand(module_id))
|
19
19
|
end
|
data/lib/commonjs/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: commonjs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-03-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: &
|
16
|
+
requirement: &2160660820 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2160660820
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec
|
27
|
-
requirement: &
|
27
|
+
requirement: &2160660140 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2160660140
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: therubyracer
|
38
|
-
requirement: &
|
38
|
+
requirement: &2160659560 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2160659560
|
47
47
|
description: Host CommonJS JavaScript environments in Ruby
|
48
48
|
email:
|
49
49
|
- cowboyd@thefrontside.net
|
@@ -70,7 +70,7 @@ files:
|
|
70
70
|
- spec/commonjs/modules_spec.rb
|
71
71
|
- spec/commonjs/path_spec.rb
|
72
72
|
- spec/spec_helper.rb
|
73
|
-
homepage: http://github.com/cowboyd/commonjs
|
73
|
+
homepage: http://github.com/cowboyd/commonjs.rb
|
74
74
|
licenses: []
|
75
75
|
post_install_message:
|
76
76
|
rdoc_options: []
|