elexis-wiki-interface 0.4.8 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -1
  3. data/Gemfile.lock +25 -1
  4. data/README.textile +2 -3
  5. data/bin/wiki_pull +6 -3
  6. data/bin/wiki_pull_and_commit +38 -0
  7. data/bin/wiki_push +2 -2
  8. data/elexis-wiki-interface.gemspec +4 -3
  9. data/history.textile +14 -0
  10. data/lib/elexis/wiki/images.rb +338 -0
  11. data/lib/elexis/wiki/interface.rb +152 -2
  12. data/lib/elexis/wiki/version.rb +5 -0
  13. data/lib/elexis/wiki/workspace.rb +286 -0
  14. data/spec/data/images/ch.elexis.agenda/.project +36 -0
  15. data/spec/data/images/ch.elexis.agenda/META-INF/MANIFEST.MF +33 -0
  16. data/spec/data/images/ch.elexis.agenda/doc/fixmedikationaufruf.png +0 -0
  17. data/spec/data/images/ch.elexis.agenda/plugin.properties +8 -0
  18. data/spec/data/images/ch.elexis.agenda/plugin.xml +209 -0
  19. data/spec/data/images/ch.elexis.agenda/plugin_de.properties +8 -0
  20. data/spec/data/images/ch.elexis.agenda/plugin_en.properties +8 -0
  21. data/spec/data/images/ch.elexis.agenda/plugin_fr.properties +7 -0
  22. data/spec/data/images/ch.elexis.core.application.feature/.project +23 -0
  23. data/spec/data/images/ch.elexis.core.application.feature/build.properties +1 -0
  24. data/spec/data/images/ch.elexis.core.application.feature/feature.xml +699 -0
  25. data/spec/data/images/ch.elexis.core.application.feature/pom.xml +12 -0
  26. data/spec/data/images/ch.elexis.icpc/.project +28 -0
  27. data/spec/data/images/ch.elexis.icpc/META-INF/MANIFEST.MF +26 -0
  28. data/spec/data/images/ch.elexis.icpc/doc/Com.hilotec.elexis.opendocument_anleitung_opendocument_1.png +0 -0
  29. data/spec/data/images/ch.elexis.icpc/doc/FixmedikationAufruf.png +0 -0
  30. data/spec/data/images/ch.elexis.icpc/doc/Icpc8.png +0 -0
  31. data/spec/data/images/ch.elexis.icpc/doc/ch.elexis.icpc_icpc1.png +0 -0
  32. data/spec/data/images/ch.elexis.icpc/doc/disposan.gif +0 -0
  33. data/spec/data/images/ch.elexis.icpc/doc/elexis_logo.jpg +0 -0
  34. data/spec/data/images/ch.elexis.icpc/doc/favicon_green.png +0 -0
  35. data/spec/data/images/ch.elexis.icpc/doc/icpc0.png +0 -0
  36. data/spec/data/images/ch.elexis.icpc/doc/icpc1.png +0 -0
  37. data/spec/data/images/ch.elexis.icpc/doc/icpc2.png +0 -0
  38. data/spec/data/images/ch.elexis.icpc/doc/icpc3.png +0 -0
  39. data/spec/data/images/ch.elexis.icpc/doc/icpc4.png +0 -0
  40. data/spec/data/images/ch.elexis.icpc/doc/icpc5.png +0 -0
  41. data/spec/data/images/ch.elexis.icpc/doc/icpc6.png +0 -0
  42. data/spec/data/images/ch.elexis.icpc/doc/icpc7.png +0 -0
  43. data/spec/data/images/ch.elexis.icpc/doc/icpc9.png +0 -0
  44. data/spec/data/images/ch.elexis.icpc/doc/kabel.png +0 -0
  45. data/spec/data/images/ch.elexis.icpc/doc/medevit_inbox1.png +0 -0
  46. data/spec/data/images/ch.elexis.icpc/doc/test.mediawiki +15 -0
  47. data/spec/data/images/ch.elexis.icpc/doc/test2.mediawiki +19 -0
  48. data/spec/data/images/ch.elexis.icpc/plugin.xml +74 -0
  49. data/spec/data/images/ch.elexis.notes/.project +34 -0
  50. data/spec/data/images/ch.elexis.notes/META-INF/MANIFEST.MF +17 -0
  51. data/spec/data/images/ch.elexis.notes/doc/At.medevit.medelexis.text.msword:WordBriefe.png +0 -0
  52. data/spec/data/images/ch.elexis.notes/doc/Ch.medelexis.openoffice:TextverarbeitungSettings.png +0 -0
  53. data/spec/data/images/ch.elexis.notes/doc/Icpc1.png +0 -0
  54. data/spec/data/images/ch.elexis.notes/doc/kabel.png +0 -0
  55. data/spec/data/images/ch.elexis.notes/doc/medidirect:use2.png +0 -0
  56. data/spec/data/images/ch.elexis.notes/doc/test.mediawiki +13 -0
  57. data/spec/data/images/ch.elexis.notes/plugin.properties +1 -0
  58. data/spec/data/images/ch.elexis.notes/plugin.xml +36 -0
  59. data/spec/data/images/ch.elexis.notes/plugin_de.properties +3 -0
  60. data/spec/data/images/ch.elexis.notes/plugin_en.properties +3 -0
  61. data/spec/data/images/ch.elexis.notes/plugin_fr.properties +3 -0
  62. data/spec/data/images/doc_de/.project +42 -0
  63. data/spec/data/images/elexis_api_test.png +0 -0
  64. data/spec/data/push/elexis_api_test.png +0 -0
  65. data/spec/images_spec.rb +236 -0
  66. data/spec/interface_spec.rb +118 -0
  67. data/spec/pull_spec.rb +16 -5
  68. metadata +128 -13
  69. data/History.txt +0 -41
  70. data/bin/wiki_pull_daily +0 -28
  71. data/lib/elexis/wiki/interface/version.rb +0 -7
  72. data/lib/elexis/wiki/interface/workspace.rb +0 -404
  73. data/spec/push_spec.rb +0 -31
  74. data/spec/update_images_spec.rb +0 -95
  75. data/spec/user_spec.rb +0 -32
