ropenlaszlo 0.5 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/{CHANGES → CHANGES.rdoc} +16 -4
- data/{LICENSE → MIT-LICENSE} +1 -1
- data/{README → README.rdoc} +7 -6
- data/{TODO → TODO.rdoc} +0 -0
- data/lib/openlaszlo/compiler.rb +47 -46
- data/test/compiler_test.rb +15 -12
- data/test/tasks/test.swf +0 -0
- metadata +54 -48
- data/Manifest +0 -20
- data/examples/compile_hello.rb +0 -4
- data/examples/hello.lzx +0 -5
- data/install.rb +0 -0
- data/ropenlaszlo.gemspec +0 -53
data/{CHANGES → CHANGES.rdoc}
RENAMED
@@ -1,14 +1,26 @@
|
|
1
1
|
= Change Log
|
2
2
|
|
3
|
-
== Version 0.
|
4
|
-
*
|
3
|
+
== Version 0.6.3 (2009-03-23)
|
4
|
+
* unquote html entities in errors and warnings
|
5
|
+
|
6
|
+
== Version 0.6.2 (2009-03-23)
|
7
|
+
* return which compiler was used
|
8
|
+
|
9
|
+
== Version 0.6.1 (2009-03-23)
|
10
|
+
* rename command-line compiler output file
|
11
|
+
|
12
|
+
== Version 0.6 (2009-03-23)
|
13
|
+
* follow symbolic links
|
5
14
|
* reorganize directory structure
|
6
15
|
* new rake task file
|
7
|
-
* follow symbolic links
|
8
16
|
* fall back to cmd-line compiler if source file is not in web path
|
9
17
|
* raise error when lzc is not executable
|
10
18
|
* change default runtime to swf8
|
11
|
-
|
19
|
+
|
20
|
+
|
21
|
+
== Version 0.5 (2009-03-22)
|
22
|
+
* update for compatibility with OpenLaszlo 4.x
|
23
|
+
* move to github
|
12
24
|
|
13
25
|
|
14
26
|
== Version 0.4.1 (2006-01-25)
|
data/{LICENSE → MIT-LICENSE}
RENAMED
data/{README → README.rdoc}
RENAMED
@@ -15,7 +15,7 @@ then the following Ruby code can be used to create a file 'hello.swf' which can
|
|
15
15
|
require 'openlaszlo'
|
16
16
|
OpenLaszlo::compile 'hello.lzx' # creates hello.swf
|
17
17
|
|
18
|
-
You can turn this into a Rake task that will compile any Open<tt></tt>Laszlo source file:
|
18
|
+
You can turn this snippet into a Rake task that will compile any Open<tt></tt>Laszlo source file:
|
19
19
|
rule '.swf' => '.lzx' do |t|
|
20
20
|
puts "Compiling #{t.source} => #{t.name}" if verbose
|
21
21
|
OpenLaszlo::compile t.source, :output => t.name
|
@@ -37,10 +37,10 @@ The following includes such a task:
|
|
37
37
|
0:: Download and install the {OpenLaszlo SDK}[openlaszlo.org]
|
38
38
|
|
39
39
|
1: Install this gem
|
40
|
-
|
40
|
+
$ gem install osteele-ropenlaszlo -s http://gems.github.com
|
41
41
|
|
42
42
|
2:: Set your +OPENLASZLO_HOME+ environment variable to the directory that contains the {OpenLaszlo SDK}[openlaszlo.org]. If the following prints something, you've got it right:
|
43
|
-
|
43
|
+
grep Laszlo "$OPENLASZLO_HOME/README.txt"
|
44
44
|
|
45
45
|
3:: (Optional) Set your +OPENLASZLO_URL+ environment variable to the web location of the Open<tt></tt>Laszlo server; for example, <tt>http</tt><tt>://localhost:8080/lps-3.1</tt>. If you omit this step, the module will use the command line compiler, which is slower but is not limited to compiling files inside of +OPENLASZLO_HOME+.
|
46
46
|
|
@@ -67,6 +67,7 @@ steele@osteele.com
|
|
67
67
|
|
68
68
|
== License
|
69
69
|
|
70
|
-
ROpenLaszlo is copyright (c) 2006 Oliver Steele. It is
|
71
|
-
|
72
|
-
|
70
|
+
ROpenLaszlo is copyright (c) 2006 - 2009 by Oliver Steele. It is
|
71
|
+
open-source software, and may be redistributed under the terms of the
|
72
|
+
MIT license. The text of this licence is included in the ROpenLaszlo
|
73
|
+
distribution.
|
data/{TODO → TODO.rdoc}
RENAMED
File without changes
|
data/lib/openlaszlo/compiler.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
# License:: MIT License
|
1
|
+
require 'net/http'
|
2
|
+
require 'uri'
|
4
3
|
|
5
4
|
# == module OpenLaszlo
|
6
5
|
#
|
@@ -32,10 +31,12 @@ module OpenLaszlo
|
|
32
31
|
# files in the same directory as the Open<tt></tt>Laszlo SDK.
|
33
32
|
class CompileServer
|
34
33
|
# Options:
|
35
|
-
# * <tt>:openlaszlo_home</tt> - filesystem location of the Open<tt></tt>Laszlo SDK. Defaults to
|
34
|
+
# * <tt>:openlaszlo_home</tt> - filesystem location of the Open<tt></tt>Laszlo SDK. Defaults to ENV['OPENLASZLO_HOME']
|
36
35
|
# * <tt>:server_uri</tt> - the URI of the server. Defaults to ENV['OPENLASZLO_URL'] if this is specified, otherwise to 'http://localhost:8080/lps-dev'.
|
37
36
|
def initialize(options={})
|
38
37
|
@home = options[:home] || ENV['OPENLASZLO_HOME']
|
38
|
+
dirs = Dir[File.join(@home, 'Server', 'lps-*', 'WEB-INF')]
|
39
|
+
@home = File.dirname(dirs.first) if dirs.any?
|
39
40
|
@base_url = options[:server_uri] || ENV['OPENLASZLO_URL'] || 'http://localhost:8080/lps-dev'
|
40
41
|
end
|
41
42
|
|
@@ -47,40 +48,42 @@ module OpenLaszlo
|
|
47
48
|
# * <tt>:format</tt> - request type (default 'swf')
|
48
49
|
# See OpenLaszlo.compile for a description of +options+.
|
49
50
|
def compile(source_file, options={})
|
50
|
-
mtime = File.mtime
|
51
|
-
|
52
|
-
|
53
|
-
|
51
|
+
mtime = File.mtime(source_file)
|
52
|
+
runtime = options[:runtime] || 'swf8'
|
53
|
+
default_output = source_file.sub(/\.lzx/, '') + '.swf'
|
54
|
+
output = options[:output] || default_output
|
55
|
+
compile_object(source_file, output, options)
|
56
|
+
results = request_metadata_for(source_file, options)
|
54
57
|
raise "Race condition: #{source_file} was modified during compilation" if mtime != File.mtime(source_file)
|
55
|
-
results[:output] = output
|
56
58
|
raise CompilationError.new(results[:error]) if results[:error]
|
59
|
+
results[:output] = output
|
57
60
|
return results
|
58
61
|
end
|
59
62
|
|
60
63
|
private
|
61
64
|
def compile_object(source_file, object, options={})
|
62
65
|
options = {}.update(options).update(:output => object)
|
63
|
-
request
|
66
|
+
request(source_file, options)
|
64
67
|
end
|
65
|
-
|
68
|
+
|
66
69
|
def request_metadata_for(source_file, options={})
|
67
|
-
results = {}
|
68
70
|
options = {}.update(options).update(:format => 'canvas-xml', :output => nil)
|
69
|
-
|
71
|
+
results = {:compiler => self}
|
72
|
+
text = request(source_file, options)
|
73
|
+
entities = {'lt' => '<', 'gt' => '>', 'quot' => '"', 'amp' => '&'}
|
70
74
|
if text =~ %r{<warnings>(.*?)</warnings>}m
|
71
|
-
results[:warnings] = $1.scan(%r{<error>\s*(.*?)\s*</error>}m).
|
75
|
+
results[:warnings] = $1.scan(%r{<error>\s*(.*?)\s*</error>}m).
|
76
|
+
map { |w| w.first.gsub(/&(\w+);/) { |s| entities[$0] || s } }
|
72
77
|
elsif text !~ %r{<canvas>} && text =~ %r{<pre>Error:\s*(.*?)\s*</pre>}m
|
73
|
-
results[:error] = $1
|
78
|
+
results[:error] = $1.gsub(/&(\w+);/) { |s| entities[$0] || s }
|
74
79
|
end
|
75
80
|
return results
|
76
81
|
end
|
77
|
-
|
82
|
+
|
78
83
|
def request(source_file, options={})
|
79
84
|
output = options[:output]
|
80
|
-
require 'net/http'
|
81
|
-
require 'uri'
|
82
85
|
# assert that pathname is relative to LPS home:
|
83
|
-
absolute_path = File.expand_path
|
86
|
+
absolute_path = File.expand_path(source_file)
|
84
87
|
server_relative_path = nil
|
85
88
|
begin
|
86
89
|
# follow links
|
@@ -95,8 +98,8 @@ module OpenLaszlo
|
|
95
98
|
raise InvalidSourceLocation.new("#{absolute_path} isn't inside #{@home}") unless absolute_path.index(@home) == 0
|
96
99
|
server_relative_path = absolute_path[@home.length..-1]
|
97
100
|
# FIXME: this doesn't handle quoting; use recursive File.split instead
|
98
|
-
# FIXME:
|
99
|
-
server_relative_path.gsub(File::Separator, '/')
|
101
|
+
# FIXME: encode the url
|
102
|
+
server_relative_path.gsub!(File::Separator, '/')
|
100
103
|
end
|
101
104
|
options = {
|
102
105
|
:lzr => options[:runtime],
|
@@ -106,7 +109,7 @@ module OpenLaszlo
|
|
106
109
|
query = options.map { |k,v| "#{k}=#{v}" unless v.nil? }.compact.join('&')
|
107
110
|
url = "#{@base_url}#{server_relative_path}"
|
108
111
|
url += "?#{query}" unless query.empty?
|
109
|
-
Net::HTTP.get_response
|
112
|
+
Net::HTTP.get_response(URI.parse(url)) do |response|
|
110
113
|
case response
|
111
114
|
when Net::HTTPOK
|
112
115
|
if output
|
@@ -142,7 +145,16 @@ module OpenLaszlo
|
|
142
145
|
# * <tt>:openlaszlo_home</tt> - the home directory of the Open<tt></tt>Laszlo SDK.
|
143
146
|
# This defaults to ENV['OPENLASZLO_HOME'].
|
144
147
|
def initialize(options={})
|
145
|
-
@lzc = options[:compiler_script]
|
148
|
+
@lzc = options[:compiler_script]
|
149
|
+
unless @lzc
|
150
|
+
home = options[:openlaszlo_home] || ENV['OPENLASZLO_HOME']
|
151
|
+
raise ":compiler_script or :openlaszlo_home must be specified" unless home
|
152
|
+
search = bin_directories.map {|f| File.join(home, f, 'lzc')}
|
153
|
+
found = search.select {|f| File.exists? f}
|
154
|
+
raise "couldn't find bin/lzc in #{bin_directories.join(' or ')}" if found.empty?
|
155
|
+
@lzc = found.first
|
156
|
+
@lzc += '.bat' if windows?
|
157
|
+
end
|
146
158
|
end
|
147
159
|
|
148
160
|
def self.executable_path(options={})
|
@@ -161,15 +173,16 @@ module OpenLaszlo
|
|
161
173
|
#
|
162
174
|
# See OpenLaszlo.compile for a description of +options+.
|
163
175
|
def compile(source_file, options={})
|
176
|
+
runtime = options[:runtime] || 'swf8'
|
164
177
|
default_output = File.join(File.dirname(source_file),
|
165
178
|
File.basename(source_file, '.lzx') + '.swf')
|
166
179
|
output = options[:output] || default_output
|
167
|
-
raise "#{source_file} and #{output} do not have the same basename." unless File.basename(source_file, '.lzx') == File.basename(output, '.swf')
|
168
180
|
args = []
|
169
181
|
args << "--runtime=#{options[:runtime]}" if options[:runtime]
|
170
182
|
args << '--debug' if options[:debug]
|
171
183
|
args << '--profile' if options[:profile]
|
172
|
-
args << "--dir '#{File.dirname output}'" unless
|
184
|
+
args << "--dir '#{File.dirname output}'" unless
|
185
|
+
File.dirname(source_file) == File.dirname(output)
|
173
186
|
args << source_file
|
174
187
|
command = "\"#{@lzc}\" #{args.join(' ')}"
|
175
188
|
ENV['LPS_HOME'] ||= ENV['OPENLASZLO_HOME']
|
@@ -180,11 +193,12 @@ module OpenLaszlo
|
|
180
193
|
stdin, stdout, stderr = Open3.popen3(command)
|
181
194
|
errors = stdout.read
|
182
195
|
warnings = stderr.readlines
|
183
|
-
|
184
|
-
|
185
|
-
|
196
|
+
# OpenLaszlo >= 4.0
|
197
|
+
if warnings.first and warnings.first =~ /^Compiling:.* to (.+)/
|
198
|
+
real_output = $1
|
186
199
|
warnings.shift
|
187
|
-
|
200
|
+
FileUtils.mv(real_output, output) if
|
201
|
+
File.exists?(real_output) and real_output != output
|
188
202
|
end
|
189
203
|
rescue NotImplementedError
|
190
204
|
# Windows doesn't have popen
|
@@ -195,14 +209,14 @@ module OpenLaszlo
|
|
195
209
|
if errors =~ /^Compilation errors occurred:\n/
|
196
210
|
raise CompilationError.new($'.strip)
|
197
211
|
end
|
198
|
-
results = {:output => output, :warnings => warnings}
|
212
|
+
results = {:output => output, :warnings => warnings, :compiler => self}
|
199
213
|
return results
|
200
214
|
end
|
201
215
|
|
202
216
|
private
|
203
217
|
|
204
218
|
# Locations in which to look for the lzc script, relative to OPENLASZLO_HOME
|
205
|
-
def
|
219
|
+
def bin_directories
|
206
220
|
[# binary distro location
|
207
221
|
'bin',
|
208
222
|
# source distro location
|
@@ -210,7 +224,7 @@ module OpenLaszlo
|
|
210
224
|
]
|
211
225
|
end
|
212
226
|
|
213
|
-
def
|
227
|
+
def windows?
|
214
228
|
RUBY_PLATFORM =~ /win/ and not RUBY_PLATFORM =~ /darwin/
|
215
229
|
end
|
216
230
|
end
|
@@ -231,7 +245,7 @@ EOF
|
|
231
245
|
end
|
232
246
|
|
233
247
|
# Sets the default compiler for future invocations of OpenLaszlo.compile.
|
234
|
-
def self.compiler=
|
248
|
+
def self.compiler=(compiler)
|
235
249
|
@compiler = compiler
|
236
250
|
end
|
237
251
|
|
@@ -261,17 +275,4 @@ EOF
|
|
261
275
|
rescue InvalidSourceLocation
|
262
276
|
CommandLineCompiler.new.compile(source_file, options)
|
263
277
|
end
|
264
|
-
|
265
|
-
def self.make_html(source_file, options={}) #:nodoc:
|
266
|
-
raise 'not really supported, for now'
|
267
|
-
options = {
|
268
|
-
:format => 'html-object',
|
269
|
-
:output => File.basename(source_file, '.lzx')+'.html'}.update(options)
|
270
|
-
compiler.compile source_file, options
|
271
|
-
source_file = options[:output]
|
272
|
-
s = open(source_file).read
|
273
|
-
open(source_file, 'w') do |f|
|
274
|
-
f << s.gsub!(/\.lzx\?lzt=swf&/, '.lzx.swf?')
|
275
|
-
end
|
276
|
-
end
|
277
278
|
end
|
data/test/compiler_test.rb
CHANGED
@@ -18,21 +18,21 @@ module CompilerTestHelper
|
|
18
18
|
end
|
19
19
|
|
20
20
|
private
|
21
|
-
def testfile_pathname
|
22
|
-
File.expand_path
|
21
|
+
def testfile_pathname(file)
|
22
|
+
return File.expand_path(file, File.dirname(__FILE__))
|
23
23
|
end
|
24
24
|
|
25
|
-
def assert_same_file
|
25
|
+
def assert_same_file(a, b)
|
26
26
|
assert_equal File.expand_path(a), File.expand_path(b)
|
27
27
|
end
|
28
28
|
|
29
|
-
def compile
|
30
|
-
file = testfile_pathname
|
29
|
+
def compile(file, output=nil, options={})
|
30
|
+
file = testfile_pathname(file)
|
31
31
|
output ||= File.join(File.dirname(file), File.basename(file, '.lzx')+'.swf')
|
32
32
|
rm_f output
|
33
33
|
raise "Unable to remove output file: #{output}" if File.exists?(output)
|
34
34
|
begin
|
35
|
-
result = OpenLaszlo::compile
|
35
|
+
result = OpenLaszlo::compile(file, *options)
|
36
36
|
assert_same_file output, result[:output]
|
37
37
|
assert File.exists?(output), "#{output} does not exist"
|
38
38
|
return result
|
@@ -51,14 +51,14 @@ module CompilerTestHelper
|
|
51
51
|
def test_compilation_warning
|
52
52
|
result = compile 'compilation-warning.lzx'
|
53
53
|
assert_instance_of Array, result[:warnings]
|
54
|
-
assert_equal
|
54
|
+
assert_equal 1, result[:warnings].length
|
55
55
|
assert_match /^compilation-warning.lzx:1:36/, result[:warnings].first
|
56
56
|
end
|
57
57
|
|
58
58
|
def test_compilation_error
|
59
59
|
ex = (compile 'compilation-error.lzx' rescue $!)
|
60
60
|
assert_instance_of OpenLaszlo::CompilationError, ex
|
61
|
-
assert_match /^compilation-error.lzx:3:1: XML document structures must start and end within the same entity
|
61
|
+
assert_match /^compilation-error.lzx:3:1: XML document structures must start and end within the same entity\./, ex.message
|
62
62
|
end
|
63
63
|
end
|
64
64
|
end
|
@@ -68,7 +68,10 @@ class CompileServerTest < Test::Unit::TestCase
|
|
68
68
|
|
69
69
|
def setup
|
70
70
|
OpenLaszlo::compiler = nil
|
71
|
-
|
71
|
+
home = ENV['OPENLASZLO_HOME']
|
72
|
+
dirs = Dir[File.join(home, 'Server', 'lps-*', 'WEB-INF')]
|
73
|
+
home = File.dirname(dirs.first) if dirs.any?
|
74
|
+
@test_dir = File.join(home, 'tmp/ropenlaszlo-tests')
|
72
75
|
mkdir_p @test_dir
|
73
76
|
end
|
74
77
|
|
@@ -80,13 +83,13 @@ class CompileServerTest < Test::Unit::TestCase
|
|
80
83
|
private
|
81
84
|
alias :saved_compile :compile
|
82
85
|
|
83
|
-
def compile
|
86
|
+
def compile(file, output=nil, options={})
|
84
87
|
raise "unimplemented" if output
|
85
88
|
file = testfile_pathname file
|
86
|
-
server_local_file = File.join
|
89
|
+
server_local_file = File.join(@test_dir, File.basename(file))
|
87
90
|
cp file, server_local_file
|
88
91
|
begin
|
89
|
-
saved_compile
|
92
|
+
saved_compile(server_local_file, output, options)
|
90
93
|
ensure
|
91
94
|
rm_f server_local_file
|
92
95
|
end
|
data/test/tasks/test.swf
ADDED
Binary file
|
metadata
CHANGED
@@ -1,74 +1,80 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.4
|
3
|
-
specification_version: 1
|
4
2
|
name: ropenlaszlo
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version:
|
7
|
-
date: 2008-04-01 00:00:00 -04:00
|
8
|
-
summary: Ruby interface to OpenLaszlo.
|
9
|
-
require_paths:
|
10
|
-
- lib
|
11
|
-
email: steele@osteele.com
|
12
|
-
homepage: http://ropenlaszlo.rubyforge.org
|
13
|
-
rubyforge_project: ropenlaszlo
|
14
|
-
description: ROpenLaszlo is an interface to the OpenLaszlo compiler.
|
15
|
-
autorequire:
|
16
|
-
default_executable:
|
17
|
-
bindir: bin
|
18
|
-
has_rdoc: true
|
19
|
-
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">"
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 0.0.0
|
24
|
-
version:
|
4
|
+
version: 0.6.3
|
25
5
|
platform: ruby
|
26
|
-
signing_key:
|
27
|
-
cert_chain:
|
28
|
-
post_install_message:
|
29
6
|
authors:
|
30
7
|
- Oliver Steele
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-03-23 00:00:00 -04:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: ROpenLaszlo is an interface to the OpenLaszlo compiler.
|
17
|
+
email: steele@osteele.com
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README.rdoc
|
24
|
+
- MIT-LICENSE
|
25
|
+
- CHANGES.rdoc
|
26
|
+
- TODO.rdoc
|
31
27
|
files:
|
32
|
-
-
|
33
|
-
- examples/compile_hello.rb
|
34
|
-
- examples/hello.lzx
|
35
|
-
- install.rb
|
28
|
+
- lib/openlaszlo
|
36
29
|
- lib/openlaszlo/applet.rb
|
37
30
|
- lib/openlaszlo/compiler.rb
|
38
31
|
- lib/openlaszlo.rb
|
39
32
|
- lib/ropenlaszlo.rb
|
33
|
+
- lib/tasks
|
40
34
|
- lib/tasks/openlaszlo.rake
|
41
|
-
- LICENSE
|
42
|
-
- Manifest
|
43
|
-
- README
|
44
35
|
- test/compilation-error.lzx
|
45
36
|
- test/compilation-warning.lzx
|
46
37
|
- test/compiler_test.rb
|
38
|
+
- test/tasks
|
47
39
|
- test/tasks/Rakefile
|
48
40
|
- test/tasks/test.lzx
|
41
|
+
- test/tasks/test.swf
|
49
42
|
- test/test.lzx
|
50
43
|
- test/test_utils.rb
|
51
|
-
-
|
52
|
-
-
|
53
|
-
|
54
|
-
-
|
44
|
+
- README.rdoc
|
45
|
+
- MIT-LICENSE
|
46
|
+
- CHANGES.rdoc
|
47
|
+
- TODO.rdoc
|
48
|
+
has_rdoc: true
|
49
|
+
homepage: http://github.com/osteele/ropenlaszlo
|
50
|
+
post_install_message:
|
55
51
|
rdoc_options:
|
56
52
|
- --title
|
57
|
-
- "ROpenLaszlo: Ruby interface to OpenLaszlo"
|
58
|
-
- --main
|
59
|
-
- README
|
53
|
+
- "ROpenLaszlo: Ruby interface to the OpenLaszlo compiler"
|
60
54
|
- --exclude
|
61
55
|
- test/.*
|
62
|
-
|
63
|
-
-
|
64
|
-
|
65
|
-
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
56
|
+
- --inline-source
|
57
|
+
- --charset=UTF-8
|
58
|
+
require_paths:
|
59
|
+
- lib
|
60
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: "0"
|
65
|
+
version:
|
66
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: "0"
|
71
|
+
version:
|
71
72
|
requirements: []
|
72
73
|
|
73
|
-
|
74
|
+
rubyforge_project: ropenlaszlo
|
75
|
+
rubygems_version: 1.3.1
|
76
|
+
signing_key:
|
77
|
+
specification_version: 2
|
78
|
+
summary: Ruby interface to the OpenLaszlo compiler.
|
79
|
+
test_files: []
|
74
80
|
|
data/Manifest
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
CHANGES
|
2
|
-
examples/compile_hello.rb
|
3
|
-
examples/hello.lzx
|
4
|
-
install.rb
|
5
|
-
lib/openlaszlo/applet.rb
|
6
|
-
lib/openlaszlo/compiler.rb
|
7
|
-
lib/openlaszlo.rb
|
8
|
-
lib/ropenlaszlo.rb
|
9
|
-
lib/tasks/openlaszlo.rake
|
10
|
-
LICENSE
|
11
|
-
Manifest
|
12
|
-
README
|
13
|
-
test/compilation-error.lzx
|
14
|
-
test/compilation-warning.lzx
|
15
|
-
test/compiler_test.rb
|
16
|
-
test/tasks/Rakefile
|
17
|
-
test/tasks/test.lzx
|
18
|
-
test/test.lzx
|
19
|
-
test/test_utils.rb
|
20
|
-
TODO
|
data/examples/compile_hello.rb
DELETED
data/examples/hello.lzx
DELETED
data/install.rb
DELETED
File without changes
|
data/ropenlaszlo.gemspec
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
|
2
|
-
# Gem::Specification for Ropenlaszlo-0.5
|
3
|
-
# Originally generated by Echoe
|
4
|
-
|
5
|
-
Gem::Specification.new do |s|
|
6
|
-
s.name = %q{ropenlaszlo}
|
7
|
-
s.version = "0.5"
|
8
|
-
s.date = %q{2008-04-01}
|
9
|
-
s.summary = %q{Ruby interface to OpenLaszlo.}
|
10
|
-
s.email = %q{steele@osteele.com}
|
11
|
-
s.homepage = %q{http://ropenlaszlo.rubyforge.org}
|
12
|
-
s.rubyforge_project = %q{ropenlaszlo}
|
13
|
-
s.description = %q{ROpenLaszlo is an interface to the OpenLaszlo compiler.}
|
14
|
-
s.has_rdoc = true
|
15
|
-
s.authors = ["Oliver Steele"]
|
16
|
-
s.files = ["CHANGES", "examples/compile_hello.rb", "examples/hello.lzx", "install.rb", "lib/openlaszlo/applet.rb", "lib/openlaszlo/compiler.rb", "lib/openlaszlo.rb", "lib/ropenlaszlo.rb", "lib/tasks/openlaszlo.rake", "LICENSE", "Manifest", "README", "test/compilation-error.lzx", "test/compilation-warning.lzx", "test/compiler_test.rb", "test/tasks/Rakefile", "test/tasks/test.lzx", "test/test.lzx", "test/test_utils.rb", "TODO", "ropenlaszlo.gemspec"]
|
17
|
-
s.test_files = ["test/compiler_test.rb"]
|
18
|
-
s.rdoc_options = ["--title", "ROpenLaszlo: Ruby interface to OpenLaszlo", "--main", "README", "--exclude", "test/.*"]
|
19
|
-
s.extra_rdoc_files = ["README", "CHANGES", "TODO", "LICENSE"]
|
20
|
-
end
|
21
|
-
|
22
|
-
|
23
|
-
# # Original Rakefile source (requires the Echoe gem):
|
24
|
-
#
|
25
|
-
# require 'rubygems'
|
26
|
-
# require 'echoe'
|
27
|
-
#
|
28
|
-
# PKG_VERSION = '0.5'
|
29
|
-
#
|
30
|
-
# Echoe.new('ropenlaszlo', PKG_VERSION) do |p|
|
31
|
-
# p.summary = "Ruby interface to OpenLaszlo."
|
32
|
-
# p.url = 'http://ropenlaszlo.rubyforge.org'
|
33
|
-
# p.description = <<-EOF
|
34
|
-
# ROpenLaszlo is an interface to the OpenLaszlo compiler.
|
35
|
-
# EOF
|
36
|
-
# p.author = 'Oliver Steele'
|
37
|
-
# p.email = 'steele@osteele.com'
|
38
|
-
# p.ignore_pattern = /^(.git|.*\.swf|.*#.*#)$/
|
39
|
-
# p.test_pattern = 'test/*_test.rb'
|
40
|
-
# p.rdoc_pattern = /^(lib|bin|tasks|ext)|^README|^CHANGES|^TODO|^LICENSE$/
|
41
|
-
# p.eval = proc do |s|
|
42
|
-
# s.rdoc_options <<
|
43
|
-
# '--title' << "ROpenLaszlo: #{s.summary.sub(/.$/,'')}" <<
|
44
|
-
# '--main' << 'README' <<
|
45
|
-
# '--exclude' << 'test/.*'
|
46
|
-
# s.extra_rdoc_files = ['README', 'CHANGES', 'TODO', 'LICENSE']
|
47
|
-
# end
|
48
|
-
# end
|
49
|
-
#
|
50
|
-
# desc "Really a replacement for echoe's 'install', which bombs on my machine"
|
51
|
-
# task :reinstall => [:clean, :package, :uninstall] do
|
52
|
-
# system "sudo gem install pkg/*.gem"
|
53
|
-
# end
|