cheri 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/examples/chat.rb +63 -0
  2. data/lib/cheri/awt.rb +1 -1
  3. data/lib/cheri/builder/awt/connecter.rb +1 -1
  4. data/lib/cheri/builder/awt/constants.rb +1 -1
  5. data/lib/cheri/builder/awt/main.rb +1 -1
  6. data/lib/cheri/builder/awt/types.rb +1 -1
  7. data/lib/cheri/builder/base.rb +1 -1
  8. data/lib/cheri/builder/config.rb +1 -1
  9. data/lib/cheri/builder/connecter.rb +1 -1
  10. data/lib/cheri/builder/context.rb +1 -1
  11. data/lib/cheri/builder/generator.rb +1 -1
  12. data/lib/cheri/builder/html/charsets.rb +1 -1
  13. data/lib/cheri/builder/html/common.rb +1 -1
  14. data/lib/cheri/builder/html/connecter.rb +1 -1
  15. data/lib/cheri/builder/html/element.rb +1 -1
  16. data/lib/cheri/builder/html/main.rb +1 -1
  17. data/lib/cheri/builder/html/types.rb +1 -1
  18. data/lib/cheri/builder/main.rb +1 -1
  19. data/lib/cheri/builder/markup.rb +1 -1
  20. data/lib/cheri/builder/swing/connecter.rb +33 -3
  21. data/lib/cheri/builder/swing/constants.rb +1 -1
  22. data/lib/cheri/builder/swing/main.rb +22 -1
  23. data/lib/cheri/builder/swing/types.rb +1 -1
  24. data/lib/cheri/builder/xml/charsets.rb +1 -1
  25. data/lib/cheri/builder/xml/common.rb +1 -1
  26. data/lib/cheri/builder/xml/connecter.rb +1 -1
  27. data/lib/cheri/builder/xml/element.rb +1 -1
  28. data/lib/cheri/builder/xml/main.rb +1 -1
  29. data/lib/cheri/builder/xml/types.rb +1 -1
  30. data/lib/cheri/builder.rb +1 -1
  31. data/lib/cheri/cheri.rb +2 -2
  32. data/lib/cheri/explorer/explorer.rb +1 -1
  33. data/lib/cheri/explorer.rb +1 -1
  34. data/lib/cheri/html.rb +1 -1
  35. data/lib/cheri/java/builder/main.rb +1 -1
  36. data/lib/cheri/java/builder/util.rb +1 -1
  37. data/lib/cheri/java/builder.rb +1 -1
  38. data/lib/cheri/java/java.rb +1 -1
  39. data/lib/cheri/java.rb +2 -1
  40. data/lib/cheri/jruby/explorer/common.rb +1 -1
  41. data/lib/cheri/jruby/explorer/dialogs.rb +1 -1
  42. data/lib/cheri/jruby/explorer/explorer.rb +1 -1
  43. data/lib/cheri/jruby/explorer/splash.rb +1 -1
  44. data/lib/cheri/jruby/explorer/viewer.rb +1 -1
  45. data/lib/cheri/jruby/explorer/viewers.rb +1 -1
  46. data/lib/cheri/jruby/explorer.rb +1 -1
  47. data/lib/cheri/jruby/jruby.rb +1 -1
  48. data/lib/cheri/jruby.rb +1 -1
  49. data/lib/cheri/swing.rb +1 -1
  50. data/lib/cheri/xml.rb +1 -1
  51. data/lib/cheri.jar +0 -0
  52. metadata +4 -2