@@ -0,0 +1,118 @@
1
+ #encoding : utf-8
2
+ require 'spec_helper'
3
+
4
+ require "elexis/wiki/interface"
5
+
6
+ describe 'Wiki_Interface' do
7
+ match_upload_result = /Success|Warning/i
8
+
9
+ before(:all) do
10
+ skip 'does not work under travis-ci' if ENV['TRAVIS']
11
+ @if = Elexis::Wiki::Interface.new
12
+ puts @if.wiki_url
13
+ # expect(@if.wiki_url).to match /localhost/i # we don't want to test with a real wiki
14
+ @test_image = "elexis_api_test.png"
15
+ @test_image_file = File.join(File.join(File.dirname(__FILE__), 'data', 'push', 'elexis_api_test.png'))
16
+ expect(File.exists?(@test_image_file))
17
+ res = @if.upload_image(@test_image, @test_image_file, 'TestKommentar Niklaus', nil)
18
+ expect(res)
19
+ expect(res.data['result']).to match match_upload_result
20
+ end
21
+
22
+ it "should be possible to if.upload an @test_image_file to path without ':' nor '/'" do
23
+ expect(File.exists?(@test_image_file))
24
+ skip "Niklaus does not know why we get sometimes an internal error and sometimes not"
25
+ res = @if.upload("api_test2.png", @test_image_file, 'TestKommentar Niklaus')
26
+ expect(res.class).to eq MediawikiApi::Response
27
+ expect(res.data['result']).to match match_upload_result
28
+ expect(res.data['warnings']['badfilename']).to eq nil
29
+ expect(res.data['warnings']['duplicate']).to_not eq nil # we already if.uploaded via before(:all)
30
+ end
31
+
32
+ it "should be possible to if.upload an @test_image_file to a path with ':'" do
33
+ expect(File.exists?(@test_image_file))
34
+ res = @if.upload("api_test:api_test2.png", @test_image_file, 'TestKommentar Niklaus')
35
+ expect(res.class).to eq MediawikiApi::Response
36
+ expect(res.data['result']).to match match_upload_result
37
+ expect(res.data['warnings']['badfilename']).to eq 'Api_test-api_test2.png'
38
+ expect(res.data['warnings']['duplicate']).to_not eq nil # we already if.uploaded via before(:all)
39
+ end
40
+
41
+ it "should be possible to if.upload an @test_image_file to a path with '/'" do
42
+ expect(File.exists?(@test_image_file))
43
+ # def upload_image(filename, path, comment='', options = "ignorewarnings")
44
+ res = @if.upload("api_test/api_test2.png", @test_image_file, 'TestKommentar Niklaus')
45
+ expect(res.class).to eq MediawikiApi::Response
46
+ expect(res.data['result']).to match match_upload_result
47
+ expect(res.data['warnings']['badfilename']).to eq 'Api_test2.png'
48
+ expect(res.data['warnings']['duplicate']).to_not eq nil # we already if.uploaded via before(:all)
49
+ end
50
+
51
+ it "should return all images for icpc" do
52
+ res = @if.images('Ch.elexis.icpc')
53
+ expect(res.size).not_to eq 0
54
+ end
55
+
56
+ it "should return all images for icpc" do
57
+ res = @if.images('At.medevit.medelexis.text.msword')
58
+ expect(res.size).not_to eq 0
59
+ res.each{|page| expect(page.index(' ')).to eq nil }
60
+ end
61
+
62
+ it "should be able to create, edit and delete a page" do
63
+ test_page = 'api_test_page'
64
+ first_content = 'Some dummy content. First try'
65
+ second_content = 'Some dummy content. second try'
66
+ res = @if.create(test_page, first_content, { :comment => 'dummy comment'})
67
+ expect(res.status).to eq 200
68
+ expect(res.data['result']).to match match_upload_result
69
+
70
+ inhalt = @if.get(test_page)
71
+ expect(inhalt).to eq first_content
72
+ res = @if.edit(test_page, second_content)
73
+ expect(res.status).to eq 200
74
+ expect(res.data['result']).to match match_upload_result
75
+ inhalt = @if.get(test_page)
76
+ expect(inhalt).to eq second_content
77
+ res = @if.delete(test_page)
78
+ expect(res.status).to eq 200
79
+ inhalt = @if.get(test_page)
80
+ expect(inhalt).to be_nil
81
+ end
82
+
83
+ it "should return mediawiki_text for icpc" do
84
+ res = @if.get('Ch.elexis.icpc')
85
+ expect(res.index('== Einführung ==')).not_to eq 0
86
+ expect(res.index('ICPC-2, die *I*nternational *')).not_to eq 0
87
+ end
88
+
89
+ it "should download an image" do
90
+ image = 'Elexis3.0_inst_1.jpg'
91
+ destination = File.join(Dir::tmpdir, 'tst_picture.png')
92
+ FileUtils.rm_f(destination, :verbose => false)
93
+ res = @if.download_image_file(image, destination, 'ch.elexis.icpc')
94
+ expect(res).to eq nil
95
+ expect(File.exists?(destination)).to eq true
96
+ expect(File.size(destination)).not_to eq 0
97
+ FileUtils.rm_f(destination, :verbose => false)
98
+ end
99
+
100
+
101
+ it "should show all users" do
102
+ wiki_users = @if.users
103
+ puts "We have #{wiki_users.size} wiki users"
104
+ expect wiki_users.size <= 50
105
+ contribs = @if.contributions(wiki_users.first)
106
+ end
107
+
108
+ it "should download an image without a pagename" do
109
+ dest = 'tst.png'
110
+ FileUtils.rm_f(dest, :verbose => false)
111
+ name = 'Swelab-kabel.png'
112
+ res = @if.download_image_file(name, dest)
113
+ expect(res).to eq nil
114
+ expect(File.exist?(dest))
115
+ res = @if.download_image_file(name)
116
+ expect(File.size(dest)).to eq res.size
117
+ end
118
+ end
data/spec/pull_spec.rb CHANGED
@@ -1,8 +1,7 @@
1
1
  #encoding : utf-8
