riddl 0.99.252 → 0.99.253
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.
- checksums.yaml +4 -4
- data/riddl.gemspec +1 -1
- data/tools/riddlcheck +36 -0
- data/tools/riddlprocess +51 -0
- metadata +1 -3
- data/tools/riddlcheck +0 -1
- data/tools/riddlcheck-1_0 +0 -36
- data/tools/riddlprocess +0 -1
- data/tools/riddlprocess-1_0 +0 -51
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8eb458e8ff4e0da4f69919b7e7837347a6608d3f
|
|
4
|
+
data.tar.gz: 9df869d3ec1e86d66fd1f92e5d8c7ee31350a428
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c47d1b4d5d592d903fcc7c45acf764546a451de83e8a91e7ed4fbf5fcf7a758e5e61658cbb88a68c7d86a8c387febaa8ffcb8daa2b26759be366eca259fffe3
|
|
7
|
+
data.tar.gz: bb732ff5001492268194a7224f40703b83ee0eae8b7db2c3a2c8f6727fb986b35937f4a7af43c924e4ca037a9f588041137b24416e0022b4aaad49b813f08055
|
data/riddl.gemspec
CHANGED
data/tools/riddlcheck
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#!/usr/bin/ruby
|
|
2
|
+
curpath = __FILE__
|
|
3
|
+
while ::File::symlink?(curpath)
|
|
4
|
+
curpath = ::File::dirname(curpath) + '/' + ::File::readlink(curpath)
|
|
5
|
+
end
|
|
6
|
+
require 'rubygems'
|
|
7
|
+
require ::File::dirname(curpath) + "/../lib/ruby/riddl/wrapper"
|
|
8
|
+
require 'optparse'
|
|
9
|
+
|
|
10
|
+
ARGV.options { |opt|
|
|
11
|
+
opt.summary_indent = ' ' * 2
|
|
12
|
+
opt.banner = "Usage:\n#{opt.summary_indent}#{File.basename($0)} [options] [FILENAME]\n"
|
|
13
|
+
opt.on("Options:")
|
|
14
|
+
opt.on("--help", "-h", "This text") { puts opt; exit }
|
|
15
|
+
opt.on("Filename is either a description or a declaration.")
|
|
16
|
+
opt.parse!
|
|
17
|
+
}
|
|
18
|
+
if ARGV.length == 0 || !File.exists?(ARGV[0])
|
|
19
|
+
puts ARGV.options
|
|
20
|
+
exit
|
|
21
|
+
end
|
|
22
|
+
fname = ARGV[0]
|
|
23
|
+
|
|
24
|
+
riddl = Riddl::Wrapper::new(fname)
|
|
25
|
+
|
|
26
|
+
if riddl.description?
|
|
27
|
+
puts 'RIDDL description found.'
|
|
28
|
+
elsif riddl.declaration?
|
|
29
|
+
puts 'RIDDL declaration found.'
|
|
30
|
+
else
|
|
31
|
+
puts 'Neither a RIDDL description, nor a RIDDL declaration.'
|
|
32
|
+
exit
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
messages = riddl.validate!
|
|
36
|
+
puts messages ? "RIDDL looks valid." : "RIDDL not valid."
|
data/tools/riddlprocess
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/usr/bin/ruby
|
|
2
|
+
curpath = __FILE__
|
|
3
|
+
while ::File::symlink?(curpath)
|
|
4
|
+
curpath = ::File::dirname(curpath) + '/' + ::File::readlink(curpath)
|
|
5
|
+
end
|
|
6
|
+
require 'rubygems'
|
|
7
|
+
require ::File::dirname(curpath) + "/../lib/ruby/riddl/wrapper"
|
|
8
|
+
require 'optparse'
|
|
9
|
+
require 'pp'
|
|
10
|
+
|
|
11
|
+
dowhat = nil
|
|
12
|
+
ARGV.options { |opt|
|
|
13
|
+
opt.summary_indent = ' ' * 2
|
|
14
|
+
opt.banner = "Usage:\n#{opt.summary_indent}#{File.basename($0)} [options] [FILENAME]\n"
|
|
15
|
+
opt.on("Options:")
|
|
16
|
+
opt.on("--help", "-h", "This text.") { puts opt; exit }
|
|
17
|
+
opt.on("--vtl", "-l", "For each tile visualize the resource tree and the layers.") { dowhat = "layers" }
|
|
18
|
+
opt.on("--vtc", "-c", "For each tile visualize the resource tree and the resulting compositions.") { dowhat = "compositions" }
|
|
19
|
+
opt.on("--vf", "-f", "Visualize the resulting facade.") { dowhat = "facade" }
|
|
20
|
+
opt.on("--description", "-d", "Return the XML description for the facade.") { dowhat = "description" }
|
|
21
|
+
opt.on("Filename has to be a declaration.")
|
|
22
|
+
opt.parse!
|
|
23
|
+
}
|
|
24
|
+
if ARGV.length == 0 || !File.exists?(ARGV[0]) || dowhat.nil?
|
|
25
|
+
puts ARGV.options
|
|
26
|
+
exit
|
|
27
|
+
end
|
|
28
|
+
fname = ARGV[0]
|
|
29
|
+
|
|
30
|
+
riddl = Riddl::Wrapper.new(fname)
|
|
31
|
+
|
|
32
|
+
unless riddl.declaration?
|
|
33
|
+
puts 'Not a RIDDL declaration.'
|
|
34
|
+
exit
|
|
35
|
+
end
|
|
36
|
+
unless riddl.validate!
|
|
37
|
+
puts "Does not conform to specification."
|
|
38
|
+
exit
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
d = riddl.declaration
|
|
42
|
+
case dowhat
|
|
43
|
+
when 'layers'
|
|
44
|
+
d.visualize_tiles_and_layers
|
|
45
|
+
when 'compositions'
|
|
46
|
+
d.visualize_tiles_and_compositions
|
|
47
|
+
when 'facade'
|
|
48
|
+
d.visualize_facade
|
|
49
|
+
when 'description'
|
|
50
|
+
puts d.description_xml
|
|
51
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: riddl
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.99.
|
|
4
|
+
version: 0.99.253
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Juergen 'eTM' Mangler
|
|
@@ -507,9 +507,7 @@ files:
|
|
|
507
507
|
- test/tc_websocket.rb
|
|
508
508
|
- tools/flash-policy-server.rb
|
|
509
509
|
- tools/riddlcheck
|
|
510
|
-
- tools/riddlcheck-1_0
|
|
511
510
|
- tools/riddlprocess
|
|
512
|
-
- tools/riddlprocess-1_0
|
|
513
511
|
homepage: http://www.wst.univie.ac.at/communities/riddl/
|
|
514
512
|
licenses:
|
|
515
513
|
- LGPL-3.0
|
data/tools/riddlcheck
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tools/riddlcheck-1_0
|
data/tools/riddlcheck-1_0
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/ruby
|
|
2
|
-
curpath = __FILE__
|
|
3
|
-
while ::File::symlink?(curpath)
|
|
4
|
-
curpath = ::File::dirname(curpath) + '/' + ::File::readlink(curpath)
|
|
5
|
-
end
|
|
6
|
-
require 'rubygems'
|
|
7
|
-
require ::File::dirname(curpath) + "/../lib/ruby/riddl/wrapper"
|
|
8
|
-
require 'optparse'
|
|
9
|
-
|
|
10
|
-
ARGV.options { |opt|
|
|
11
|
-
opt.summary_indent = ' ' * 2
|
|
12
|
-
opt.banner = "Usage:\n#{opt.summary_indent}#{File.basename($0)} [options] [FILENAME]\n"
|
|
13
|
-
opt.on("Options:")
|
|
14
|
-
opt.on("--help", "-h", "This text") { puts opt; exit }
|
|
15
|
-
opt.on("Filename is either a description or a declaration.")
|
|
16
|
-
opt.parse!
|
|
17
|
-
}
|
|
18
|
-
if ARGV.length == 0 || !File.exists?(ARGV[0])
|
|
19
|
-
puts ARGV.options
|
|
20
|
-
exit
|
|
21
|
-
end
|
|
22
|
-
fname = ARGV[0]
|
|
23
|
-
|
|
24
|
-
riddl = Riddl::Wrapper::new(fname)
|
|
25
|
-
|
|
26
|
-
if riddl.description?
|
|
27
|
-
puts 'RIDDL description found.'
|
|
28
|
-
elsif riddl.declaration?
|
|
29
|
-
puts 'RIDDL declaration found.'
|
|
30
|
-
else
|
|
31
|
-
puts 'Neither a RIDDL description, nor a RIDDL declaration.'
|
|
32
|
-
exit
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
messages = riddl.validate!
|
|
36
|
-
puts messages ? "RIDDL looks valid." : "RIDDL not valid."
|
data/tools/riddlprocess
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tools/riddlprocess-1_0
|
data/tools/riddlprocess-1_0
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/ruby
|
|
2
|
-
curpath = __FILE__
|
|
3
|
-
while ::File::symlink?(curpath)
|
|
4
|
-
curpath = ::File::dirname(curpath) + '/' + ::File::readlink(curpath)
|
|
5
|
-
end
|
|
6
|
-
require 'rubygems'
|
|
7
|
-
require ::File::dirname(curpath) + "/../lib/ruby/riddl/wrapper"
|
|
8
|
-
require 'optparse'
|
|
9
|
-
require 'pp'
|
|
10
|
-
|
|
11
|
-
dowhat = nil
|
|
12
|
-
ARGV.options { |opt|
|
|
13
|
-
opt.summary_indent = ' ' * 2
|
|
14
|
-
opt.banner = "Usage:\n#{opt.summary_indent}#{File.basename($0)} [options] [FILENAME]\n"
|
|
15
|
-
opt.on("Options:")
|
|
16
|
-
opt.on("--help", "-h", "This text.") { puts opt; exit }
|
|
17
|
-
opt.on("--vtl", "-l", "For each tile visualize the resource tree and the layers.") { dowhat = "layers" }
|
|
18
|
-
opt.on("--vtc", "-c", "For each tile visualize the resource tree and the resulting compositions.") { dowhat = "compositions" }
|
|
19
|
-
opt.on("--vf", "-f", "Visualize the resulting facade.") { dowhat = "facade" }
|
|
20
|
-
opt.on("--description", "-d", "Return the XML description for the facade.") { dowhat = "description" }
|
|
21
|
-
opt.on("Filename has to be a declaration.")
|
|
22
|
-
opt.parse!
|
|
23
|
-
}
|
|
24
|
-
if ARGV.length == 0 || !File.exists?(ARGV[0]) || dowhat.nil?
|
|
25
|
-
puts ARGV.options
|
|
26
|
-
exit
|
|
27
|
-
end
|
|
28
|
-
fname = ARGV[0]
|
|
29
|
-
|
|
30
|
-
riddl = Riddl::Wrapper.new(fname)
|
|
31
|
-
|
|
32
|
-
unless riddl.declaration?
|
|
33
|
-
puts 'Not a RIDDL declaration.'
|
|
34
|
-
exit
|
|
35
|
-
end
|
|
36
|
-
unless riddl.validate!
|
|
37
|
-
puts "Does not conform to specification."
|
|
38
|
-
exit
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
d = riddl.declaration
|
|
42
|
-
case dowhat
|
|
43
|
-
when 'layers'
|
|
44
|
-
d.visualize_tiles_and_layers
|
|
45
|
-
when 'compositions'
|
|
46
|
-
d.visualize_tiles_and_compositions
|
|
47
|
-
when 'facade'
|
|
48
|
-
d.visualize_facade
|
|
49
|
-
when 'description'
|
|
50
|
-
puts d.description_xml
|
|
51
|
-
end
|