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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b3743b37bac10c5911626b5ab751bbf20d23f2d
4
- data.tar.gz: 7001b026ad97ac0641caf91e868104ba91f339bd
3
+ metadata.gz: 8eb458e8ff4e0da4f69919b7e7837347a6608d3f
4
+ data.tar.gz: 9df869d3ec1e86d66fd1f92e5d8c7ee31350a428
5
5
  SHA512:
6
- metadata.gz: '0903017358d8df91289f6be4d29425fce627d9649f18972aaecbc5131ea9f16f66d94607439aa4df7d25b2800e5d553de4fc1a4d1926fe7c440303cf9c1781ac'
7
- data.tar.gz: beca271c9dcc75f3e8a46650a78f2e740ebdd0c7e1202db11ee6c5d47013092921edb113ac8041f49d11e92fbd6e0286f1e6201bab3f66f6c5e6fe8dd6d08d39
6
+ metadata.gz: 4c47d1b4d5d592d903fcc7c45acf764546a451de83e8a91e7ed4fbf5fcf7a758e5e61658cbb88a68c7d86a8c387febaa8ffcb8daa2b26759be366eca259fffe3
7
+ data.tar.gz: bb732ff5001492268194a7224f40703b83ee0eae8b7db2c3a2c8f6727fb986b35937f4a7af43c924e4ca037a9f588041137b24416e0022b4aaad49b813f08055
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "riddl"
3
- s.version = "0.99.252"
3
+ s.version = "0.99.253"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "restful interface description and declaration language: tools and client/server libs"
@@ -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."
@@ -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.252
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
@@ -1 +0,0 @@
1
- tools/riddlcheck-1_0
@@ -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."
@@ -1 +0,0 @@
1
- tools/riddlprocess-1_0
@@ -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