simp-metadata 0.4.4 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +494 -0
  3. data/Rakefile +19 -22
  4. data/exe/simp-install +1 -1
  5. data/exe/simp-media +1 -1
  6. data/exe/simp-metadata +1 -1
  7. data/lib/simp/install/command.rb +34 -35
  8. data/lib/simp/media.rb +0 -1
  9. data/lib/simp/media/command.rb +34 -35
  10. data/lib/simp/media/engine.rb +29 -35
  11. data/lib/simp/media/type.rb +1 -2
  12. data/lib/simp/media/type/base.rb +12 -4
  13. data/lib/simp/media/type/control-repo.rb +96 -107
  14. data/lib/simp/media/type/internet.rb +8 -8
  15. data/lib/simp/media/type/iso.rb +0 -1
  16. data/lib/simp/media/type/local.rb +18 -19
  17. data/lib/simp/media/type/tar.rb +37 -37
  18. data/lib/simp/metadata.rb +240 -258
  19. data/lib/simp/metadata/bootstrap_source.rb +93 -89
  20. data/lib/simp/metadata/buildinfo.rb +23 -23
  21. data/lib/simp/metadata/command.rb +60 -58
  22. data/lib/simp/metadata/commands.rb +1 -1
  23. data/lib/simp/metadata/commands/base.rb +28 -25
  24. data/lib/simp/metadata/commands/clone.rb +3 -5
  25. data/lib/simp/metadata/commands/component.rb +128 -90
  26. data/lib/simp/metadata/commands/delete.rb +4 -5
  27. data/lib/simp/metadata/commands/pry.rb +1 -3
  28. data/lib/simp/metadata/commands/release.rb +22 -23
  29. data/lib/simp/metadata/commands/releases.rb +1 -3
  30. data/lib/simp/metadata/commands/save.rb +10 -13
  31. data/lib/simp/metadata/commands/script.rb +11 -14
  32. data/lib/simp/metadata/commands/search.rb +15 -20
  33. data/lib/simp/metadata/commands/set-write-url.rb +1 -3
  34. data/lib/simp/metadata/commands/set-write.rb +1 -3
  35. data/lib/simp/metadata/commands/update.rb +9 -10
  36. data/lib/simp/metadata/component.rb +310 -154
  37. data/lib/simp/metadata/components.rb +15 -16
  38. data/lib/simp/metadata/engine.rb +31 -39
  39. data/lib/simp/metadata/fake_uri.rb +2 -0
  40. data/lib/simp/metadata/location.rb +99 -105
  41. data/lib/simp/metadata/locations.rb +19 -21
  42. data/lib/simp/metadata/release.rb +30 -39
  43. data/lib/simp/metadata/releases.rb +14 -15
  44. data/lib/simp/metadata/source.rb +69 -79
  45. data/lib/simp/metadata/version.rb +9 -0
  46. data/spec/simp/media/command_spec.rb +4 -5
  47. data/spec/simp/media/engine_spec.rb +14 -14
  48. data/spec/simp/media/type/control_repo_spec.rb +10 -12
  49. data/spec/simp/media/type/internet_spec.rb +11 -11
  50. data/spec/simp/media/type/iso_spec.rb +6 -7
  51. data/spec/simp/media/type/local_spec.rb +6 -8
  52. data/spec/simp/media/type/tar_spec.rb +6 -8
  53. data/spec/simp/metadata/buildinfo_spec.rb +19 -17
  54. data/spec/simp/metadata/commands/clone_spec.rb +4 -3
  55. data/spec/simp/metadata/component_spec.rb +43 -54
  56. data/spec/simp/metadata/engine_spec.rb +38 -41
  57. data/spec/simp/metadata/release_spec.rb +72 -79
  58. data/spec/simp/metadata/source_spec.rb +8 -6
  59. data/spec/simp/metadata_spec.rb +95 -98
  60. data/spec/spec_helper.rb +33 -21
  61. metadata +5 -3
@@ -1,40 +1,52 @@
1
1
  require 'simplecov'
2
+
2
3
  $simp_metadata_debug_level = 'debug2'
