eclipse-plugin 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +6 -7
  3. data/Changelog +4 -1
  4. data/lib/eclipse/plugin/version.rb +1 -1
  5. data/lib/eclipse/workspace.rb +3 -4
  6. data/spec/data/source/{ch.elexis.core.application → bundles/ch.elexis.core.application}/.project +0 -0
  7. data/spec/data/source/{ch.elexis.core.application → bundles/ch.elexis.core.application}/META-INF/MANIFEST.MF +0 -0
  8. data/spec/data/source/{ch.elexis.core.application → bundles/ch.elexis.core.application}/plugin.properties +0 -0
  9. data/spec/data/source/{ch.elexis.core.application → bundles/ch.elexis.core.application}/plugin.xml +0 -0
  10. data/spec/data/source/{ch.elexis.core.application → bundles/ch.elexis.core.application}/plugin_de.properties +0 -0
  11. data/spec/data/source/{ch.elexis.core.application → bundles/ch.elexis.core.application}/plugin_en.properties +0 -0
  12. data/spec/data/source/{ch.elexis.core.application → bundles/ch.elexis.core.application}/plugin_fr.properties +0 -0
  13. data/spec/data/source/{ch.elexis.core.ui.contacts → bundles/ch.elexis.core.ui.contacts}/.project +0 -0
  14. data/spec/data/source/{ch.elexis.core.ui.contacts → bundles/ch.elexis.core.ui.contacts}/META-INF/MANIFEST.MF +0 -0
  15. data/spec/data/source/{ch.elexis.core.ui.contacts → bundles/ch.elexis.core.ui.contacts}/plugin.properties +0 -0
  16. data/spec/data/source/{ch.elexis.core.ui.contacts → bundles/ch.elexis.core.ui.contacts}/plugin.xml +0 -0
  17. data/spec/data/source/{ch.elexis.core.ui.contacts → bundles/ch.elexis.core.ui.contacts}/plugin_de.properties +0 -0
  18. data/spec/data/source/{ch.elexis.core.ui.contacts → bundles/ch.elexis.core.ui.contacts}/plugin_en.properties +0 -0
  19. data/spec/data/source/{ch.elexis.core.ui.contacts → bundles/ch.elexis.core.ui.contacts}/plugin_fr.properties +0 -0
  20. data/spec/data/source/{ch.elexis.icpc → bundles/ch.elexis.icpc}/.project +0 -0
  21. data/spec/data/source/{ch.elexis.icpc → bundles/ch.elexis.icpc}/META-INF/MANIFEST.MF +0 -0
  22. data/spec/data/source/{ch.elexis.icpc → bundles/ch.elexis.icpc}/plugin.xml +0 -0
  23. data/spec/data/source/{ch.elexis.core.application.feature → features/ch.elexis.core.application.feature}/.project +0 -0
  24. data/spec/data/source/{ch.elexis.core.application.feature → features/ch.elexis.core.application.feature}/build.properties +0 -0
  25. data/spec/data/source/{ch.elexis.core.application.feature → features/ch.elexis.core.application.feature}/feature.xml +0 -0
  26. data/spec/data/source/{ch.elexis.core.application.feature → features/ch.elexis.core.application.feature}/pom.xml +0 -0
  27. data/spec/data/source/{ch.elexis.icpc.feature → features/ch.elexis.icpc.feature}/.project +0 -0
  28. data/spec/data/source/{ch.elexis.icpc.feature → features/ch.elexis.icpc.feature}/build.properties +0 -0
  29. data/spec/data/source/{ch.elexis.icpc.feature → features/ch.elexis.icpc.feature}/feature.xml +0 -0
  30. data/spec/data/source/{ch.elexis.icpc.feature → features/ch.elexis.icpc.feature}/pom.xml +0 -0
  31. data/spec/feature_spec.rb +1 -1
  32. data/spec/plugin_spec.rb +1 -1
  33. data/spec/workspace_spec.rb +1 -1
  34. metadata +52 -52
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b058552e5ae363d8f6a8afbf0c4e0a4bfa45c82e
4
- data.tar.gz: dbf4069714896c067fd53c1c227377082220beba
3
+ metadata.gz: c8f527c95cba2316d028d916775b9ab0cc4d9fe0
4
+ data.tar.gz: 7898baca4dcca5b98d3b87743d813d344bf6c6ec
5
5
  SHA512:
