microstation 0.4.1 → 0.8.3
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 +7 -0
- data/.autotest +23 -23
- data/.rspec +2 -2
- data/Gemfile +28 -10
- data/History.txt +6 -6
- data/LICENSE.adoc +22 -0
- data/Manifest.txt +81 -60
- data/README.adoc +131 -0
- data/Rakefile +71 -30
- data/bin/dgn2pdf +36 -37
- data/bin/dgn_template +107 -0
- data/bin/microstation +231 -0
- data/bin/pw_print +35 -0
- data/cad_files/drawing_faatitle_in_non_default_model.dgn +0 -0
- data/cad_files/drawing_no_block.dgn +0 -0
- data/cad_files/drawing_with_3_block.dgn +0 -0
- data/cad_files/drawing_with_block.dgn +0 -0
- data/cad_files/seed2d.dgn +0 -0
- data/cad_files/test.dgn +0 -0
- data/lib/microstation.rb +252 -88
- data/lib/microstation/app.rb +781 -286
- data/lib/microstation/cad_input_queue.rb +100 -25
- data/lib/microstation/cell.rb +191 -0
- data/lib/microstation/changer.rb +70 -0
- data/lib/microstation/configuration.rb +193 -57
- data/lib/microstation/criteria_creation_t.rb +23 -0
- data/lib/microstation/dir.rb +252 -252
- data/lib/microstation/directory.rb +46 -0
- data/lib/microstation/drawing.rb +690 -189
- data/lib/microstation/element.rb +311 -0
- data/lib/microstation/enumerator.rb +32 -29
- data/lib/microstation/errors.rb +17 -0
- data/lib/microstation/event_handler.rb +28 -0
- data/lib/microstation/ext/pathname.rb +23 -25
- data/lib/microstation/ext/win32ole.rb +7 -0
- data/lib/microstation/extensions/faa.rb +124 -0
- data/lib/microstation/file_tests.rb +68 -0
- data/lib/microstation/functions.rb +60 -0
- data/lib/microstation/graphics.rb +35 -0
- data/lib/microstation/line.rb +19 -0
- data/lib/microstation/model.rb +45 -0
- data/lib/microstation/model_trait.rb +189 -0
- data/lib/microstation/ole_cad_input_message.rb +101 -0
- data/lib/microstation/ole_helper.rb +152 -0
- data/lib/microstation/pdf_support.rb +40 -40
- data/lib/microstation/point3d.rb +71 -0
- data/lib/microstation/primitive_command_interface.rb +66 -0
- data/lib/microstation/properties.rb +61 -57
- data/lib/microstation/property_handler.rb +48 -0
- data/lib/microstation/scan/color.rb +38 -38
- data/lib/microstation/scan/criteria.rb +89 -85
- data/lib/microstation/scan/klass.rb +43 -43
- data/lib/microstation/scan/level.rb +38 -38
- data/lib/microstation/scan/line_style.rb +45 -45
- data/lib/microstation/scan/line_weight.rb +33 -33
- data/lib/microstation/scan/range.rb +19 -0
- data/lib/microstation/scan/scan_trait.rb +51 -0
- data/lib/microstation/scan/subtype.rb +40 -40
- data/lib/microstation/scan/type.rb +134 -109
- data/lib/microstation/scan_trait.rb +62 -0
- data/lib/microstation/scanner.rb +24 -24
- data/lib/microstation/tag.rb +87 -58
- data/lib/microstation/tag_set.rb +385 -280
- data/lib/microstation/tag_set_trait.rb +51 -0
- data/lib/microstation/tagged_element.rb +105 -0
- data/lib/microstation/template.rb +90 -84
- data/lib/microstation/template_info.rb +172 -0
- data/lib/microstation/template_runner.rb +65 -0
- data/lib/microstation/text.rb +79 -54
- data/lib/microstation/text_node.rb +124 -74
- data/lib/microstation/ts/attribute.rb +140 -139
- data/lib/microstation/ts/instance.rb +146 -112
- data/lib/microstation/ts/tagset_trait.rb +49 -0
- data/lib/microstation/types.rb +91 -91
- data/lib/microstation/version.rb +5 -0
- data/lib/microstation/wrap.rb +28 -214
- data/plot/pdf-bw.plt +164 -164
- data/plot/pdf.plt +163 -163
- data/plot/png.plt +383 -383
- data/plot/tiff.plt +384 -384
- data/plot/wmbw.tbl +324 -66
- data/plot/wmcolor.tbl +62 -62
- metadata +301 -86
- data/.gemtest +0 -0
- data/README.txt +0 -75
- data/lib/microstation/attributes.rb +0 -35
- data/lib/microstation/extensions/hash.rb +0 -27
- data/spec/app_spec.rb +0 -267
- data/spec/configuration_spec.rb +0 -122
- data/spec/drawing_spec.rb +0 -247
- data/spec/drawings/new_drawing.dgn +0 -0
- data/spec/drawings/test.dgn +0 -0
- data/spec/drawings/test1.dgn +0 -0
- data/spec/drawings/testfile.pdf +0 -0
- data/spec/enumerator_spec.rb +0 -60
- data/spec/microstation_spec.rb +0 -36
- data/spec/scanner_spec.rb +0 -155
- data/spec/spec_app.rb +0 -11
- data/spec/spec_helper.rb +0 -31
- data/spec/tag_set_spec.rb +0 -123
- data/spec/text_node_spec.rb +0 -92
- data/spec/text_spec.rb +0 -62
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 6cca38a310ee39f8557bfcdef2653c8ddd7aa71500d35f26a4d42beecd2a67b3
|
|
4
|
+
data.tar.gz: 422e4761645e7f090668768bb924c06fd1e1408c7f3ef3676f4e065b979bd648
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 596e5f21984f6398fab508602a72a6f0a944a00839488254c429805a7216d6970daad21a8787e19411f772a09475f505ffb84edd81db928fa97bcdeecce1a138
|
|
7
|
+
data.tar.gz: 443971dc34318bf02c939450c63f57451973db5d0eddd42ba4a7ee136a9db887b10245c3a8f7f18ba3c61149b69b8315a1d79eeb4130fe66a4105ef0a4c814a7
|
data/.autotest
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
# -*- ruby -*-
|
|
2
|
-
|
|
3
|
-
require 'autotest/restart'
|
|
4
|
-
|
|
5
|
-
# Autotest.add_hook :initialize do |at|
|
|
6
|
-
# at.extra_files << "../some/external/dependency.rb"
|
|
7
|
-
#
|
|
8
|
-
# at.libs << ":../some/external"
|
|
9
|
-
#
|
|
10
|
-
# at.add_exception 'vendor'
|
|
11
|
-
#
|
|
12
|
-
# at.add_mapping(/dependency.rb/) do |f, _|
|
|
13
|
-
# at.files_matching(/test_.*rb$/)
|
|
14
|
-
# end
|
|
15
|
-
#
|
|
16
|
-
# %w(TestA TestB).each do |klass|
|
|
17
|
-
# at.extra_class_map[klass] = "test/test_misc.rb"
|
|
18
|
-
# end
|
|
19
|
-
# end
|
|
20
|
-
|
|
21
|
-
# Autotest.add_hook :run_command do |at|
|
|
22
|
-
# system "rake build"
|
|
23
|
-
# end
|
|
1
|
+
# -*- ruby -*-
|
|
2
|
+
|
|
3
|
+
require 'autotest/restart'
|
|
4
|
+
|
|
5
|
+
# Autotest.add_hook :initialize do |at|
|
|
6
|
+
# at.extra_files << "../some/external/dependency.rb"
|
|
7
|
+
#
|
|
8
|
+
# at.libs << ":../some/external"
|
|
9
|
+
#
|
|
10
|
+
# at.add_exception 'vendor'
|
|
11
|
+
#
|
|
12
|
+
# at.add_mapping(/dependency.rb/) do |f, _|
|
|
13
|
+
# at.files_matching(/test_.*rb$/)
|
|
14
|
+
# end
|
|
15
|
+
#
|
|
16
|
+
# %w(TestA TestB).each do |klass|
|
|
17
|
+
# at.extra_class_map[klass] = "test/test_misc.rb"
|
|
18
|
+
# end
|
|
19
|
+
# end
|
|
20
|
+
|
|
21
|
+
# Autotest.add_hook :run_command do |at|
|
|
22
|
+
# system "rake build"
|
|
23
|
+
# end
|
data/.rspec
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
--color
|
|
2
|
-
--format progress
|
|
1
|
+
--color
|
|
2
|
+
--format progress
|
data/Gemfile
CHANGED
|
@@ -1,17 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
# -*- ruby -*-
|
|
2
4
|
|
|
3
5
|
# DO NOT EDIT THIS FILE. Instead, edit Rakefile, and run `rake bundler:gemfile`.
|
|
4
6
|
|
|
5
|
-
source
|
|
6
|
-
|
|
7
|
-
gem "methadone", ">=0.0.0"
|
|
8
|
-
gem "liquid", ">0.0.0"
|
|
9
|
-
gem "virtus", ">0.0.0"
|
|
7
|
+
source 'https://rubygems.org/'
|
|
10
8
|
|
|
11
|
-
gem
|
|
12
|
-
gem
|
|
13
|
-
gem
|
|
14
|
-
gem
|
|
15
|
-
gem "hoe", "~>3.5", :group => [:development, :test]
|
|
9
|
+
gem 'dry-monads', '>0.0.0'
|
|
10
|
+
gem 'gli', '>0.0.0'
|
|
11
|
+
gem 'liquid', '>0.0.0'
|
|
12
|
+
gem 'methadone', '>=0.0.0'
|
|
16
13
|
|
|
14
|
+
group :development, :test do
|
|
15
|
+
gem 'aruba'
|
|
16
|
+
gem 'guard'
|
|
17
|
+
gem 'guard-minitest'
|
|
18
|
+
gem 'guard-yard'
|
|
19
|
+
gem 'hoe'
|
|
20
|
+
gem 'hoe-bundler'
|
|
21
|
+
gem 'hoe-yard'
|
|
22
|
+
gem 'minitest'
|
|
23
|
+
gem 'minitest-focus'
|
|
24
|
+
gem 'minitest-hooks'
|
|
25
|
+
gem 'notiffany'
|
|
26
|
+
gem 'pry'
|
|
27
|
+
gem 'pry-byebug'
|
|
28
|
+
gem 'rb-notifu'
|
|
29
|
+
gem 'rb-readline'
|
|
30
|
+
gem 'solargraph'
|
|
31
|
+
gem 'wdm'
|
|
32
|
+
gem 'win32console'
|
|
33
|
+
gem 'yard'
|
|
34
|
+
end
|
|
17
35
|
# vim: syntax=ruby
|
data/History.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
=== 1.0.0 / 2012-01-03
|
|
2
|
-
|
|
3
|
-
* 1 major enhancement
|
|
4
|
-
|
|
5
|
-
* Birthday!
|
|
6
|
-
|
|
1
|
+
=== 1.0.0 / 2012-01-03
|
|
2
|
+
|
|
3
|
+
* 1 major enhancement
|
|
4
|
+
|
|
5
|
+
* Birthday!
|
|
6
|
+
|
data/LICENSE.adoc
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.The MIT License
|
|
2
|
+
....
|
|
3
|
+
Copyright (C) 2012-2016 Dominic Sisneros and the Microstation-Ruby project.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
22
|
+
....
|
data/Manifest.txt
CHANGED
|
@@ -1,60 +1,81 @@
|
|
|
1
|
-
.autotest
|
|
2
|
-
.rspec
|
|
3
|
-
Gemfile
|
|
4
|
-
History.txt
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
lib/microstation
|
|
20
|
-
lib/microstation/
|
|
21
|
-
lib/microstation/
|
|
22
|
-
lib/microstation/
|
|
23
|
-
lib/microstation/
|
|
24
|
-
lib/microstation/
|
|
25
|
-
lib/microstation/
|
|
26
|
-
lib/microstation/
|
|
27
|
-
lib/microstation/
|
|
28
|
-
lib/microstation/
|
|
29
|
-
lib/microstation/
|
|
30
|
-
lib/microstation/
|
|
31
|
-
lib/microstation/
|
|
32
|
-
lib/microstation/
|
|
33
|
-
lib/microstation/
|
|
34
|
-
lib/microstation/
|
|
35
|
-
lib/microstation/
|
|
36
|
-
lib/microstation/
|
|
37
|
-
lib/microstation/
|
|
38
|
-
lib/microstation/
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
1
|
+
.autotest
|
|
2
|
+
.rspec
|
|
3
|
+
Gemfile
|
|
4
|
+
History.txt
|
|
5
|
+
LICENSE.adoc
|
|
6
|
+
Manifest.txt
|
|
7
|
+
README.adoc
|
|
8
|
+
Rakefile
|
|
9
|
+
bin/dgn2pdf
|
|
10
|
+
bin/microstation
|
|
11
|
+
bin/dgn_template
|
|
12
|
+
bin/pw_print
|
|
13
|
+
cad_files/drawing_faatitle_in_non_default_model.dgn
|
|
14
|
+
cad_files/drawing_no_block.dgn
|
|
15
|
+
cad_files/drawing_with_3_block.dgn
|
|
16
|
+
cad_files/drawing_with_block.dgn
|
|
17
|
+
cad_files/seed2d.dgn
|
|
18
|
+
cad_files/test.dgn
|
|
19
|
+
lib/microstation.rb
|
|
20
|
+
lib/microstation/app.rb
|
|
21
|
+
lib/microstation/cad_input_queue.rb
|
|
22
|
+
lib/microstation/cell.rb
|
|
23
|
+
lib/microstation/changer.rb
|
|
24
|
+
lib/microstation/configuration.rb
|
|
25
|
+
lib/microstation/criteria_creation_t.rb
|
|
26
|
+
lib/microstation/dir.rb
|
|
27
|
+
lib/microstation/directory.rb
|
|
28
|
+
lib/microstation/drawing.rb
|
|
29
|
+
lib/microstation/element.rb
|
|
30
|
+
lib/microstation/enumerator.rb
|
|
31
|
+
lib/microstation/errors.rb
|
|
32
|
+
lib/microstation/event_handler.rb
|
|
33
|
+
lib/microstation/ext/pathname.rb
|
|
34
|
+
lib/microstation/ext/win32ole.rb
|
|
35
|
+
lib/microstation/extensions/faa.rb
|
|
36
|
+
lib/microstation/file_tests.rb
|
|
37
|
+
lib/microstation/functions.rb
|
|
38
|
+
lib/microstation/graphics.rb
|
|
39
|
+
lib/microstation/line.rb
|
|
40
|
+
lib/microstation/model.rb
|
|
41
|
+
lib/microstation/model_trait.rb
|
|
42
|
+
lib/microstation/ole_cad_input_message.rb
|
|
43
|
+
lib/microstation/ole_helper.rb
|
|
44
|
+
lib/microstation/pdf_support.rb
|
|
45
|
+
lib/microstation/point3d.rb
|
|
46
|
+
lib/microstation/primitive_command_interface.rb
|
|
47
|
+
lib/microstation/properties.rb
|
|
48
|
+
lib/microstation/property_handler.rb
|
|
49
|
+
lib/microstation/scan/color.rb
|
|
50
|
+
lib/microstation/scan/criteria.rb
|
|
51
|
+
lib/microstation/scan/klass.rb
|
|
52
|
+
lib/microstation/scan/level.rb
|
|
53
|
+
lib/microstation/scan/line_style.rb
|
|
54
|
+
lib/microstation/scan/line_weight.rb
|
|
55
|
+
lib/microstation/scan/range.rb
|
|
56
|
+
lib/microstation/scan/scan_trait.rb
|
|
57
|
+
lib/microstation/scan/subtype.rb
|
|
58
|
+
lib/microstation/scan/type.rb
|
|
59
|
+
lib/microstation/scan_trait.rb
|
|
60
|
+
lib/microstation/scanner.rb
|
|
61
|
+
lib/microstation/tag.rb
|
|
62
|
+
lib/microstation/tag_set.rb
|
|
63
|
+
lib/microstation/tag_set_trait.rb
|
|
64
|
+
lib/microstation/tagged_element.rb
|
|
65
|
+
lib/microstation/template.rb
|
|
66
|
+
lib/microstation/template_info.rb
|
|
67
|
+
lib/microstation/template_runner.rb
|
|
68
|
+
lib/microstation/text.rb
|
|
69
|
+
lib/microstation/text_node.rb
|
|
70
|
+
lib/microstation/ts/attribute.rb
|
|
71
|
+
lib/microstation/ts/instance.rb
|
|
72
|
+
lib/microstation/ts/tagset_trait.rb
|
|
73
|
+
lib/microstation/types.rb
|
|
74
|
+
lib/microstation/version.rb
|
|
75
|
+
lib/microstation/wrap.rb
|
|
76
|
+
plot/pdf-bw.plt
|
|
77
|
+
plot/pdf.plt
|
|
78
|
+
plot/png.plt
|
|
79
|
+
plot/tiff.plt
|
|
80
|
+
plot/wmbw.tbl
|
|
81
|
+
plot/wmcolor.tbl
|
data/README.adoc
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
= microstation
|
|
2
|
+
Dominic Sisneros <https://github.com/dsisnero[@dsisnero]
|
|
3
|
+
//settings
|
|
4
|
+
:page-layout: base
|
|
5
|
+
:idprefix:
|
|
6
|
+
:idseparator: -
|
|
7
|
+
:source-language: ruby
|
|
8
|
+
:language: {source-language}
|
|
9
|
+
// Uris
|
|
10
|
+
:uri-org: https://github.com/dsisnero
|
|
11
|
+
:uri-repo: {uri-org}/microstation
|
|
12
|
+
:uri-issues: {uri-repo}/issues
|
|
13
|
+
:uri-contributors: {uri-repo}/graphs/contributors
|
|
14
|
+
:uri-changelog: {uri-rel-file-base}CHANGELOG.adoc
|
|
15
|
+
:uri-rel-file-base: {uri-repo}/blob/master/
|
|
16
|
+
:uri-rel-tree-base: {uri-repo}/tree/master/
|
|
17
|
+
:uri-contribute: {uri-rel-file-base}CONTRIBUTING.adoc
|
|
18
|
+
:uri-license: {uri-rel-file-base}LICENSE.adoc
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
== DESCRIPTION:
|
|
23
|
+
|
|
24
|
+
this is a gem that wraps Bentley Microstation using the WIN32OLE
|
|
25
|
+
library.
|
|
26
|
+
|
|
27
|
+
== Requirements
|
|
28
|
+
|
|
29
|
+
* Microstation Installed
|
|
30
|
+
* MRI
|
|
31
|
+
|
|
32
|
+
== Installation
|
|
33
|
+
|
|
34
|
+
Microstation can be installed using (a) the `gem install` command, (b) Bundler
|
|
35
|
+
|
|
36
|
+
=== (a) gem install
|
|
37
|
+
|
|
38
|
+
Open a terminal and type
|
|
39
|
+
$ gem install microstation
|
|
40
|
+
|
|
41
|
+
.Upgrading your installation
|
|
42
|
+
[TIP]
|
|
43
|
+
====
|
|
44
|
+
If you have an earlier version of microstation installed you can update it using:
|
|
45
|
+
|
|
46
|
+
$ gem update microstation
|
|
47
|
+
|
|
48
|
+
If you install a new version of the gem using `gem install` instead of
|
|
49
|
+
gem update, you'll have multiple versions installed. If that's the
|
|
50
|
+
case, use the following gem command to remove the old versions:
|
|
51
|
+
|
|
52
|
+
$ gem cleanup microstation
|
|
53
|
+
====
|
|
54
|
+
=== (b) Bundler
|
|
55
|
+
|
|
56
|
+
. Create a Gemfile in the root folder of your project (or the current directory)
|
|
57
|
+
. Add the `asciidoctor` gem to your Gemfile as follows:
|
|
58
|
+
+
|
|
59
|
+
[source]
|
|
60
|
+
----
|
|
61
|
+
source 'https://rubygems.org'
|
|
62
|
+
gem 'microstation'
|
|
63
|
+
# or specify the version explicitly
|
|
64
|
+
# gem 'microstation', '0.0.5'
|
|
65
|
+
----
|
|
66
|
+
|
|
67
|
+
. Save the Gemfile
|
|
68
|
+
. Open a terminal and install the gem using:
|
|
69
|
+
|
|
70
|
+
$ bundle
|
|
71
|
+
|
|
72
|
+
To upgrade the gem, specify the new version in the Gemfile and run `bundle` again.
|
|
73
|
+
Using `bundle update` is *not* recommended as it will also update other gems, which may not be the desired result.
|
|
74
|
+
|
|
75
|
+
== Usage
|
|
76
|
+
|
|
77
|
+
[source]
|
|
78
|
+
====
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
text_in_drawing = []
|
|
82
|
+
Microstation.run do |app|
|
|
83
|
+
sc = app.create_scanner do
|
|
84
|
+
include_color(3)
|
|
85
|
+
include_level(3)
|
|
86
|
+
end
|
|
87
|
+
app.open_drawing('./test.dgn') do |drawing|
|
|
88
|
+
drawing.scan_text do |text|
|
|
89
|
+
text.reverse! if text =~ /Reverse/ # things that modify thetext_in_drawing
|
|
90
|
+
puts text.to_s
|
|
91
|
+
end
|
|
92
|
+
drawing.scan_model( sc) do |ele|
|
|
93
|
+
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
drawing.save_as_pdf
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
====
|
|
102
|
+
|
|
103
|
+
== Getting Help
|
|
104
|
+
|
|
105
|
+
The Asciidoctor project is developed to help you easily write and publish your content.
|
|
106
|
+
But we can't do that without your feedback!
|
|
107
|
+
We encourage you to ask questions and discuss any aspects of the project on the discussion list, Twitter or IRC.
|
|
108
|
+
|
|
109
|
+
Mailing list:: {uri-discuss}
|
|
110
|
+
#Twitter (Chat):: #asciidoctor hashtag
|
|
111
|
+
#Gitter (Chat):: image:https://badges.gitter.im/Join%20In.svg[Gitter, link=https://gitter.im/asciidoctor/asciidoctor]
|
|
112
|
+
#IRC (Chat):: {uri-irc}[#asciidoctor] on FreeNode IRC
|
|
113
|
+
|
|
114
|
+
ifdef::env-github[]
|
|
115
|
+
Further information and documentation about Asciidoctor can be found on the project's website.
|
|
116
|
+
|
|
117
|
+
{uri-project}/[Home] | {uri-news}[News] | {uri-docs}[Docs]
|
|
118
|
+
endif::[]
|
|
119
|
+
|
|
120
|
+
The project's source code, issue tracker, and sub-projects are on github
|
|
121
|
+
|
|
122
|
+
Source repository (git):: {uri-repo}
|
|
123
|
+
Issue tracker:: {uri-issues}
|
|
124
|
+
Microstation organization on GitHub:: {uri-org}
|
|
125
|
+
|
|
126
|
+
== Copyright and Licensing
|
|
127
|
+
|
|
128
|
+
Copyright (C) 2012-2016 Dominic Sisneros and the Microstation-Ruby Project.
|
|
129
|
+
Free use of this software is granted under the terms of the MIT License.
|
|
130
|
+
|
|
131
|
+
See the {uri-license}[LICENSE] file for details.
|
data/Rakefile
CHANGED
|
@@ -1,30 +1,71 @@
|
|
|
1
|
-
# -*- ruby -*-
|
|
2
|
-
|
|
3
|
-
require 'rubygems'
|
|
4
|
-
require 'rake/clean'
|
|
5
|
-
require '
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
require '
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Hoe
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
#
|
|
1
|
+
# -*- ruby -*-
|
|
2
|
+
|
|
3
|
+
require 'rubygems'
|
|
4
|
+
require 'rake/clean'
|
|
5
|
+
require 'rake/testtask'
|
|
6
|
+
require 'hoe'
|
|
7
|
+
require 'hoe/minitest'
|
|
8
|
+
require 'minitest'
|
|
9
|
+
#require 'hoe/git'
|
|
10
|
+
|
|
11
|
+
class Hoe
|
|
12
|
+
def intuit_values(input)
|
|
13
|
+
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
#require 'rake/testtask'
|
|
18
|
+
|
|
19
|
+
CLEAN.include("**/#*.*#")
|
|
20
|
+
Hoe.plugin :bundler
|
|
21
|
+
Hoe.plugin :minitest
|
|
22
|
+
Hoe.plugin :git
|
|
23
|
+
Hoe.plugin :yard
|
|
24
|
+
# Hoe.plugin :rubyforge
|
|
25
|
+
Hoe.spec 'microstation' do
|
|
26
|
+
self.summary = 'A ruby gem to control and automate Bentley Microstation using win32ole'
|
|
27
|
+
self.description = 'Wrapping of microstation using win32ole to automate and control from ruby'
|
|
28
|
+
developer('Dominic Sisneros', 'dsisnero@gmail.com')
|
|
29
|
+
clean_globs << '**/#*.*#'
|
|
30
|
+
# self.yard_markup = 'asciidoc'
|
|
31
|
+
self.urls = {home: 'https://github.com/dsisnero/microstation'}
|
|
32
|
+
dependency('methadone','>= 0.0.0')
|
|
33
|
+
dependency('liquid', '> 0.0.0')
|
|
34
|
+
dependency('gli', '> 0.0.0')
|
|
35
|
+
dependency('dry-monads', '> 0.0.0')
|
|
36
|
+
# dependency('pry-nav', '>0.0.0',:dev)
|
|
37
|
+
|
|
38
|
+
dependency('minitest', '>0.0.0', :dev)
|
|
39
|
+
dependency('minitest-hooks','>0.0', :dev)
|
|
40
|
+
dependency('aruba', '>0.0.0', :dev)
|
|
41
|
+
dependency('yard','>= 0.0',:dev)
|
|
42
|
+
dependency('hoe-yard','~> 0.1',:dev)
|
|
43
|
+
dependency('guard-yard', '>= 0.0', :dev)
|
|
44
|
+
dependency('hoe','~> 3.1', :dev)
|
|
45
|
+
dependency('hoe-bundler', '> 0.0.0', :dev)
|
|
46
|
+
dependency('guard', '> 0.0.0', :dev)
|
|
47
|
+
dependency('guard-minitest', '> 0.0.0', :dev)
|
|
48
|
+
dependency('minitest-focus', '> 0.0.0', :dev)
|
|
49
|
+
dependency('notiffany', '> 0.0.0', :dev)
|
|
50
|
+
dependency('pry', '> 0.0.0', :dev)
|
|
51
|
+
dependency('aruba', '> 0.0.0', :dev)
|
|
52
|
+
dependency('pry-byebug', '> 0.0.0', :dev)
|
|
53
|
+
dependency('rb-readline', '>0.0.0', :dev)
|
|
54
|
+
dependency('win32console', '>0.0.0', :dev)
|
|
55
|
+
dependency('rb-notifu', '> 0.0.0', :dev)
|
|
56
|
+
dependency('wdm', '> 0.0.0', :dev)
|
|
57
|
+
dependency('solargraph' , '> 0.0.0', :dev)
|
|
58
|
+
# dependency('windows-pr', '>0.0.0')
|
|
59
|
+
license('MIT')
|
|
60
|
+
# require 'pry';binding.pry
|
|
61
|
+
|
|
62
|
+
# self.rubyforge_name = 'microstation' # if different than 'microstation'
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
# vim: syntax=ruby
|
|
68
|
+
Rake::TestTask.new('test2') do |t|
|
|
69
|
+
t.libs.push('specs')
|
|
70
|
+
t.pattern = 'spec/**/*_spec.rb'
|
|
71
|
+
end
|