netlinx-workspace 0.2.0 → 0.3.0

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.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -0
  3. data/doc/NetLinx.html +119 -131
  4. data/doc/NetLinx/Compile.html +115 -127
  5. data/doc/NetLinx/Compile/Extension.html +115 -127
  6. data/doc/NetLinx/Compile/Extension/APW.html +219 -136
  7. data/doc/NetLinx/Project.html +1100 -460
  8. data/doc/NetLinx/System.html +1197 -580
  9. data/doc/NetLinx/SystemFile.html +646 -301
  10. data/doc/NetLinx/Workspace.html +981 -438
  11. data/doc/_index.html +210 -0
  12. data/doc/class_list.html +54 -0
  13. data/doc/css/common.css +1 -0
  14. data/doc/css/full_list.css +57 -0
  15. data/doc/css/style.css +339 -0
  16. data/doc/file.README.html +86 -0
  17. data/doc/file.license.html +73 -0
  18. data/doc/file_list.html +59 -0
  19. data/doc/frames.html +26 -0
  20. data/doc/index.html +86 -85
  21. data/doc/js/app.js +219 -0
  22. data/doc/js/full_list.js +178 -0
  23. data/doc/js/jquery.js +4 -18
  24. data/doc/method_list.html +329 -0
  25. data/doc/top-level-namespace.html +112 -0
  26. data/lib/netlinx/system.rb +6 -6
  27. data/lib/netlinx/workspace.rb +14 -0
  28. metadata +84 -61
  29. data/README.html +0 -0
  30. data/doc/created.rid +0 -7
  31. data/doc/images/add.png +0 -0
  32. data/doc/images/arrow_up.png +0 -0
  33. data/doc/images/brick.png +0 -0
  34. data/doc/images/brick_link.png +0 -0
  35. data/doc/images/bug.png +0 -0
  36. data/doc/images/bullet_black.png +0 -0
  37. data/doc/images/bullet_toggle_minus.png +0 -0
  38. data/doc/images/bullet_toggle_plus.png +0 -0
  39. data/doc/images/date.png +0 -0
  40. data/doc/images/delete.png +0 -0
  41. data/doc/images/find.png +0 -0
  42. data/doc/images/loadingAnimation.gif +0 -0
  43. data/doc/images/macFFBgHack.png +0 -0
  44. data/doc/images/package.png +0 -0
  45. data/doc/images/page_green.png +0 -0
  46. data/doc/images/page_white_text.png +0 -0
  47. data/doc/images/page_white_width.png +0 -0
  48. data/doc/images/plugin.png +0 -0
  49. data/doc/images/ruby.png +0 -0
  50. data/doc/images/tag_blue.png +0 -0
  51. data/doc/images/tag_green.png +0 -0
  52. data/doc/images/transparent.png +0 -0
  53. data/doc/images/wrench.png +0 -0
  54. data/doc/images/wrench_orange.png +0 -0
  55. data/doc/images/zoom.png +0 -0
  56. data/doc/js/darkfish.js +0 -155
  57. data/doc/js/navigation.js +0 -142
  58. data/doc/js/search.js +0 -94
  59. data/doc/js/search_index.js +0 -1
  60. data/doc/js/searcher.js +0 -228
  61. data/doc/rdoc.css +0 -595
  62. data/doc/table_of_contents.html +0 -111
@@ -0,0 +1,112 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Top Level Namespace
8
+
9
+ &mdash; Documentation by YARD 0.8.7.4
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '';
20
+ framesUrl = "frames.html#!top-level-namespace.html";
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="_index.html">Index</a> &raquo;
35
+
36
+
37
+ <span class="title">Top Level Namespace</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Top Level Namespace
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+ </dl>
82
+ <div class="clear"></div>
83
+
84
+ <h2>Defined Under Namespace</h2>
85
+ <p class="children">
86
+
87
+
88
+ <strong class="modules">Modules:</strong> <span class='object_link'><a href="NetLinx.html" title="NetLinx (module)">NetLinx</a></span>
89
+
90
+
91
+
92
+
93
+ </p>
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+ </div>
104
+
105
+ <div id="footer">
106
+ Generated on Fri May 9 21:30:47 2014 by
107
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
+ 0.8.7.4 (ruby-2.1.1).
109
+ </div>
110
+
111
+ </body>
112
+ </html>
@@ -43,9 +43,9 @@ module NetLinx
43
43
  @files
44
44
  .select {|f| f.type == 'MasterSrc'}
