rspactor 0.7.0.beta.2 → 0.7.0.beta.3
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/extconf.rb +18 -0
- data/ext/fsevent/fsevent_watch.c +1 -1
- data/lib/rspactor/version.rb +1 -1
- metadata +22 -8
- data/ext/fsevent/extconf.rb +0 -28
data/ext/extconf.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# Workaround to make Rubygems believe it builds a native gem
|
2
|
+
require 'mkmf'
|
3
|
+
create_makefile('none')
|
4
|
+
|
5
|
+
if `uname -s`.chomp == 'Darwin'
|
6
|
+
gem_root = File.expand_path(File.join('..'))
|
7
|
+
darwin_verion = `uname -r`.to_i
|
8
|
+
sdk_verion = { 9 => '10.5', 10 => '10.6', 11 => '10.7' }[darwin_verion]
|
9
|
+
|
10
|
+
raise "Darwin #{darwin_verion} is not supported" unless sdk_verion
|
11
|
+
|
12
|
+
# Compile the actual fsevent_watch binary
|
13
|
+
system("CFLAGS='-isysroot /Developer/SDKs/MacOSX#{sdk_verion}.sdk -mmacosx-version-min=#{sdk_verion}' /usr/bin/gcc -framework CoreServices -o '#{gem_root}/bin/fsevent_watch' fsevent/fsevent_watch.c")
|
14
|
+
|
15
|
+
unless File.executable?("#{gem_root}/bin/fsevent_watch")
|
16
|
+
raise "Compilation of fsevent_watch failed (see README)"
|
17
|
+
end
|
18
|
+
end
|
data/ext/fsevent/fsevent_watch.c
CHANGED
data/lib/rspactor/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspactor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 62196437
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
9
|
- 0
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 0.7.0.beta.
|
11
|
+
- 3
|
12
|
+
version: 0.7.0.beta.3
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Thibaud Guillaume-Gentil
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-07-
|
20
|
+
date: 2010-07-13 00:00:00 +02:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -71,8 +71,22 @@ dependencies:
|
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
prerelease: false
|
73
73
|
type: :runtime
|
74
|
-
name:
|
74
|
+
name: rb-inotify
|
75
75
|
version_requirements: &id004 !ruby/object:Gem::Requirement
|
76
|
+
none: false
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
hash: 3
|
81
|
+
segments:
|
82
|
+
- 0
|
83
|
+
version: "0"
|
84
|
+
requirement: *id004
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
prerelease: false
|
87
|
+
type: :runtime
|
88
|
+
name: libnotify
|
89
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
76
90
|
none: false
|
77
91
|
requirements:
|
78
92
|
- - ">="
|
@@ -83,14 +97,14 @@ dependencies:
|
|
83
97
|
- 1
|
84
98
|
- 3
|
85
99
|
version: 0.1.3
|
86
|
-
requirement: *
|
100
|
+
requirement: *id005
|
87
101
|
description: RSpactor is a command line tool to automatically run your changed specs (much like autotest)
|
88
102
|
email:
|
89
103
|
- thibaud@thibaud.me
|
90
104
|
executables:
|
91
105
|
- rspactor
|
92
106
|
extensions:
|
93
|
-
- ext/
|
107
|
+
- ext/extconf.rb
|
94
108
|
extra_rdoc_files: []
|
95
109
|
|
96
110
|
files:
|
@@ -109,7 +123,7 @@ files:
|
|
109
123
|
- lib/rspactor/ui.rb
|
110
124
|
- lib/rspactor/version.rb
|
111
125
|
- lib/rspactor.rb
|
112
|
-
- ext/
|
126
|
+
- ext/extconf.rb
|
113
127
|
- ext/fsevent/fsevent_watch.c
|
114
128
|
- LICENSE
|
115
129
|
- README.rdoc
|
data/ext/fsevent/extconf.rb
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
if `uname -s`.chomp == 'Darwin'
|
2
|
-
# Workaround to make Rubygems believe it builds a native gem
|
3
|
-
def emulate_extension_install(extension_name)
|
4
|
-
File.open('Makefile', 'w') { |f| f.write "all:\n\ninstall:\n\n" }
|
5
|
-
File.open('make', 'w') do |f|
|
6
|
-
f.write '#!/bin/sh'
|
7
|
-
f.chmod f.stat.mode | 0111
|
8
|
-
end
|
9
|
-
File.open(extension_name + '.so', 'w') {}
|
10
|
-
File.open(extension_name + '.dll', 'w') {}
|
11
|
-
File.open('nmake.bat', 'w') { |f| }
|
12
|
-
end
|
13
|
-
|
14
|
-
emulate_extension_install('fsevent')
|
15
|
-
|
16
|
-
gem_root = File.expand_path(File.join('..', '..'))
|
17
|
-
darwin_verion = `uname -r`.to_i
|
18
|
-
sdk_verion = { 9 => '10.5', 10 => '10.6', 11 => '10.7' }[darwin_verion]
|
19
|
-
|
20
|
-
raise "Darwin #{darwin_verion} is not supported" unless sdk_verion
|
21
|
-
|
22
|
-
# Compile the actual fsevent_watch binary
|
23
|
-
system("CFLAGS='-isysroot /Developer/SDKs/MacOSX#{sdk_verion}.sdk -mmacosx-version-min=#{sdk_verion}' /usr/bin/gcc -framework CoreServices -o '#{gem_root}/bin/fsevent_watch' fsevent_watch.c")
|
24
|
-
|
25
|
-
unless File.executable?("#{gem_root}/bin/fsevent_watch")
|
26
|
-
raise "Compilation of fsevent_watch failed (see README)"
|
27
|
-
end
|
28
|
-
end
|