lwes 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +3 -0
- data/ext/lwes/extconf.rb +6 -4
- data/lib/lwes.rb +2 -2
- data/lwes.gemspec +2 -1
- data/test/test_helper.rb +5 -0
- metadata +7 -4
data/ChangeLog
CHANGED
data/ext/lwes/extconf.rb
CHANGED
@@ -37,7 +37,10 @@ unless have_library('lwes') && have_header('lwes.h')
|
|
37
37
|
FileUtils.rm_rf(dir)
|
38
38
|
system('tar', 'zxf', tgz) or abort "tar failed with #{$?}"
|
39
39
|
Dir.chdir(dir) do
|
40
|
-
args = %w(--disable-
|
40
|
+
args = %w(--disable-shared
|
41
|
+
--disable-hardcore
|
42
|
+
--with-pic
|
43
|
+
--disable-dependency-tracking)
|
41
44
|
system("./configure", "--prefix=#{inst}", *args) or
|
42
45
|
abort "configure failed with #{$?}"
|
43
46
|
system("make") or abort "make failed with #{$?}"
|
@@ -47,9 +50,8 @@ unless have_library('lwes') && have_header('lwes.h')
|
|
47
50
|
File.open("#{inst}/.ok", "wb") { }
|
48
51
|
end
|
49
52
|
$CFLAGS = "-I#{inst}/include/lwes-0 #{$CFLAGS}"
|
50
|
-
|
51
|
-
|
52
|
-
have_library('lwes') && have_header('lwes.h') or
|
53
|
+
$LIBS += " #{inst}/lib/liblwes.a"
|
54
|
+
have_header('lwes.h') or
|
53
55
|
abort "installation failed"
|
54
56
|
end
|
55
57
|
end
|
data/lib/lwes.rb
CHANGED
data/lwes.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{lwes}
|
3
|
-
s.version = "0.2.
|
3
|
+
s.version = "0.2.3"
|
4
4
|
s.date = Time.now
|
5
5
|
s.authors = ["Erik S. Chang", "Frank Maritato"]
|
6
6
|
s.email = %q{lwes-devel@lists.sourceforge.net}
|
@@ -42,4 +42,5 @@ test/unit/test_emitter.rb
|
|
42
42
|
test/unit/test_struct.rb
|
43
43
|
test/unit/test_type_db.rb
|
44
44
|
)
|
45
|
+
s.test_files = s.files.grep(%r{\Atest/unit/test_})
|
45
46
|
end
|
data/test/test_helper.rb
CHANGED
@@ -14,6 +14,11 @@ unless defined?(LISTENER_DEFAULTS)
|
|
14
14
|
}
|
15
15
|
end
|
16
16
|
|
17
|
+
private_bin = "ext/lwes/.inst/bin"
|
18
|
+
if test ?d, private_bin
|
19
|
+
ENV['PATH'] = "#{private_bin}:#{ENV['PATH']}"
|
20
|
+
end
|
21
|
+
|
17
22
|
def lwes_listener(&block)
|
18
23
|
cmd = "lwes-event-printing-listener" \
|
19
24
|
" -m #{@options[:address]}" \
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lwes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erik S. Chang
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date:
|
13
|
+
date: 2010-02-02 00:00:00 +00:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|
@@ -82,5 +82,8 @@ rubygems_version: 1.3.5
|
|
82
82
|
signing_key:
|
83
83
|
specification_version: 3
|
84
84
|
summary: Ruby API for the Light Weight Event System
|
85
|
-
test_files:
|
86
|
-
|
85
|
+
test_files:
|
86
|
+
- test/unit/test_emit_struct.rb
|
87
|
+
- test/unit/test_emitter.rb
|
88
|
+
- test/unit/test_struct.rb
|
89
|
+
- test/unit/test_type_db.rb
|