2
2
  require 'spec_helper'
3
3
 
4
- require 'elexis/wiki/interface'
5
- require "elexis/wiki/interface/workspace"
4
+ require "elexis/wiki/workspace"
6
5
  describe 'Plugin' do
7
6
 
8
7
  def remove_all_mediawiki
@@ -12,7 +11,8 @@ describe 'Plugin' do
12
11
  end
13
12
  before :all do
14
13
  @dataDir = File.expand_path(File.join(File.dirname(__FILE__), 'data', 'pull'))
15
- @workspace = Elexis::Wiki::Interface::Workspace.new(@dataDir)
14
+ skip 'does not work under travis-ci' if ENV['TRAVIS']
15
+ @workspace = Elexis::Wiki::Workspace.new(@dataDir)
16
16
  @workspace.pull
17
17
  end
18
18
 
@@ -87,8 +87,8 @@ describe 'Plugin' do
87
87
  end
88
88
 
89
89
  it "should show all users" do
90
- @workspace = Elexis::Wiki::Interface::Workspace.new(@dataDir)
91
- puts "We have #{@workspace.mw.users.size} wiki users"
90
+ @workspace = Elexis::Wiki::Workspace.new(@dataDir)
91
+ puts "We have #{@workspace.if.users.size} wiki users"
92
92
  end unless ENV['TRAVIS']
