mustang 0.2.0 → 0.2.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/ext/v8/extconf.rb +16 -15
- data/mustang.gemspec +1 -1
- data/spec/mustang/v8/object_spec.rb +2 -2
- metadata +3 -32
data/ext/v8/extconf.rb
CHANGED
@@ -5,14 +5,16 @@ def darwin?
|
|
5
5
|
RUBY_PLATFORM =~ /darwin/
|
6
6
|
end
|
7
7
|
|
8
|
+
def rubinius?
|
9
|
+
defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
|
10
|
+
end
|
11
|
+
|
8
12
|
def cpu_x64?
|
9
|
-
if
|
10
|
-
!!(RbConfig::MAKEFILE_CONFIG['
|
11
|
-
RbConfig::MAKEFILE_CONFIG['target_cpu'] == 'x86_64' ||
|
12
|
-
RbConfig::MAKEFILE_CONFIG['build_cpu'] == 'x86_64' ||
|
13
|
+
if rubinius?
|
14
|
+
!!(RbConfig::MAKEFILE_CONFIG['build_cpu'] == 'x86_64' ||
|
13
15
|
RbConfig::MAKEFILE_CONFIG['ARCH_FLAG'] =~ /x86_64/)
|
14
16
|
else
|
15
|
-
['
|
17
|
+
['foo'].pack('p').size == 8
|
16
18
|
end
|
17
19
|
end
|
18
20
|
|
@@ -27,16 +29,14 @@ def compile_vendor_v8!(dir)
|
|
27
29
|
flags = '-fPIC -fno-builtin-memcpy -shared'
|
28
30
|
|
29
31
|
Dir.chdir dir do
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
ENV['CCFLAGS'] = defaults
|
39
|
-
end
|
32
|
+
begin
|
33
|
+
make_sure_scons_installed!
|
34
|
+
defaults, ENV['CCFLAGS'] = ENV['CCFLAGS'], flags
|
35
|
+
build_cmd = "scons mode=release snapshot=off library=static arch=#{arch}"
|
36
|
+
puts build_cmd
|
37
|
+
system build_cmd
|
38
|
+
ensure
|
39
|
+
ENV['CCFLAGS'] = defaults
|
40
40
|
end
|
41
41
|
end
|
42
42
|
end
|
@@ -46,6 +46,7 @@ inc, lib = dir_config('v8', File.join(V8_DIR, 'include'), V8_DIR)
|
|
46
46
|
|
47
47
|
if V8_DIR == lib
|
48
48
|
compile_vendor_v8!(V8_DIR)
|
49
|
+
$LOCAL_LIBS << Dir[File.join(V8_DIR, "**/**/libv8.a")].first
|
49
50
|
end
|
50
51
|
|
51
52
|
find_library('v8', nil, lib)
|
data/mustang.gemspec
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "mustang"
|
5
5
|
s.summary = "Awesome V8 JavaScript engine embedded into the Ruby's shiny body"
|
6
|
-
s.version = "0.2.
|
6
|
+
s.version = "0.2.1"
|
7
7
|
s.authors = ["Chris Kowalik", "Cubox"]
|
8
8
|
s.description = "Ruby proxy library for Google V8 Javascript engine."
|
9
9
|
s.homepage = "http://github.com/nu7hatch/mustang"
|
@@ -53,11 +53,11 @@ describe Mustang::V8::Object do
|
|
53
53
|
let(:obj) { subject.new(:foo => 1, :bar => 2) }
|
54
54
|
|
55
55
|
it "returns list of keys belonging to an object" do
|
56
|
-
obj.keys.should
|
56
|
+
obj.keys.should =~ ['foo', 'bar']
|
57
57
|
end
|
58
58
|
|
59
59
|
it "is aliased with #properties" do
|
60
|
-
obj.properties.should
|
60
|
+
obj.properties.should =~ ['foo', 'bar']
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mustang
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 23
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
- 0
|
10
|
-
version: 0.2.0
|
5
|
+
version: 0.2.1
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Chris Kowalik
|
@@ -16,8 +11,7 @@ autorequire:
|
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
13
|
|
19
|
-
date: 2011-04-
|
20
|
-
default_executable:
|
14
|
+
date: 2011-04-07 00:00:00 Z
|
21
15
|
dependencies:
|
22
16
|
- !ruby/object:Gem::Dependency
|
23
17
|
name: ore-tasks
|
@@ -27,10 +21,6 @@ dependencies:
|
|
27
21
|
requirements:
|
28
22
|
- - ~>
|
29
23
|
- !ruby/object:Gem::Version
|
30
|
-
hash: 3
|
31
|
-
segments:
|
32
|
-
- 0
|
33
|
-
- 4
|
34
24
|
version: "0.4"
|
35
25
|
type: :development
|
36
26
|
version_requirements: *id001
|
@@ -42,10 +32,6 @@ dependencies:
|
|
42
32
|
requirements:
|
43
33
|
- - ~>
|
44
34
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 3
|
46
|
-
segments:
|
47
|
-
- 2
|
48
|
-
- 0
|
49
35
|
version: "2.0"
|
50
36
|
type: :development
|
51
37
|
version_requirements: *id002
|
@@ -57,10 +43,6 @@ dependencies:
|
|
57
43
|
requirements:
|
58
44
|
- - ~>
|
59
45
|
- !ruby/object:Gem::Version
|
60
|
-
hash: 25
|
61
|
-
segments:
|
62
|
-
- 0
|
63
|
-
- 9
|
64
46
|
version: "0.9"
|
65
47
|
type: :development
|
66
48
|
version_requirements: *id003
|
@@ -72,10 +54,6 @@ dependencies:
|
|
72
54
|
requirements:
|
73
55
|
- - ~>
|
74
56
|
- !ruby/object:Gem::Version
|
75
|
-
hash: 5
|
76
|
-
segments:
|
77
|
-
- 0
|
78
|
-
- 7
|
79
57
|
version: "0.7"
|
80
58
|
type: :development
|
81
59
|
version_requirements: *id004
|
@@ -1599,7 +1577,6 @@ files:
|
|
1599
1577
|
- vendor/v8/tools/visual_studio/v8_x64.vcproj
|
1600
1578
|
- vendor/v8/tools/visual_studio/x64.vsprops
|
1601
1579
|
- vendor/v8/tools/windows-tick-processor.bat
|
1602
|
-
has_rdoc: true
|
1603
1580
|
homepage: http://github.com/nu7hatch/mustang
|
1604
1581
|
licenses:
|
1605
1582
|
- MIT
|
@@ -1614,23 +1591,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1614
1591
|
requirements:
|
1615
1592
|
- - ">="
|
1616
1593
|
- !ruby/object:Gem::Version
|
1617
|
-
hash: 3
|
1618
|
-
segments:
|
1619
|
-
- 0
|
1620
1594
|
version: "0"
|
1621
1595
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1622
1596
|
none: false
|
1623
1597
|
requirements:
|
1624
1598
|
- - ">="
|
1625
1599
|
- !ruby/object:Gem::Version
|
1626
|
-
hash: 3
|
1627
|
-
segments:
|
1628
|
-
- 0
|
1629
1600
|
version: "0"
|
1630
1601
|
requirements: []
|
1631
1602
|
|
1632
1603
|
rubyforge_project:
|
1633
|
-
rubygems_version: 1.
|
1604
|
+
rubygems_version: 1.7.1
|
1634
1605
|
signing_key:
|
1635
1606
|
specification_version: 3
|
1636
1607
|
summary: Awesome V8 JavaScript engine embedded into the Ruby's shiny body
|