6
- metadata.gz: 17963695852c164b6fd8a9725caa08f8b2946c736cc3ceb9e3d7c573364d17ea8fd9065efb9a2593540a494484e1168bb4fe69891f93862f453d4591c81e8aff
7
- data.tar.gz: b5e24aa30dfa9a94f0f3ffdbb170fc8871dfd90ebe3a8c828dc967a30de25ac9a69ed657ef9ad2f599595d553f70ab139fca2b0e24edd61c44125c722e437a7e
6
+ metadata.gz: bbff3538bdd1598bad0591c48e6cb3cf0e1519b56bea4d6af38565aacdb6080d63e04c6f4b28ef9d6bde266f3dc95bdddefba0b60efe51706aa24bd7ba2f28dd
7
+ data.tar.gz: 1426505f81b9acdc72aa5cf6c42eef5ccb1188b947cf03a1ba7572f25537e9838c76fcacf24c9edc3673c4ecf1f249443265b34a7e83e9e6358548a69729cb7f
@@ -1,5 +1,5 @@
1
1
  language: ruby
2
-
2
+
3
3
  script:
4
4
  - bundle exec rspec
5
5
  - bundle exec rake install
@@ -7,15 +7,14 @@ script:
7
7
  install: bundle install --deployment --without debugger
8
8
 
9
9
  rvm:
10
- # - 1.8.7 cannot run on ruby 1.8 because mediawiki-gateway requires at least Ruby 1.9
11
- - 1.9.3
12
- - 2.1.2
13
- - 2.2.0
10
+ # - 2.2.x or earlier cannot run because mediawiki-butt requires at least Ruby 2.3
11
+ - 2.3.4
12
+ - 2.4.1
13
+ - 2.5.0
14
14
 
15
15
  matrix:
16
16
  allow_failures:
17
- - rvm: 2.2.0
18
- - rvm: 2.1.2
17
+ - rvm: 2.3.4
19
18
 
20
19
  notifications:
21
20
  email:
data/Changelog CHANGED
@@ -1,6 +1,9 @@
1
+ 0.4.2 # 2018.08.09
2
+ - Fix parsing new Elexis pomless layout with nested plugins/features
3
+
1
4
  0.0.2 # 2014.04.21
2
5
  - support parsing a source plugin/workspace
3
6
  - use rubyzip < 1.0.0 to make it work with ruby 1.8.7 (which is still commonly used in MacOSX)
4
7
 
5
8
  0.0.1 # 2014.04.21
6
- - initial release
9
+ - initial release
@@ -1,5 +1,5 @@
1
1
  module Eclipse
2
2
  module Plugin
3
- VERSION = "0.4.1"
3
+ VERSION = "0.4.2"
4
4
  end
5
5
  end
@@ -29,15 +29,14 @@ module Eclipse
29
29
  ['plugins', 'features'].each{ |subdir|
30
30
  dir = File.join(@workspace_dir, subdir)
31
31
  if File.directory?(dir)
32
- isInstallation = true
33
- parsePluginDir(dir)
32
+ isInstallation = true if parsePluginDir(dir)
34
33
  end
35
34
  }
36
35
  parse_sub_dirs unless isInstallation
37
36
  end
38
37
 
39
38
  def parse_sub_dirs
