elexis-wiki-interface 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 019d50ea4aa4b5c071d1ed165465ee19cb9531aa
4
- data.tar.gz: 9c2ed2aa44fb6b347fc3fbc5213e0ca7931a95f5
3
+ metadata.gz: 5baba0fd1711b2a15b723334288063147ba422d4
4
+ data.tar.gz: 168ff2b578edd9fbeb81b0d7d233ebcbd94462a0
5
5
  SHA512:
6
- metadata.gz: 517b5b4354a1821127fab40a167a97497275cb0439140c2a5067b775544f4747647a1a84d0172a8028b119f9193c49f3a75f317c32caa36f4732a1d6f7338f35
7
- data.tar.gz: 1b56dcf1ef10e695612db9df15a4042771dc47d2e8b355e5dfe0dc4dcdfe14f80baeaebf3b6aeb56fee9818d0309891262a138b86ecd8f3e7020d7e16b7454e9
6
+ metadata.gz: d3265153c61faa03c0f5aaeee4d49c36c3cc1819fd558256d3c05bf204fbfce6dd98bd43472b5c3bbea782727e44b3c71796e8ebec34d0177f177081092c452e
7
+ data.tar.gz: 469f8477d558afc9ab1064c5b98e5bf4caf8af1c482de768f34a056dbcedb3a0b31f1c87f06cecca5f025f51ea2d5c52108ee0cd3d9da4bd1e8bf336af06c14f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- elexis-wiki-interface (0.4.4)
4
+ elexis-wiki-interface (0.4.5)
5
5
  eclipse-plugin (>= 0.1)
6
6
  mediawiki-gateway
7
7
  rubyzip (< 1.0.0)
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.4.5 / 14.08.2015
2
+
3
+ * Don't report plugin without documenteation, as only features are required to have one
4
+
1
5
  === 0.4.4 / 14.08.2015
2
6
 
3
7
  * Check whether all features have an entry in the Matrix_3.0 page
@@ -1,7 +1,7 @@
1
1
  module Elexis
2
2
  module Wiki
3
3
  module Interface
4
- VERSION = "0.4.4"
4
+ VERSION = "0.4.5"
5
5
  end
6
6
  end
7
7
  end
@@ -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, :plugins_missing_documentation, :features_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 /ehc|icp/i.match(id)
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
- @perspectives_missing_documentation << pageName unless content
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elexis-wiki-interface
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Niklaus Giger