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.
- checksums.yaml +5 -5
- data/README.md +494 -0
- data/Rakefile +19 -22
- data/exe/simp-install +1 -1
- data/exe/simp-media +1 -1
- data/exe/simp-metadata +1 -1
- data/lib/simp/install/command.rb +34 -35
- data/lib/simp/media.rb +0 -1
- data/lib/simp/media/command.rb +34 -35
- data/lib/simp/media/engine.rb +29 -35
- data/lib/simp/media/type.rb +1 -2
- data/lib/simp/media/type/base.rb +12 -4
- data/lib/simp/media/type/control-repo.rb +96 -107
- data/lib/simp/media/type/internet.rb +8 -8
- data/lib/simp/media/type/iso.rb +0 -1
- data/lib/simp/media/type/local.rb +18 -19
- data/lib/simp/media/type/tar.rb +37 -37
- data/lib/simp/metadata.rb +240 -258
- data/lib/simp/metadata/bootstrap_source.rb +93 -89
- data/lib/simp/metadata/buildinfo.rb +23 -23
- data/lib/simp/metadata/command.rb +60 -58
- data/lib/simp/metadata/commands.rb +1 -1
- data/lib/simp/metadata/commands/base.rb +28 -25
- data/lib/simp/metadata/commands/clone.rb +3 -5
- data/lib/simp/metadata/commands/component.rb +128 -90
- data/lib/simp/metadata/commands/delete.rb +4 -5
- data/lib/simp/metadata/commands/pry.rb +1 -3
- data/lib/simp/metadata/commands/release.rb +22 -23
- data/lib/simp/metadata/commands/releases.rb +1 -3
- data/lib/simp/metadata/commands/save.rb +10 -13
- data/lib/simp/metadata/commands/script.rb +11 -14
- data/lib/simp/metadata/commands/search.rb +15 -20
- data/lib/simp/metadata/commands/set-write-url.rb +1 -3
- data/lib/simp/metadata/commands/set-write.rb +1 -3
- data/lib/simp/metadata/commands/update.rb +9 -10
- data/lib/simp/metadata/component.rb +310 -154
- data/lib/simp/metadata/components.rb +15 -16
- data/lib/simp/metadata/engine.rb +31 -39
- data/lib/simp/metadata/fake_uri.rb +2 -0
- data/lib/simp/metadata/location.rb +99 -105
- data/lib/simp/metadata/locations.rb +19 -21
- data/lib/simp/metadata/release.rb +30 -39
- data/lib/simp/metadata/releases.rb +14 -15
- data/lib/simp/metadata/source.rb +69 -79
- data/lib/simp/metadata/version.rb +9 -0
- data/spec/simp/media/command_spec.rb +4 -5
- data/spec/simp/media/engine_spec.rb +14 -14
- data/spec/simp/media/type/control_repo_spec.rb +10 -12
- data/spec/simp/media/type/internet_spec.rb +11 -11
- data/spec/simp/media/type/iso_spec.rb +6 -7
- data/spec/simp/media/type/local_spec.rb +6 -8
- data/spec/simp/media/type/tar_spec.rb +6 -8
- data/spec/simp/metadata/buildinfo_spec.rb +19 -17
- data/spec/simp/metadata/commands/clone_spec.rb +4 -3
- data/spec/simp/metadata/component_spec.rb +43 -54
- data/spec/simp/metadata/engine_spec.rb +38 -41
- data/spec/simp/metadata/release_spec.rb +72 -79
- data/spec/simp/metadata/source_spec.rb +8 -6
- data/spec/simp/metadata_spec.rb +95 -98
- data/spec/spec_helper.rb +33 -21
- metadata +5 -3
data/spec/spec_helper.rb
CHANGED
@@ -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
|
-
|
5
|
-
#SimpleCov.
|
6
|
-
SimpleCov.
|
7
|
-
|
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
|
-
|
11
|
-
|
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
|
-
|
17
|
-
|
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(
|
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(
|
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(
|
47
|
+
def release_diff_instance(attribute)
|
35
48
|
engine = Simp::Metadata::Engine.new(nil, nil)
|
36
|
-
release1 = engine.releases[
|
37
|
-
release2 = engine.releases[
|
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
|
+
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:
|
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.
|
258
|
+
rubygems_version: 2.7.7
|
257
259
|
signing_key:
|
258
260
|
specification_version: 4
|
259
261
|
summary: SIMP Metadata Library
|