40
- Dir.glob("#{@workspace_dir}/*").each{
39
+ (Dir.glob("#{@workspace_dir}/*")+Dir.glob("#{@workspace_dir}/*/*")).compact.each{
41
40
  |item|
42
41
  proj = File.join(item, '.project')
43
42
  name = nil
@@ -70,4 +69,4 @@ module Eclipse
70
69
  info.preferencePage_categories.each{ |k, v| @preferencePage_categories[k] = v }
71
70
  end
72
71
  end
73
- end
72
+ end
@@ -12,7 +12,7 @@ describe 'Feature' do
12
12
  end
13
13
 
14
14
  it "must be able to analyse a feature.xml" do
15
- feature = File.join(@dataDir, 'source', FEATURE_NAME)
15
+ feature = File.join(@dataDir, 'source', 'features', FEATURE_NAME)
16
16
  f_info = Eclipse::Feature::Info.new(feature)
17
17
  f_info.symbolicName.should == FEATURE_NAME
18
18
  f_info.included_features.should == ["ch.docbox.elexis.feature"]
@@ -76,7 +76,7 @@ describe 'Plugin' do
76
76
  end
77
77
 
78
78
  it "should work with a source plugin" do
79
- info = Eclipse::Plugin::Info.new(File.join(@dataDir, 'source', 'ch.elexis.core.ui.contacts'))
79
+ info = Eclipse::Plugin::Info.new(File.join(@dataDir, 'source', 'bundles', 'ch.elexis.core.ui.contacts'))
80
80
  info.jar_or_src.should_not be nil
81
81
  info.views.first.should_not be nil
82
82
  info.perspectives.first.should_not be nil
@@ -60,4 +60,4 @@ describe 'workspace' do
60
60
  end
61
61
 
62
62
 
63
- end
63
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eclipse-plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Niklaus Giger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-11 00:00:00.000000000 Z
11
+ date: 2018-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
@@ -120,31 +120,31 @@ files:
120
120
  - spec/data/installation/plugins/ch.elexis.laborimport.hl7.allg-3.0.0-SNAPSHOT.jar
121
121
  - spec/data/installation/plugins/org.iatrix_3.0.0.v20140313-1017.jar
122
122
  - spec/data/plugin_de.properties
123
- - spec/data/source/ch.elexis.core.application.feature/.project
124
- - spec/data/source/ch.elexis.core.application.feature/build.properties
125
- - spec/data/source/ch.elexis.core.application.feature/feature.xml
126
- - spec/data/source/ch.elexis.core.application.feature/pom.xml
127
- - spec/data/source/ch.elexis.core.application/.project
128
- - spec/data/source/ch.elexis.core.application/META-INF/MANIFEST.MF
129
- - spec/data/source/ch.elexis.core.application/plugin.properties
130
- - spec/data/source/ch.elexis.core.application/plugin.xml
131
- - spec/data/source/ch.elexis.core.application/plugin_de.properties
132
- - spec/data/source/ch.elexis.core.application/plugin_en.properties
133
- - spec/data/source/ch.elexis.core.application/plugin_fr.properties
134
- - spec/data/source/ch.elexis.core.ui.contacts/.project
135
- - spec/data/source/ch.elexis.core.ui.contacts/META-INF/MANIFEST.MF
136
- - spec/data/source/ch.elexis.core.ui.contacts/plugin.properties
137
- - spec/data/source/ch.elexis.core.ui.contacts/plugin.xml
138
- - spec/data/source/ch.elexis.core.ui.contacts/plugin_de.properties
139
- - spec/data/source/ch.elexis.core.ui.contacts/plugin_en.properties
140
- - spec/data/source/ch.elexis.core.ui.contacts/plugin_fr.properties
141
- - spec/data/source/ch.elexis.icpc.feature/.project
142
- - spec/data/source/ch.elexis.icpc.feature/build.properties
143
- - spec/data/source/ch.elexis.icpc.feature/feature.xml
144
- - spec/data/source/ch.elexis.icpc.feature/pom.xml
145
- - spec/data/source/ch.elexis.icpc/.project
146
- - spec/data/source/ch.elexis.icpc/META-INF/MANIFEST.MF
147
- - spec/data/source/ch.elexis.icpc/plugin.xml
123
+ - spec/data/source/bundles/ch.elexis.core.application/.project
124
+ - spec/data/source/bundles/ch.elexis.core.application/META-INF/MANIFEST.MF
125
+ - spec/data/source/bundles/ch.elexis.core.application/plugin.properties
126
+ - spec/data/source/bundles/ch.elexis.core.application/plugin.xml
127
+ - spec/data/source/bundles/ch.elexis.core.application/plugin_de.properties
128
+ - spec/data/source/bundles/ch.elexis.core.application/plugin_en.properties
129
+ - spec/data/source/bundles/ch.elexis.core.application/plugin_fr.properties
130
+ - spec/data/source/bundles/ch.elexis.core.ui.contacts/.project
131
+ - spec/data/source/bundles/ch.elexis.core.ui.contacts/META-INF/MANIFEST.MF
132
+ - spec/data/source/bundles/ch.elexis.core.ui.contacts/plugin.properties
133
+ - spec/data/source/bundles/ch.elexis.core.ui.contacts/plugin.xml
134
+ - spec/data/source/bundles/ch.elexis.core.ui.contacts/plugin_de.properties
135
+ - spec/data/source/bundles/ch.elexis.core.ui.contacts/plugin_en.properties
136
+ - spec/data/source/bundles/ch.elexis.core.ui.contacts/plugin_fr.properties
137
+ - spec/data/source/bundles/ch.elexis.icpc/.project
138
+ - spec/data/source/bundles/ch.elexis.icpc/META-INF/MANIFEST.MF
139
+ - spec/data/source/bundles/ch.elexis.icpc/plugin.xml
140
+ - spec/data/source/features/ch.elexis.core.application.feature/.project
141
+ - spec/data/source/features/ch.elexis.core.application.feature/build.properties
142
+ - spec/data/source/features/ch.elexis.core.application.feature/feature.xml
143
+ - spec/data/source/features/ch.elexis.core.application.feature/pom.xml
144
+ - spec/data/source/features/ch.elexis.icpc.feature/.project
145
+ - spec/data/source/features/ch.elexis.icpc.feature/build.properties
146
+ - spec/data/source/features/ch.elexis.icpc.feature/feature.xml
147
+ - spec/data/source/features/ch.elexis.icpc.feature/pom.xml
148
148
  - spec/feature_spec.rb
149
149
  - spec/helpers_spec.rb
150
150
  - spec/plugin_spec.rb
@@ -182,31 +182,31 @@ test_files:
182
182
  - spec/data/installation/plugins/ch.elexis.laborimport.hl7.allg-3.0.0-SNAPSHOT.jar
183
183
  - spec/data/installation/plugins/org.iatrix_3.0.0.v20140313-1017.jar
184
184
  - spec/data/plugin_de.properties
185
- - spec/data/source/ch.elexis.core.application.feature/.project
186
- - spec/data/source/ch.elexis.core.application.feature/build.properties
187
- - spec/data/source/ch.elexis.core.application.feature/feature.xml
188
- - spec/data/source/ch.elexis.core.application.feature/pom.xml
189
- - spec/data/source/ch.elexis.core.application/.project
190
- - spec/data/source/ch.elexis.core.application/META-INF/MANIFEST.MF
191
- - spec/data/source/ch.elexis.core.application/plugin.properties
192
- - spec/data/source/ch.elexis.core.application/plugin.xml
193
- - spec/data/source/ch.elexis.core.application/plugin_de.properties
194
- - spec/data/source/ch.elexis.core.application/plugin_en.properties
195
- - spec/data/source/ch.elexis.core.application/plugin_fr.properties
196
- - spec/data/source/ch.elexis.core.ui.contacts/.project
197
- - spec/data/source/ch.elexis.core.ui.contacts/META-INF/MANIFEST.MF
198
- - spec/data/source/ch.elexis.core.ui.contacts/plugin.properties
199
- - spec/data/source/ch.elexis.core.ui.contacts/plugin.xml
200
- - spec/data/source/ch.elexis.core.ui.contacts/plugin_de.properties
201
- - spec/data/source/ch.elexis.core.ui.contacts/plugin_en.properties
202
- - spec/data/source/ch.elexis.core.ui.contacts/plugin_fr.properties
203
- - spec/data/source/ch.elexis.icpc.feature/.project
204
- - spec/data/source/ch.elexis.icpc.feature/build.properties
205
- - spec/data/source/ch.elexis.icpc.feature/feature.xml
206
- - spec/data/source/ch.elexis.icpc.feature/pom.xml
207
- - spec/data/source/ch.elexis.icpc/.project
208
- - spec/data/source/ch.elexis.icpc/META-INF/MANIFEST.MF
209
- - spec/data/source/ch.elexis.icpc/plugin.xml
185
+ - spec/data/source/bundles/ch.elexis.core.application/.project
186
+ - spec/data/source/bundles/ch.elexis.core.application/META-INF/MANIFEST.MF
187
+ - spec/data/source/bundles/ch.elexis.core.application/plugin.properties
188
+ - spec/data/source/bundles/ch.elexis.core.application/plugin.xml
189
+ - spec/data/source/bundles/ch.elexis.core.application/plugin_de.properties
190
+ - spec/data/source/bundles/ch.elexis.core.application/plugin_en.properties
191
+ - spec/data/source/bundles/ch.elexis.core.application/plugin_fr.properties
192
+ - spec/data/source/bundles/ch.elexis.core.ui.contacts/.project
193
+ - spec/data/source/bundles/ch.elexis.core.ui.contacts/META-INF/MANIFEST.MF
194
+ - spec/data/source/bundles/ch.elexis.core.ui.contacts/plugin.properties
195
+ - spec/data/source/bundles/ch.elexis.core.ui.contacts/plugin.xml
196
+ - spec/data/source/bundles/ch.elexis.core.ui.contacts/plugin_de.properties
197
+ - spec/data/source/bundles/ch.elexis.core.ui.contacts/plugin_en.properties
198
+ - spec/data/source/bundles/ch.elexis.core.ui.contacts/plugin_fr.properties
199
+ - spec/data/source/bundles/ch.elexis.icpc/.project
200
+ - spec/data/source/bundles/ch.elexis.icpc/META-INF/MANIFEST.MF
201
+ - spec/data/source/bundles/ch.elexis.icpc/plugin.xml
202
+ - spec/data/source/features/ch.elexis.core.application.feature/.project
203
+ - spec/data/source/features/ch.elexis.core.application.feature/build.properties
204
+ - spec/data/source/features/ch.elexis.core.application.feature/feature.xml
205
+ - spec/data/source/features/ch.elexis.core.application.feature/pom.xml
206
+ - spec/data/source/features/ch.elexis.icpc.feature/.project
207
+ - spec/data/source/features/ch.elexis.icpc.feature/build.properties
208
+ - spec/data/source/features/ch.elexis.icpc.feature/feature.xml
209
+ - spec/data/source/features/ch.elexis.icpc.feature/pom.xml
210
210
  - spec/feature_spec.rb
211
211
  - spec/helpers_spec.rb
212
212
  - spec/plugin_spec.rb