lwes 0.8.0 → 0.8.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/ChangeLog CHANGED
@@ -1,4 +1,7 @@
1
- Version 0.8.0pre1 (erik-s-chang)
1
+ Version 0.8.1 (erik-s-chang)
2
+ * fix broken optimization for large (non-sparse) LWES::Structs
3
+
4
+ Version 0.8.0 (erik-s-chang)
2
5
  * preliminary LWES::Listener support for Ruby 1.9 users
3
6
  * LWES::Event enhancements and cleanups
4
7
 
@@ -118,7 +118,6 @@ end
118
118
  def []=(key, value)
119
119
  __aset(key.kind_of?(Fixnum) ? key : AREF_MAP[key], value)
120
120
  end
121
- end
122
121
  EOS
123
122
  fast_methods = []
124
123
  event_def.each_with_index do |(fld,_), idx|
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{lwes}
3
- s.version = "0.8.0"
3
+ s.version = "0.8.1"
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}
@@ -0,0 +1,68 @@
1
+ MetaEventInfo
2
+ {
3
+ ip_addr SenderIP;
4
+ }
5
+
6
+ Monster
7
+ {
8
+ boolean x01;
9
+ boolean x02;
10
+ boolean x03;
11
+ boolean x04;
12
+ boolean x05;
13
+ boolean x06;
14
+ boolean x07;
15
+ boolean x08;
16
+ boolean x09;
17
+ boolean x10;
18
+ boolean x11;
19
+ boolean x12;
20
+ boolean x13;
21
+ boolean x14;
22
+ boolean x15;
23
+ boolean x16;
24
+ boolean x17;
25
+ boolean x18;
26
+ boolean x19;
27
+ boolean x20;
28
+ boolean x21;
29
+ boolean x22;
30
+ boolean x23;
31
+ boolean x24;
32
+ boolean x25;
33
+ boolean x26;
34
+ boolean x27;
35
+ boolean x28;
36
+ boolean x29;
37
+ boolean x30;
38
+ boolean x31;
39
+ boolean x32;
40
+ boolean x33;
41
+ boolean x34;
42
+ boolean x35;
43
+ boolean x36;
44
+ boolean x37;
45
+ boolean x38;
46
+ boolean x39;
47
+ boolean x40;
48
+ boolean x41;
49
+ boolean x42;
50
+ boolean x43;
51
+ boolean x44;
52
+ boolean x45;
53
+ boolean x46;
54
+ boolean x47;
55
+ boolean x48;
56
+ boolean x49;
57
+ boolean x50;
58
+ boolean x51;
59
+ boolean x52;
60
+ boolean x53;
61
+ boolean x54;
62
+ boolean x55;
63
+ boolean x56;
64
+ boolean x57;
65
+ boolean x58;
66
+ boolean x59;
67
+ boolean x60;
68
+ }
@@ -0,0 +1,20 @@
1
+ require "#{File.expand_path(File.dirname(__FILE__))}/../test_helper"
2
+ require "set"
3
+
4
+ class TestMonsterStruct < Test::Unit::TestCase
5
+ ESF_FILE = "#{File.dirname(__FILE__)}/test3.esf"
6
+
7
+ def test_new_with_type_db
8
+ type_db = LWES::TypeDB.new(ESF_FILE)
9
+ classes = type_db.create_classes!(:parent => nil)
10
+ members = classes[0].members
11
+ assert members.size > 50
12
+ assert_equal "Monster", classes[0]::NAME
13
+ classes = type_db.create_classes!(:parent => nil, :sparse => true)
14
+ assert_equal "Monster", classes[0]::NAME
15
+ sparse_members = Set.new(classes[0].new.methods)
16
+ members.each do |m|
17
+ assert sparse_members.include?(m)
18
+ end
19
+ end
20
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: lwes
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.8.0
5
+ version: 0.8.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Erik S. Chang
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-04-14 00:00:00 +00:00
14
+ date: 2011-04-15 00:00:00 +00:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
@@ -69,10 +69,12 @@ files:
69
69
  - test/unit/namespaced.esf
70
70
  - test/unit/test1.esf
71
71
  - test/unit/test2.esf
72
+ - test/unit/test3.esf
72
73
  - test/unit/test_emit_struct.rb
73
74
  - test/unit/test_emitter.rb
74
75
  - test/unit/test_event.rb
75
76
  - test/unit/test_listener.rb
77
+ - test/unit/test_monster_struct.rb
76
78
  - test/unit/test_struct.rb
77
79
  - test/unit/test_type_db.rb
78
80
  - test/unit/test_type_db_events.rb
@@ -110,6 +112,7 @@ test_files:
110
112
  - test/unit/test_emitter.rb
111
113
  - test/unit/test_event.rb
112
114
  - test/unit/test_listener.rb
115
+ - test/unit/test_monster_struct.rb
113
116
  - test/unit/test_struct.rb
114
117
  - test/unit/test_type_db.rb
115
118
  - test/unit/test_type_db_events.rb