93
93
 
94
94
  it "should check the matrix" do
@@ -101,4 +101,15 @@ describe 'Plugin' do
101
101
  expect($ws_errors.size).to eq 1
102
102
  end
103
103
 
104
+ it "should not create any file containing Datei: in their name" do
105
+ search = "#{@workspace.ws_dir}/**/*Datei:*"
106
+ files = Dir.glob(search)
107
+ expect(files.size).to eq 0
108
+ end
109
+
110
+ it "should find any files with ':' in their names" do
111
+ search = "#{@workspace.ws_dir}/**/*:*"
112
+ files = Dir.glob(search)
113
+ expect(files.size).to eq 0
114
+ end
104
115
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elexis-wiki-interface
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Niklaus Giger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-15 00:00:00.000000000 Z
11
+ date: 2015-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: mediawiki_api
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: eclipse-plugin
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -127,7 +141,7 @@ email:
127
141
  - niklaus.giger@member.fsf.org
128
142
  executables:
129
143
  - wiki_pull
130
- - wiki_pull_daily
144
+ - wiki_pull_and_commit
131
145
  - wiki_push
132
146
  extensions: []
133
147
  extra_rdoc_files: []
@@ -136,19 +150,70 @@ files:
136
150
  - ".travis.yml"
137
151
  - Gemfile
138
152
  - Gemfile.lock
139
- - History.txt
140
153
  - LICENSE
141
154
  - README.textile
142
155
  - Rakefile
143
156
  - bin/wiki_pull
144
- - bin/wiki_pull_daily
157
+ - bin/wiki_pull_and_commit
145
158
  - bin/wiki_push
146
159
  - elexis-wiki-interface.gemspec
160
+ - history.textile
161
+ - lib/elexis/wiki/images.rb
147
162
  - lib/elexis/wiki/interface.rb
148
- - lib/elexis/wiki/interface/version.rb
149
- - lib/elexis/wiki/interface/workspace.rb
163
+ - lib/elexis/wiki/version.rb
164
+ - lib/elexis/wiki/workspace.rb
150
165
  - spec/data/.gitignore
151
166
  - spec/data/doc/doc_de/.project
