elexis-wiki-interface 0.4.7 → 0.4.8

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: a27ca6c8e67c1799da5fb5f6176e29c0c95f2255
4
- data.tar.gz: 58003985adff2d92617f3bb9589690c55c64c0b1
3
+ metadata.gz: dcd4309470e3954cecd1e5d35c7a75efa7a453be
4
+ data.tar.gz: db7566d5c5ba624c72e3b08a084cf4f7e4b45091
5
5
  SHA512:
6
- metadata.gz: 059bda68058a59f66691354485911467a8985f00d653fee16688eb99a5bf763b8c8616b0c47e08c211967983082acf8a31ff6c383a6a62cc27d0176516b69dae
7
- data.tar.gz: 593654fe086c69ed7f3a4ddba20e68223f2989a249b5174ec90e0f2ccecaacdf112cbf04dafdddf7f4e175eb3b20d40506efcb5404cdea1e5e03615733c81696
6
+ metadata.gz: 7981f2ce10eb3c5be76ba97c47764f53623a1f083952a123accaeb9e2729f68e70ae261b45e0e55d873419145e2c861bbee2dd4eba258cd0de4c08e6b621a0db
7
+ data.tar.gz: 8290acb38b2b5543cf6d467550bc7f02a4be7dd9aa14b9bfeaa6df5fa61eddfc4d530511361ea87a2880a14008b4ff6adcc20c02ceb42aaf40d7d4c3f41605f8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- elexis-wiki-interface (0.4.7)
4
+ elexis-wiki-interface (0.4.8)
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.8 / 15.08.2015
2
+
3
+ * Push doc_de and doc_fr, too
4
+
1
5
  === 0.4.7 / 15.08.2015
2
6
 
3
7
  * Push features, too
@@ -1,7 +1,7 @@
1
1
  module Elexis
2
2
  module Wiki
3
3
  module Interface
4
- VERSION = "0.4.7"
4
+ VERSION = "0.4.8"
5
5
  end
6
6
  end
7
7
  end
@@ -113,8 +113,8 @@ module Elexis
113
113
  puts $ws_errors
114
114
  puts "Displayed #{$ws_errors.size} errors"
115
115
  end
116
- def push_plugin_or_feature(id, info)
117
- docDir = File.join(@info.workspace_dir, id, 'doc')
116
+ def push_doc_dir(id, docDir = nil)
117
+ docDir ||= File.join(@info.workspace_dir, id, 'doc')
118
118
  to_push = Dir.glob("#{docDir}/*.mediawiki")
119
119
  to_push.each{
120
120
  |file|
@@ -135,7 +135,7 @@ module Elexis
135
135
  next
136
136
  end
137
137
  @mw.edit(pagename, to_verify,{:overwrite => true, :summary => "pushed by #{File.basename(__FILE__)}" })
138
- puts "Uploaded #{file} to #{pagename}" if $VERBOSE
138
+ puts "Uploaded #{file} to #{pagename}" # if $VERBOSE
139
139
  end
140
140
  }
141
141
  if to_push.size > 0 # then upload also all *.png files
@@ -181,15 +181,10 @@ module Elexis
181
181
  @doc_projects.each{
182
182
  |prj|
183
183
  dir = File.dirname(prj)
184
+ push_doc_dir(File.basename(dir), dir)
184
185
  }
185
- @info.features.each{
186
- |id, info|
187
- push_plugin_or_feature(id, info)
188
- }
189
- @info.plugins.each{
190
- |id,plugin|
191
- push_plugin_or_feature(id, plugin)
192
- }
186
+ @info.features.each{ |id, info| push_doc_dir(id) }
187
+ @info.plugins.each{ |id,plugin| push_doc_dir(id) }
193
188
  end
194
189
 
195
190
  def get_git_modification(file)
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.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Niklaus Giger