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 CHANGED
@@ -1,3 +1,6 @@
1
+ Version 0.2.3 (erik-s-chang)
2
+ * hopefully fix installation/build problems under OSX
3
+
1
4
  Version 0.2.2 (erik-s-chang)
2
5
  * fix handling of :iface for LWES::Emitter.new
3
6
 
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-hardcore --with-pic --disable-dependency-tracking)
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
- Dir.glob("#{inst}/lib/*") { |f| f =~ /\.l?a\z/ or FileUtils.rm_rf(f) }
51
- $LDFLAGS = "-L#{inst}/lib #{$LDFLAGS}"
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
@@ -1,6 +1,6 @@
1
1
  module LWES
2
- # version of our library, currently 0.2.2
3
- VERSION = "0.2.2"
2
+ # version of our library, currently 0.2.3
3
+ VERSION = "0.2.3"
4
4
 
5
5
  autoload :TypeDB, "lwes/type_db"
6
6
  autoload :Struct, "lwes/struct"
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.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.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: 2009-12-14 00:00:00 +00:00
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