3
4
  $simp_metadata_debug_output_disabled = true
4
- #SimpleCov.minimum_coverage 70
5
- #SimpleCov.minimum_coverage_by_file 30
6
- SimpleCov.start do
7
- add_filter "/vendor/"
5
+
6
+ # SimpleCov.minimum_coverage 70
7
+ # SimpleCov.minimum_coverage_by_file 30
8
+
9
+ if Dir.exist?(File.expand_path('../../lib', __FILE__))
10
+ require 'coveralls'
11
+ require 'simplecov'
12
+ require 'simplecov-console'
13
+ SimpleCov.formatters = [
14
+ SimpleCov::Formatter::HTMLFormatter,
15
+ SimpleCov::Formatter::Console
16
+ ]
17
+ SimpleCov.start do
18
+ track_files 'lib/**/*.rb'
19
+ add_filter '/spec'
20
+ add_filter '/vendor'
21
+ add_filter '/.vendor'
22
+ end
8
23
  end
24
+
9
25
  def test_component(engine = nil)
10
- if engine == nil
11
- engine = Simp::Metadata::Engine.new(nil, nil)
12
- end
13
- component1 = engine.releases["test-stub"].components["pupmod-simp-activemq"]
26
+ engine = Simp::Metadata::Engine.new(nil, nil) if engine.nil?
27
+ engine.releases['test-stub'].components['pupmod-simp-activemq']
14
28
  end
29
+
15
30
  def diff_component(engine = nil)
16
- if engine == nil
17
- engine = Simp::Metadata::Engine.new(nil, nil)
18
- end
19
- component1 = engine.releases["test-diff"].components["pupmod-simp-activemq"]
31
+ engine = Simp::Metadata::Engine.new(nil, nil) if engine.nil?
32
+ engine.releases['test-diff'].components['pupmod-simp-activemq']
20
33
  end
21
34
 
22
- def component_diff_instance(release1,release2, component, attribute)
35
+ def component_diff_instance(attribute)
23
36
  engine = Simp::Metadata::Engine.new(nil, nil)
24
37
  component1 = test_component(engine)
25
38
  component2 = diff_component(engine)
26
- component1.diff(component2,attribute)
39
+ component1.diff(component2, attribute)
27
40
  end
28
41
 
29
- def component_view_instance(release, component, attribute)
30
- comp = test_component()
42
+ def component_view_instance(attribute)
43
+ comp = test_component
31
44
  comp.view(attribute)
32
45
  end
33
46
 
34
- def release_diff_instance(release1, release2, attribute)
47
+ def release_diff_instance(attribute)
35
48
  engine = Simp::Metadata::Engine.new(nil, nil)
36
- release1 = engine.releases["test-stub"]
37
- release2 = engine.releases["test-diff"]
38
- release1.diff(release2,attribute)
49
+ release1 = engine.releases['test-stub']
50
+ release2 = engine.releases['test-diff']
51
+ release1.diff(release2, attribute)
39
52
  end
40
-
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simp-metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
+ - Brandon Riden
7
8
  - Dylan Cochran
8
9
  autorequire:
9
10
  bindir: exe
10
11
  cert_chain: []
11
- date: 2017-05-16 00:00:00.000000000 Z
12
+ date: 2018-09-06 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: pry
@@ -218,6 +219,7 @@ files:
218
219
  - lib/simp/metadata/release.rb
219
220
  - lib/simp/metadata/releases.rb
220
221
  - lib/simp/metadata/source.rb
222
+ - lib/simp/metadata/version.rb
221
223
  - spec/simp/media/command_spec.rb
222
224
  - spec/simp/media/engine_spec.rb
223
225
  - spec/simp/media/type/control_repo_spec.rb
@@ -253,7 +255,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
253
255
  version: '0'
254
256
  requirements: []
255
257
  rubyforge_project:
256
- rubygems_version: 2.6.13
258
+ rubygems_version: 2.7.7
257
259
  signing_key:
258
260
  specification_version: 4
259
261
  summary: SIMP Metadata Library