data/examples/chat.rb ADDED
@@ -0,0 +1,63 @@
1
+ # note: intentionally reproducing layout of Profligacy example for comparison
2
+
3
+ require 'rubygems'
4
+ require 'cheri/swing'
5
+
6
+ class ChatApp
7
+ include Cheri::Swing
8
+ Enter = java.awt.event.KeyEvent::VK_ENTER
9
+ EventQueue = java.awt.EventQueue
10
+
11
+ def initialize
12
+ swing[:auto]
13
+ @frame = frame 'Cheri::Swing: grid_table (GridBagLayout) example' do |f|
14
+ size 800,600
15
+ box_layout f, :X_AXIS
16
+ empty_border 4,4,4,4
17
+ on_window_closing {@frame.dispose}
18
+ grid_table do
19
+ grid_row :insets=>[6,6,6,6] do
20
+ label('The chat:', :weightx=>0.7,:anchor=>:north) { font 'Dialog', :BOLD, 20 }
21
+ label('The people:', :wx=>0.3,:a=>:n) { font 'Dialog', :BOLD, 20 }
22
+ end
23
+ grid_row :i=>6, :wy=>0.01 do
24
+ scroll_pane :fill=>:both do
25
+ bevel_border :RAISED; minimum_size 200,100
26
+ @chat = text_area { text "[You]: Hello, you look familiar..."; editable false }
27
+ end
28
+ list ['Me','You'].to_java, :f=>:both do
29
+ bevel_border :LOWERED; minimum_size 100,100
30
+ end
31
+ end
32
+ grid_row { label "What you're saying:",:a=>:sw,:wy=>0 }
33
+ grid_row :wy=>0 do
34
+ @text = text_field(:a=>:w,:f=>:horizontal,:i=>[6,2]) {bevel_border :LOWERED
35
+ # send current text if enter is pressed
36
+ on_key_pressed {|e| send_later if e.key_code == Enter }
37
+ }
38
+ grid_table :a=>:se, :f=>:h do
39
+ defaults :i=>[6,2], :wx=>0.1
40
+ grid_row :f=>:h do
41
+ button('Send', :a=>:sw) {on_click { send_msg }}
42
+ button('Love', :a=>:s) {on_click { send_msg :You, 'Oh, baby!'}}
43
+ button('Quit', :a=>:se) {on_click{ @frame.dispose }}
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ @frame.visible = true
50
+ end
51
+
52
+ def send_msg(sender=:Me,text=nil)
53
+ @chat.text += "\n[#{sender}]: " + (text || @text.text)
54
+ @text.text = '' if sender == :Me
55
+ end
56
+
57
+ def send_later(*args)
58
+ # procs as Runnables not supported in JRuby 1.0.x (there's another way, won't show here)
59
+ EventQueue.invoke_later(proc {send_msg(*args)}) unless JRUBY_VERSION =~ /^1.0/
60
+ end
61
+ end
62
+
63
+ ChatApp.new
data/lib/cheri/awt.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -33,6 +33,7 @@ SwingConnecter = Cheri::Builder::TypeConnecter.new(Cheri::AWT::AWTConnecter) do
33
33
  Java6 = String === jver && jver >= '1.6'
34
34
  S = java.lang.String.new ''
35
35
  TreePath = javax.swing.tree.TreePath
36
+ GridBagConstraints = java.awt.GridBagConstraints
36
37
 
37
38
  type javax.swing.JComponent do
38
39
  connect javax.swing.border.Border, :setBorder
@@ -116,6 +117,7 @@ SwingConnecter = Cheri::Builder::TypeConnecter.new(Cheri::AWT::AWTConnecter) do
116
117
  end
117
118
 
118
119
  type javax.swing.text.JTextComponent do
120
+ connect javax.swing.border.Border, :setBorder
119
121
  connect java.lang.Object do |tc,obj,*r|
120
122
  tc.setText(obj.toString)
121
123
  end
@@ -136,8 +138,36 @@ SwingConnecter = Cheri::Builder::TypeConnecter.new(Cheri::AWT::AWTConnecter) do
136
138
  end
137
139
  end
138
140
  end
139
-
140
-
141
+
142
+ type org.cheri.swing.layout.GridTable do
143
+ connect java.awt.Component do |table,comp,sym,constraints|
144
+ if constraints && !constraints.empty?
145
+ if gbc = constraints[:constraints] && GridBagConstraints === gbc
146
+ table.add(comp,gbc)
147
+ else
148
+ table.add(comp,constraints)
149
+ end
150
+ else
151
+ table.add(comp)
152
+ end
153
+ end
154
+ connect org.cheri.swing.layout.GridRow do |table,row,sym,constraints|
155
+ row.default_constraints = constraints if constraints && !constraints.empty?
156
+ table.add_row row
157
+ end
158
+ end
159
+
160
+ type org.cheri.swing.layout.GridRow do
161
+ connect java.awt.Component do |row,comp,sym,constraints|
162
+ if constraints && !constraints.empty?
163
+ row.add(comp,constraints)
164
+ else
165
+ row.add(comp)
166
+ end
167
+ end
168
+ end
169
+
170
+
141
171
  end #SwingConnecter