167
+ - spec/data/images/ch.elexis.agenda/.project
168
+ - spec/data/images/ch.elexis.agenda/META-INF/MANIFEST.MF
169
+ - spec/data/images/ch.elexis.agenda/doc/fixmedikationaufruf.png
170
+ - spec/data/images/ch.elexis.agenda/plugin.properties
171
+ - spec/data/images/ch.elexis.agenda/plugin.xml
172
+ - spec/data/images/ch.elexis.agenda/plugin_de.properties
173
+ - spec/data/images/ch.elexis.agenda/plugin_en.properties
174
+ - spec/data/images/ch.elexis.agenda/plugin_fr.properties
175
+ - spec/data/images/ch.elexis.core.application.feature/.project
176
+ - spec/data/images/ch.elexis.core.application.feature/build.properties
177
+ - spec/data/images/ch.elexis.core.application.feature/feature.xml
178
+ - spec/data/images/ch.elexis.core.application.feature/pom.xml
179
+ - spec/data/images/ch.elexis.icpc/.project
180
+ - spec/data/images/ch.elexis.icpc/META-INF/MANIFEST.MF
181
+ - spec/data/images/ch.elexis.icpc/doc/Com.hilotec.elexis.opendocument_anleitung_opendocument_1.png
182
+ - spec/data/images/ch.elexis.icpc/doc/FixmedikationAufruf.png
183
+ - spec/data/images/ch.elexis.icpc/doc/Icpc8.png
184
+ - spec/data/images/ch.elexis.icpc/doc/ch.elexis.icpc_icpc1.png
185
+ - spec/data/images/ch.elexis.icpc/doc/disposan.gif
186
+ - spec/data/images/ch.elexis.icpc/doc/elexis_logo.jpg
187
+ - spec/data/images/ch.elexis.icpc/doc/favicon_green.png
188
+ - spec/data/images/ch.elexis.icpc/doc/icpc0.png
189
+ - spec/data/images/ch.elexis.icpc/doc/icpc1.png
190
+ - spec/data/images/ch.elexis.icpc/doc/icpc2.png
191
+ - spec/data/images/ch.elexis.icpc/doc/icpc3.png
192
+ - spec/data/images/ch.elexis.icpc/doc/icpc4.png
193
+ - spec/data/images/ch.elexis.icpc/doc/icpc5.png
194
+ - spec/data/images/ch.elexis.icpc/doc/icpc6.png
195
+ - spec/data/images/ch.elexis.icpc/doc/icpc7.png
196
+ - spec/data/images/ch.elexis.icpc/doc/icpc9.png
197
+ - spec/data/images/ch.elexis.icpc/doc/kabel.png
198
+ - spec/data/images/ch.elexis.icpc/doc/medevit_inbox1.png
199
+ - spec/data/images/ch.elexis.icpc/doc/test.mediawiki
200
+ - spec/data/images/ch.elexis.icpc/doc/test2.mediawiki
201
+ - spec/data/images/ch.elexis.icpc/plugin.xml
202
+ - spec/data/images/ch.elexis.notes/.project
203
+ - spec/data/images/ch.elexis.notes/META-INF/MANIFEST.MF
204
+ - spec/data/images/ch.elexis.notes/doc/At.medevit.medelexis.text.msword:WordBriefe.png
205
+ - spec/data/images/ch.elexis.notes/doc/Ch.medelexis.openoffice:TextverarbeitungSettings.png
206
+ - spec/data/images/ch.elexis.notes/doc/Icpc1.png
207
+ - spec/data/images/ch.elexis.notes/doc/kabel.png
208
+ - spec/data/images/ch.elexis.notes/doc/medidirect:use2.png
209
+ - spec/data/images/ch.elexis.notes/doc/test.mediawiki
210
+ - spec/data/images/ch.elexis.notes/plugin.properties
211
+ - spec/data/images/ch.elexis.notes/plugin.xml
212
+ - spec/data/images/ch.elexis.notes/plugin_de.properties
213
+ - spec/data/images/ch.elexis.notes/plugin_en.properties
214
+ - spec/data/images/ch.elexis.notes/plugin_fr.properties
215
+ - spec/data/images/doc_de/.project
216
+ - spec/data/images/elexis_api_test.png
152
217
  - spec/data/pull/ch.elexis.agenda/.project
153
218
  - spec/data/pull/ch.elexis.agenda/META-INF/MANIFEST.MF
154
219
  - spec/data/pull/ch.elexis.agenda/plugin.properties
@@ -184,11 +249,11 @@ files:
184
249
  - spec/data/push/ch.elexis.icpc/doc/icpc5.png
185
250
  - spec/data/push/ch.elexis.icpc/doc/test.mediawiki
186
251
  - spec/data/push/ch.elexis.icpc/plugin.xml
252
+ - spec/data/push/elexis_api_test.png
253
+ - spec/images_spec.rb
254
+ - spec/interface_spec.rb
187
255
  - spec/pull_spec.rb
188
- - spec/push_spec.rb
189
256
  - spec/spec_helper.rb
190
- - spec/update_images_spec.rb
191
- - spec/user_spec.rb
192
257
  homepage: http://wiki.elexis.info