45
45
  .map {|f| File.expand_path \
46
- f.path,
46
+ f.path.gsub('\\', '/'),
47
47
  f.system.project.workspace.path
48
- }
48
+ }.uniq
49
49
  end
50
50
 
51
51
  # See Test::NetLinx::Compilable.
@@ -53,9 +53,9 @@ module NetLinx
53
53
  @files
54
54
  .select {|f| f.type == 'Include'}
55
55
  .map {|f| File.expand_path \
56
- File.dirname(f.path),
56
+ File.dirname(f.path.gsub('\\', '/')),
57
57
  f.system.project.workspace.path
58
- }
58
+ }.uniq
59
59
  end
60
60
 
61
61
  # See Test::NetLinx::Compilable.
@@ -63,9 +63,9 @@ module NetLinx
63
63
  @files
64
64
  .select {|f| f.type == 'Module' || f.type == 'TKO' || f.type == 'DUET'}
65
65
  .map {|f| File.expand_path \
66
- File.dirname(f.path),
66
+ File.dirname(f.path.gsub('\\', '/')),
67
67
  f.system.project.workspace.path
68
- }
68
+ }.uniq
69
69
  end
70
70
 
71
71
  # See Test::NetLinx::Compilable.
@@ -12,6 +12,20 @@ module NetLinx
12
12
  attr_accessor :projects
13
13
  attr_reader :file
14
14
 
15
+ # Search backwards through directory tree and return the first workspace found.
16
+ def self.search dir: nil
17
+ dir ||= File.expand_path '.'
18
+ while dir != File.expand_path('..', dir)
19
+ workspaces = Dir["#{dir}/*.apw"]
20
+ dir = File.expand_path('..', dir)
21
+ next if workspaces.empty?
22
+
23
+ return new file: workspaces.first
24
+ end
25
+
26
+ nil
27
+ end
28
+
15
29
  def initialize(**kvargs)
16
30
  @name = kvargs.fetch :name, ''
17
31
  @description = kvargs.fetch :description, ''
metadata CHANGED
@@ -1,69 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netlinx-workspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex McLain
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-24 00:00:00.000000000 Z
11
+ date: 2014-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: netlinx-compile
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.0.0
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
18
32
  - !ruby/object:Gem::Version
19
33
  version: '0'
20
34
  type: :development
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
- - - '>='
38
+ - - ">="
25
39
  - !ruby/object:Gem::Version
26
40
  version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
- name: rake
42
+ name: yard
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - '>='
45
+ - - ">="
32
46
  - !ruby/object:Gem::Version
33
47
  version: '0'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - '>='
52
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
- name: rdoc
56
+ name: rspec
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - '>='
59
+ - - ">="
46
60
  - !ruby/object:Gem::Version
47
61
  version: '0'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - '>='
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: fivemat
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
53
81
  - !ruby/object:Gem::Version
54
82
  version: '0'
55
83
  - !ruby/object:Gem::Dependency
56
84
  name: pry
57
85
  requirement: !ruby/object:Gem::Requirement
58
86
  requirements:
59
- - - '>='
87
+ - - ">="
60
88
  - !ruby/object:Gem::Version
61
89
  version: '0'
62
90
  type: :development
63
91
  prerelease: false
64
92
  version_requirements: !ruby/object:Gem::Requirement
65
93
  requirements:
66
- - - '>='
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rb-readline
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
67
109
  - !ruby/object:Gem::Version
68
110
  version: '0'
69
111
  description: This library provides a developer API for working with NetLinx Studio
@@ -74,57 +116,37 @@ executables: []
74
116
  extensions: []
75
117
  extra_rdoc_files: []
76
118
  files:
77
- - license.txt
78
- - README.html
79
- - lib/netlinx/compile/extension/apw.rb
80
- - lib/netlinx/project.rb
81
- - lib/netlinx/system.rb
82
- - lib/netlinx/system_file.rb
83
- - lib/netlinx/workspace.rb
84
- - lib/netlinx-workspace.rb
85
- - doc/created.rid
86
- - doc/images/add.png
87
- - doc/images/arrow_up.png
88
- - doc/images/brick.png
89
- - doc/images/brick_link.png
90
- - doc/images/bug.png
91
- - doc/images/bullet_black.png
92
- - doc/images/bullet_toggle_minus.png
93
- - doc/images/bullet_toggle_plus.png
94
- - doc/images/date.png
95
- - doc/images/delete.png
96
- - doc/images/find.png
97
- - doc/images/loadingAnimation.gif
98
- - doc/images/macFFBgHack.png
99
- - doc/images/package.png
100
- - doc/images/page_green.png
101
- - doc/images/page_white_text.png
102
- - doc/images/page_white_width.png
103
- - doc/images/plugin.png
104
- - doc/images/ruby.png
105
- - doc/images/tag_blue.png
106
- - doc/images/tag_green.png
107
- - doc/images/transparent.png
108
- - doc/images/wrench.png
109
- - doc/images/wrench_orange.png
110
- - doc/images/zoom.png
111
- - doc/index.html
112
- - doc/js/darkfish.js
113
- - doc/js/jquery.js
114
- - doc/js/navigation.js
115
- - doc/js/search.js
116
- - doc/js/searcher.js
117
- - doc/js/search_index.js
118
- - doc/NetLinx/Compile/Extension/APW.html
119
- - doc/NetLinx/Compile/Extension.html
119
+ - README.md
120
+ - doc/NetLinx.html
120
121
  - doc/NetLinx/Compile.html
122
+ - doc/NetLinx/Compile/Extension.html
123
+ - doc/NetLinx/Compile/Extension/APW.html
121
124
  - doc/NetLinx/Project.html
122
125
  - doc/NetLinx/System.html
123
126
  - doc/NetLinx/SystemFile.html
124
127
  - doc/NetLinx/Workspace.html
125
- - doc/NetLinx.html
126
- - doc/rdoc.css
127
- - doc/table_of_contents.html
128
+ - doc/_index.html
129
+ - doc/class_list.html
130
+ - doc/css/common.css
131
+ - doc/css/full_list.css
132
+ - doc/css/style.css
133
+ - doc/file.README.html
134
+ - doc/file.license.html
135
+ - doc/file_list.html
136
+ - doc/frames.html
137
+ - doc/index.html
138
+ - doc/js/app.js
139
+ - doc/js/full_list.js
140
+ - doc/js/jquery.js
141
+ - doc/method_list.html
142
+ - doc/top-level-namespace.html
143
+ - lib/netlinx-workspace.rb
144
+ - lib/netlinx/compile/extension/apw.rb
145
+ - lib/netlinx/project.rb
146
+ - lib/netlinx/system.rb
147
+ - lib/netlinx/system_file.rb
148
+ - lib/netlinx/workspace.rb
149
+ - license.txt
128
150
  homepage: https://sourceforge.net/projects/netlinx-workspace/
129
151
  licenses:
130
152
  - Apache 2.0
@@ -135,18 +157,19 @@ require_paths:
135
157
  - lib
136
158
  required_ruby_version: !ruby/object:Gem::Requirement
137
159
  requirements:
138
- - - '>='
160
+ - - ">="
139
161
  - !ruby/object:Gem::Version
140
162
  version: '0'
141
163
  required_rubygems_version: !ruby/object:Gem::Requirement
142
164
  requirements:
143
- - - '>='
165
+ - - ">="
144
166
  - !ruby/object:Gem::Version
145
167
  version: '0'
146
168
  requirements: []
147
169
  rubyforge_project:
148
- rubygems_version: 2.0.3
170
+ rubygems_version: 2.2.2
149
171
  signing_key:
150
172
  specification_version: 4
151
173
  summary: A library for working with AMX NetLinx Studio workspaces in Ruby.
152
174
  test_files: []
175
+ has_rdoc:
data/README.html DELETED
File without changes
data/doc/created.rid DELETED
@@ -1,7 +0,0 @@
1
- Sat, 24 Aug 2013 12:11:57 -0700
2
- lib/netlinx-workspace.rb Wed, 14 Aug 2013 20:17:04 -0700
3
- lib/netlinx/compile/extension/apw.rb Thu, 22 Aug 2013 18:57:56 -0700
4
- lib/netlinx/project.rb Wed, 21 Aug 2013 22:40:50 -0700
5
- lib/netlinx/system.rb Sat, 24 Aug 2013 12:11:31 -0700
6
- lib/netlinx/system_file.rb Wed, 14 Aug 2013 21:48:35 -0700
7
- lib/netlinx/workspace.rb Tue, 20 Aug 2013 19:57:34 -0700
data/doc/images/add.png DELETED
Binary file
Binary file
data/doc/images/brick.png DELETED
Binary file
Binary file
data/doc/images/bug.png DELETED
Binary file
Binary file
Binary file
Binary file
data/doc/images/date.png DELETED
Binary file
Binary file
data/doc/images/find.png DELETED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file