142
172
 
143
173
  end #Swing
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -215,6 +215,25 @@ module StandardFactory
215
215
  end
216
216
  end #StandardFactory
217
217
 
218
+ module GridTableFactory
219
+ SwingLayout = org.cheri.swing.layout
220
+ @names = [:grid_table,:grid_row,:empty_cell]
221
+ def self.builder(ctx,sym,*args,&block)
222
+ if sym == :grid_table
223
+ ClassBuilder.new(ctx,sym,SwingLayout::GridTable,*args,&block)
224
+ elsif sym == :grid_row
225
+ ClassBuilder.new(ctx,sym,SwingLayout::GridRow,*args,&block)
226
+ elsif sym == :empty_cell
227
+ ClassBuilder.new(ctx,sym,SwingLayout::EmptyCell,*args,&block)
228
+ else
229
+ nil
230
+ end
231
+ end
232
+ def self.names
233
+ @names
234
+ end
235
+ end
236
+
218
237
  module BoxComponentFactory
219
238
  CJava = Cheri::Java
220
239
  X_AXIS = 0
@@ -330,6 +349,7 @@ end #DialogComponentFactory
330
349
 
331
350
  SwingFactory = Cheri::Builder::SuperFactory.new do |f|
332
351
  f << StandardFactory
352
+ f << GridTableFactory
333
353
  f << BoxComponentFactory
334
354
  f << Cheri::AWT::StandardFactory
335
355
  f << CheriYieldFactory
@@ -344,6 +364,7 @@ class SwingProxy < Cheri::AWT::AWTProxy
344
364
 
345
365
  impl(Types.names)
346
366
  impl(BoxComponentFactory.names)
367
+ impl(GridTableFactory.names)
347
368
 
348
369
  def initialize(ctx,*r)
349
370
  super
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
data/lib/cheri/builder.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
data/lib/cheri/cheri.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -29,7 +29,7 @@ module Cheri
29
29
  module VERSION #:nodoc:
30
30
  MAJOR = 0
31
31
  MINOR = 0
32
- TINY = 8
32
+ TINY = 9
33
33
  STRING = [MAJOR, MINOR, TINY].join('.').freeze
34
34
  end
35
35
  #:stopdoc:
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
data/lib/cheri/html.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
data/lib/cheri/java.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -22,5 +22,6 @@
22
22
  #++
23
23
  #
24
24
 
25
+ require 'cheri.jar'
25
26
  require 'cheri/jruby'
26
27
  require 'cheri/java/java'
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
data/lib/cheri/jruby.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
data/lib/cheri/swing.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
data/lib/cheri/xml.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
data/lib/cheri.jar ADDED
Binary file
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: cheri
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.8
7
- date: 2007-12-10 00:00:00 -08:00
6
+ version: 0.0.9
7
+ date: 2008-01-02 00:00:00 -08:00
8
8
  summary: Cheri Builder Platform
9
9
  require_paths:
10
10
  - lib
@@ -32,6 +32,7 @@ files:
32
32
  - Rakefile
33
33
  - README
34
34
  - MIT-LICENSE
35
+ - examples/chat.rb
35
36
  - examples/hello_world_1.rb
36
37
  - examples/table_1.rb
37
38
  - lib/cheri
@@ -122,6 +123,7 @@ files:
122
123
  - lib/cheri/jruby.rb
123
124
  - lib/cheri/swing.rb
124
125
  - lib/cheri/xml.rb
126
+ - lib/cheri.jar
125
127
  test_files: []
126
128
 
127
129
  rdoc_options: []