LayoutEditor 20180417
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/LayoutEditor.rb +32 -0
- metadata +48 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f6b430ba0ac61db63b0ce5dde322c622d24286d4
|
4
|
+
data.tar.gz: a70d56821cad3a9b65b37001be37e11ca0ce1bcb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fc333efdf1e14c4d177aebdbac7148c2ff645075c548d636f05ec9ea3ad849775cc55b7416920b050cd7fe650fa93e4b131b1359c47e229a58b1871070ea66ec
|
7
|
+
data.tar.gz: 7a373d883d9c75d9ebf83a6460889c2feccf942c545d2f4c5cb99dde1bc5f19b01ed38c2ec949c06842de60e546bcd1bbf74b71fb9bbd76341483899ec6814d6
|
data/lib/LayoutEditor.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
|
2
|
+
require 'rbconfig'
|
3
|
+
include RbConfig
|
4
|
+
|
5
|
+
case CONFIG['host_os']
|
6
|
+
when /mswin|windows/i
|
7
|
+
# Windows
|
8
|
+
dir="c:/Program Files (x86)/LayoutEditor/ruby"
|
9
|
+
when /linux|arch/i
|
10
|
+
# Linux
|
11
|
+
dir="/opt/layout/ruby"
|
12
|
+
when /sunos|solaris/i
|
13
|
+
# Solaris
|
14
|
+
when /darwin/i
|
15
|
+
#MAC OS X
|
16
|
+
dir="/Applications/layout.app/Contents"
|
17
|
+
else
|
18
|
+
# whatever
|
19
|
+
end
|
20
|
+
|
21
|
+
|
22
|
+
begin
|
23
|
+
# .. process
|
24
|
+
require dir+"/LayoutScript"
|
25
|
+
include LayoutScript
|
26
|
+
rescue
|
27
|
+
# .. handle error
|
28
|
+
puts "it seems that the LayoutEditor is not installed on your system"
|
29
|
+
puts "please download and install it from https://layouteditor.com/download.html"
|
30
|
+
ensure
|
31
|
+
|
32
|
+
end
|
metadata
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: LayoutEditor
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '20180417'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jürgen Thies
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-04-17 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: This package is a wrapper around [LayoutScript](https://layoutscript.com)
|
14
|
+
for Rudy. It searches the [LayoutEditor installtion](https://www.layouteditor.com)
|
15
|
+
on your system and imports the Ruby module for LayoutScript. To use it just add
|
16
|
+
'require "LayoutEditor"' to your ruby script and all feature describe in the [LayoutScript
|
17
|
+
manual](https://layouteditor.org) are available.
|
18
|
+
email: juergen.thies@juspertor.com
|
19
|
+
executables: []
|
20
|
+
extensions: []
|
21
|
+
extra_rdoc_files: []
|
22
|
+
files:
|
23
|
+
- lib/LayoutEditor.rb
|
24
|
+
homepage: https://layouteditor.com
|
25
|
+
licenses:
|
26
|
+
- MIT
|
27
|
+
metadata: {}
|
28
|
+
post_install_message:
|
29
|
+
rdoc_options: []
|
30
|
+
require_paths:
|
31
|
+
- lib
|
32
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '0'
|
37
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
requirements: []
|
43
|
+
rubyforge_project:
|
44
|
+
rubygems_version: 2.5.1
|
45
|
+
signing_key:
|
46
|
+
specification_version: 4
|
47
|
+
summary: Ruby wrapper for the LayoutEditor/LayoutScript
|
48
|
+
test_files: []
|