ree 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ree/core/package_schema_loader.rb +4 -4
- data/lib/ree/core/packages_schema_loader.rb +5 -5
- data/lib/ree/version.rb +1 -1
- data/lib/ree.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bf5e0c8684516ac9e2c26a6cbad0e0616a5ef1077da9a17952210bee81beaa8b
|
|
4
|
+
data.tar.gz: e35b6f677d0b3d448b68d67479a6ad8d9198387c6608db32f32dd5e38b3fec5e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51f84f4eab9cc867af7a9785c9d7556e20a179fb5997800d52a49d4b2eb609a7063396d85ff856e78cd6c39f0c96d0e89ed3b2b47ae93a36948ba7f12cd3b365
|
|
7
|
+
data.tar.gz: dd60d3b7438b9c6a1b2d68a06308921653abe35724d4ed573eff5320ef1035dad87f0f17a5c19e41908cdc68cc6b237dee3b5b69890baccfaf13402a0e28f017
|
data/Gemfile.lock
CHANGED
|
@@ -49,7 +49,7 @@ class Ree::PackageSchemaLoader
|
|
|
49
49
|
if !File.exists?(abs_schema_path)
|
|
50
50
|
raise Ree::Error.new("File not found: #{abs_schema_path}", :invalid_package_schema)
|
|
51
51
|
end
|
|
52
|
-
|
|
52
|
+
|
|
53
53
|
json_schema = begin
|
|
54
54
|
JSON.load_file(abs_schema_path)
|
|
55
55
|
rescue
|
|
@@ -57,12 +57,12 @@ class Ree::PackageSchemaLoader
|
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
schema_type = json_schema.fetch(Schema::SCHEMA_TYPE)
|
|
60
|
-
|
|
60
|
+
|
|
61
61
|
if schema_type != Schema::PACKAGE
|
|
62
62
|
raise Ree::Error.new("Invalid schema type: #{abs_schema_path}", :invalid_package_schema)
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
-
schema_version = json_schema.
|
|
65
|
+
schema_version = json_schema.fetch(Schema::SCHEMA_VERSION) { Schema::SCHEMA_VERSION_NUMBER }
|
|
66
66
|
entry_rpath = json_schema.fetch(Schema::ENTRY_PATH)
|
|
67
67
|
package_name = json_schema.fetch(Schema::NAME).to_sym
|
|
68
68
|
|
|
@@ -118,7 +118,7 @@ class Ree::PackageSchemaLoader
|
|
|
118
118
|
schema_rpath,
|
|
119
119
|
Ree::PathHelper.object_rpath(schema_rpath),
|
|
120
120
|
)
|
|
121
|
-
|
|
121
|
+
|
|
122
122
|
object.set_package(package.name)
|
|
123
123
|
|
|
124
124
|
package.set_object(object)
|
|
@@ -18,9 +18,9 @@ class Ree::PackagesSchemaLoader
|
|
|
18
18
|
# }
|
|
19
19
|
# ]
|
|
20
20
|
# }
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
Schema = Ree::PackagesSchema
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
# @param [String] path Absolute path to Packages.schema.json file
|
|
25
25
|
# @param Nilor[Ree::PackagesStore] packages_store Existing packages store
|
|
26
26
|
# @return [Ree::PackagesStore]
|
|
@@ -36,12 +36,12 @@ class Ree::PackagesSchemaLoader
|
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
schema_type = schema.fetch(Schema::SCHEMA_TYPE)
|
|
39
|
-
|
|
39
|
+
|
|
40
40
|
if schema_type != Schema::PACKAGES
|
|
41
41
|
raise Ree::Error.new("Invalid schema type: #{abs_schema_path}", :invalid_packages_schema)
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
-
schema_version = schema.fetch(Schema::SCHEMA_VERSION)
|
|
44
|
+
schema_version = schema.fetch(Schema::SCHEMA_VERSION) { Schema::SCHEMA_VERSION_NUMBER }
|
|
45
45
|
data = schema.fetch(Schema::PACKAGES)
|
|
46
46
|
packages_store ||= Ree::PackagesStore.new()
|
|
47
47
|
names = {}
|
|
@@ -78,7 +78,7 @@ class Ree::PackagesSchemaLoader
|
|
|
78
78
|
raise Ree::Error.new("Unable to add package `#{existing.name}` from `#{package.gem_name}` gem. Package was already added from `#{existing.gem_name}` gem.", :duplicate_package)
|
|
79
79
|
end
|
|
80
80
|
end
|
|
81
|
-
|
|
81
|
+
|
|
82
82
|
packages_store.add_package(
|
|
83
83
|
Ree::Package.new(
|
|
84
84
|
schema_version,
|
data/lib/ree/version.rb
CHANGED
data/lib/ree.rb
CHANGED
|
@@ -244,6 +244,7 @@ module Ree
|
|
|
244
244
|
facade.load_packages_schema
|
|
245
245
|
|
|
246
246
|
facade.packages_store.packages.each do |package|
|
|
247
|
+
next if package.gem?
|
|
247
248
|
puts("Generating Package.schema.json for :#{package.name} package") if !silence
|
|
248
249
|
|
|
249
250
|
facade.load_entire_package(package.name)
|