193
258
  licenses:
194
259
  - GPLv3
@@ -216,6 +281,56 @@ summary: Interface between elexis source and wiki
216
281
  test_files:
217
282
  - spec/data/.gitignore
218
283
  - spec/data/doc/doc_de/.project
284
+ - spec/data/images/ch.elexis.agenda/.project
285
+ - spec/data/images/ch.elexis.agenda/META-INF/MANIFEST.MF
286
+ - spec/data/images/ch.elexis.agenda/doc/fixmedikationaufruf.png
287
+ - spec/data/images/ch.elexis.agenda/plugin.properties
288
+ - spec/data/images/ch.elexis.agenda/plugin.xml
289
+ - spec/data/images/ch.elexis.agenda/plugin_de.properties
290
+ - spec/data/images/ch.elexis.agenda/plugin_en.properties
291
+ - spec/data/images/ch.elexis.agenda/plugin_fr.properties
292
+ - spec/data/images/ch.elexis.core.application.feature/.project
293
+ - spec/data/images/ch.elexis.core.application.feature/build.properties
294
+ - spec/data/images/ch.elexis.core.application.feature/feature.xml
295
+ - spec/data/images/ch.elexis.core.application.feature/pom.xml
296
+ - spec/data/images/ch.elexis.icpc/.project
297
+ - spec/data/images/ch.elexis.icpc/META-INF/MANIFEST.MF
298
+ - spec/data/images/ch.elexis.icpc/doc/Com.hilotec.elexis.opendocument_anleitung_opendocument_1.png
299
+ - spec/data/images/ch.elexis.icpc/doc/FixmedikationAufruf.png
300
+ - spec/data/images/ch.elexis.icpc/doc/Icpc8.png
301
+ - spec/data/images/ch.elexis.icpc/doc/ch.elexis.icpc_icpc1.png
302
+ - spec/data/images/ch.elexis.icpc/doc/disposan.gif
303
+ - spec/data/images/ch.elexis.icpc/doc/elexis_logo.jpg
304
+ - spec/data/images/ch.elexis.icpc/doc/favicon_green.png
305
+ - spec/data/images/ch.elexis.icpc/doc/icpc0.png
306
+ - spec/data/images/ch.elexis.icpc/doc/icpc1.png
307
+ - spec/data/images/ch.elexis.icpc/doc/icpc2.png
308
+ - spec/data/images/ch.elexis.icpc/doc/icpc3.png
309
+ - spec/data/images/ch.elexis.icpc/doc/icpc4.png
310
+ - spec/data/images/ch.elexis.icpc/doc/icpc5.png
311
+ - spec/data/images/ch.elexis.icpc/doc/icpc6.png
312
+ - spec/data/images/ch.elexis.icpc/doc/icpc7.png
313
+ - spec/data/images/ch.elexis.icpc/doc/icpc9.png
314
+ - spec/data/images/ch.elexis.icpc/doc/kabel.png
315
+ - spec/data/images/ch.elexis.icpc/doc/medevit_inbox1.png
316
+ - spec/data/images/ch.elexis.icpc/doc/test.mediawiki
317
+ - spec/data/images/ch.elexis.icpc/doc/test2.mediawiki
318
+ - spec/data/images/ch.elexis.icpc/plugin.xml
319
+ - spec/data/images/ch.elexis.notes/.project
320
+ - spec/data/images/ch.elexis.notes/META-INF/MANIFEST.MF
321
+ - spec/data/images/ch.elexis.notes/doc/At.medevit.medelexis.text.msword:WordBriefe.png
322
+ - spec/data/images/ch.elexis.notes/doc/Ch.medelexis.openoffice:TextverarbeitungSettings.png
323
+ - spec/data/images/ch.elexis.notes/doc/Icpc1.png
324
+ - spec/data/images/ch.elexis.notes/doc/kabel.png
325
+ - spec/data/images/ch.elexis.notes/doc/medidirect:use2.png
326
+ - spec/data/images/ch.elexis.notes/doc/test.mediawiki
327
+ - spec/data/images/ch.elexis.notes/plugin.properties
328
+ - spec/data/images/ch.elexis.notes/plugin.xml
329
+ - spec/data/images/ch.elexis.notes/plugin_de.properties
330
+ - spec/data/images/ch.elexis.notes/plugin_en.properties
331
+ - spec/data/images/ch.elexis.notes/plugin_fr.properties
332
+ - spec/data/images/doc_de/.project
333
+ - spec/data/images/elexis_api_test.png
219
334
  - spec/data/pull/ch.elexis.agenda/.project
