elexis-wiki-interface 0.4.4 → 0.4.5
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/Gemfile.lock +1 -1
- data/History.txt +4 -0
- data/lib/elexis/wiki/interface/version.rb +1 -1
- data/lib/elexis/wiki/interface/workspace.rb +6 -9
- data/spec/pull_spec.rb +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5baba0fd1711b2a15b723334288063147ba422d4
|
4
|
+
data.tar.gz: 168ff2b578edd9fbeb81b0d7d233ebcbd94462a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3265153c61faa03c0f5aaeee4d49c36c3cc1819fd558256d3c05bf204fbfce6dd98bd43472b5c3bbea782727e44b3c71796e8ebec34d0177f177081092c452e
|
7
|
+
data.tar.gz: 469f8477d558afc9ab1064c5b98e5bf4caf8af1c482de768f34a056dbcedb3a0b31f1c87f06cecca5f025f51ea2d5c52108ee0cd3d9da4bd1e8bf336af06c14f
|
data/Gemfile.lock
CHANGED
data/History.txt
CHANGED
@@ -12,6 +12,7 @@ module Elexis
|
|
12
12
|
module Interface
|
13
13
|
ImagePrefix = /Datei:|Image:/i
|
14
14
|
ImagePattern = /(\[Datei:|\[Image:)([\w\.\:\/]*)/i
|
15
|
+
TestPattern = /[\._]test[s]*$/i
|
15
16
|
$ws_errors = []
|
16
17
|
|
17
18
|
# All images under wiki.elexis.info must have images corresponding to the following scheme
|
@@ -65,7 +66,7 @@ module Elexis
|
|
65
66
|
end
|
66
67
|
|
67
68
|
class Workspace
|
68
|
-
attr_reader :info, :mw, :wiki, :views_missing_documentation, :perspectives_missing_documentation, :
|
69
|
+
attr_reader :info, :mw, :wiki, :views_missing_documentation, :perspectives_missing_documentation, :features_missing_documentation,
|
69
70
|
:doc_project, :features, :info
|
70
71
|
def initialize(dir, wiki = 'http://wiki.elexis.info/api.php')
|
71
72
|
$ws_errors = []
|
@@ -77,7 +78,6 @@ module Elexis
|
|
77
78
|
@info.show if $VERBOSE
|
78
79
|
@views_missing_documentation =[]
|
79
80
|
@perspectives_missing_documentation =[]
|
80
|
-
@plugins_missing_documentation =[]
|
81
81
|
@features_missing_documentation =[]
|
82
82
|
end
|
83
83
|
def show_missing(details = false)
|
@@ -88,7 +88,6 @@ module Elexis
|
|
88
88
|
puts "-" * msg.size
|
89
89
|
|
90
90
|
if views_missing_documentation.size and
|
91
|
-
plugins_missing_documentation.size == 0 and
|
92
91
|
features_missing_documentation.size == 0 and
|
93
92
|
perspectives_missing_documentation.size == 0
|
94
93
|
puts "Eclipse-Workspace #{@info.workspace_dir} seems to have documented all views, features, plugins and perspectives"
|
@@ -98,10 +97,6 @@ module Elexis
|
|
98
97
|
puts " #{views_missing_documentation.size} views"
|
99
98
|
puts " #{views_missing_documentation.inspect}" if details
|
100
99
|
end
|
101
|
-
if plugins_missing_documentation.size > 0
|
102
|
-
puts " #{plugins_missing_documentation.size} plugins"
|
103
|
-
puts " #{plugins_missing_documentation.inspect}" if details
|
104
|
-
end
|
105
100
|
if features_missing_documentation.size > 0
|
106
101
|
puts " #{features_missing_documentation.size} features"
|
107
102
|
puts " #{features_missing_documentation.inspect}" if details
|
@@ -216,7 +211,7 @@ module Elexis
|
|
216
211
|
|
217
212
|
@info.plugins.each{
|
218
213
|
|id, info|
|
219
|
-
# next if not defined?(RSpec) and not /
|
214
|
+
# next if not defined?(RSpec) and not /org.iatrix/i.match(id)
|
220
215
|
puts "Pulling for plugin #{id}" if $VERBOSE
|
221
216
|
pull_docs_views(info)
|
222
217
|
pull_docs_plugins(info)
|
@@ -370,6 +365,7 @@ module Elexis
|
|
370
365
|
|id, view|
|
371
366
|
pageName = viewToPageName(plugin.symbolicName, view)
|
372
367
|
content = get_content_from_wiki(File.join(@info.workspace_dir, File.basename(plugin.jar_or_src), 'doc'), pageName)
|
368
|
+
next if TestPattern.match(id)
|
373
369
|
@views_missing_documentation << pageName unless content
|
374
370
|
}
|
375
371
|
end
|
@@ -379,6 +375,7 @@ module Elexis
|
|
379
375
|
|id, perspective|
|
380
376
|
pageName = perspectiveToPageName(perspective)
|
381
377
|
content = get_content_from_wiki(File.join(@info.workspace_dir, File.basename(plugin.jar_or_src), 'doc'), pageName)
|
378
|
+
next if TestPattern.match(id)
|
382
379
|
@perspectives_missing_documentation << pageName unless content
|
383
380
|
}
|
384
381
|
end
|
@@ -386,7 +383,7 @@ module Elexis
|
|
386
383
|
id = plugin.symbolicName
|
387
384
|
pageName = id.capitalize
|
388
385
|
content = get_content_from_wiki(File.join(@info.workspace_dir, File.basename(plugin.jar_or_src), 'doc'), pageName)
|
389
|
-
|
386
|
+
return if TestPattern.match(id)
|
390
387
|
end
|
391
388
|
def pull_docs_features(feature)
|
392
389
|
id = feature.symbolicName
|
data/spec/pull_spec.rb
CHANGED
@@ -44,7 +44,6 @@ describe 'Plugin' do
|
|
44
44
|
mediawikis = Dir.glob(search)
|
45
45
|
expect(mediawikis.size).to be > 1
|
46
46
|
@workspace.show_missing(true)
|
47
|
-
expect(@workspace.plugins_missing_documentation.size).to eq 0
|
48
47
|
expect(@workspace.perspectives_missing_documentation.size).to be <= 1
|
49
48
|
if $VERBOSE
|
50
49
|
search = "#{@dataDir}/**/*.mediawiki"
|