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
data/spec/user_spec.rb DELETED
@@ -1,32 +0,0 @@
1
- #encoding : utf-8
2
- require 'spec_helper'
3
-
4
- require 'elexis/wiki/interface'
5
- require "elexis/wiki/interface/workspace"
6
- describe 'Plugin' do
7
-
8
- def remove_all_mediawikii
9
- files2rm = Dir.glob("#{@dataDir}/**/*.mediawiki") + Dir.glob("#{@dataDir}/**/*.png")
10
- FileUtils.rm(files2rm, :verbose => $VERBOSE) if files2rm.size > 0
11
- end
12
- before :all do
13
- @dataDir = File.expand_path(File.join(File.dirname(__FILE__), 'data', 'pull'))
14
- end
15
-
16
- before :each do
17
- remove_all_mediawikii
18
- end
19
-
20
- after :each do
21
- remove_all_mediawikii
22
- end
23
-
24
- it "should show all users" do
25
- workspace = Elexis::Wiki::Interface::Workspace.new(@dataDir)
26
- wiki_users = workspace.mw.users
27
- puts "We have #{wiki_users.size} wiki users"
28
- expect wiki_users.size <= 50
29
- contribs = workspace.mw.contributions(wiki_users.first)
30
- end
31
-
32
- end