220
335
  - spec/data/pull/ch.elexis.agenda/META-INF/MANIFEST.MF
221
336
  - spec/data/pull/ch.elexis.agenda/plugin.properties
@@ -251,8 +366,8 @@ test_files:
251
366
  - spec/data/push/ch.elexis.icpc/doc/icpc5.png
252
367
  - spec/data/push/ch.elexis.icpc/doc/test.mediawiki
253
368
  - spec/data/push/ch.elexis.icpc/plugin.xml
369
+ - spec/data/push/elexis_api_test.png
370
+ - spec/images_spec.rb
371
+ - spec/interface_spec.rb
254
372
  - spec/pull_spec.rb
255
- - spec/push_spec.rb
256
373
  - spec/spec_helper.rb
257
- - spec/update_images_spec.rb
258
- - spec/user_spec.rb
data/History.txt DELETED
@@ -1,41 +0,0 @@
1
- === 0.4.8 / 15.08.2015
2
-
3
- * Push doc_de and doc_fr, too
4
-
5
- === 0.4.7 / 15.08.2015
6
-
7
- * Push features, too
8
-
9
- === 0.4.6 / 15.08.2015
10
-
11
- * Replace [[Datei:|[[Image: by [[File:
12
- * Cleanup readme.textile
13
- * Avoid adding an EOL at the end of the file
14
-
15
- === 0.4.5 / 14.08.2015
16
-
17
- * Don't report plugin without documenteation, as only features are required to have one
18
-
19
- === 0.4.4 / 14.08.2015
20
-
21
- * Check whether all features have an entry in the Matrix_3.0 page
22
- * Create logical link inside a doc directory. This allows the mylyn preview to work
23
- * Allow images without a directory in their name.
24
-
25
- === 0.4.3 / 07.08.2015
26
-
27
- * Use gem eclipse-plugin from rubygem not github
28
-
29
- === 0.4.2 / 29.07.2015
30
-
31
- * Remove and correct obsolete image with name like <id>_somename.png
32
- * Report errors at the end of pulling
33
-
34
- === 0.4.1 / 29.07.2015
35
-
36
- * Verify/correct path of all references images
37
-
38
- === 0.4 / 29.07.2015
39
-
40
- * Fixed some problems when uploading images
41
-
data/bin/wiki_pull_daily DELETED
@@ -1,28 +0,0 @@
1
- #!/bin/env ruby
2
-
3
- require 'elexis/wiki/interface/workspace'
4
-
5
- workspace = Elexis::Wiki::Interface::Workspace.new(Dir.pwd)
6
- workspace.pull
7
- files = Dir.glob('doc_??') +
8
- Dir.glob('*/doc/*.mediawiki') +
9
- Dir.glob('*/doc/*.png')
10
- Dir.glob('*/doc/*.jpg')
11
- Dir.glob('*/doc/*.gif')
12
- (Dir.glob("doc_??/*") + Dir.glob('*/doc/*')).each{|f| files << f if File.symlink?(f) }
13
- files.each{
14
- |file|
15
- if /:/.match(File.basename(file))
16
- puts "You may not add a file containg ':' or it will break git for Windows. Remove/rename #{file}"
17
- exit 2
18
- end
19
- }
20
- if true
21
- system("git add -f #{files.join(' ')}")
22
- system("git status")
23
- system("git commit --all -m '#{File.basename(__FILE__)}: #{Date.today.to_s} from #{workspace.wiki.sub(/api.php/i, '')}'")
24
- system("git status")
25
- system("git log -1")
26
- # system("git push")
27
- end
28
- workspace.show_missing(true)
@@ -1,7 +0,0 @@
1
- module Elexis
2
- module Wiki
3
- module Interface
4
- VERSION = "0.4.8"
5
- end
6
- end
7
- end