ree 1.0.3 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ree/cli/generate_package_schema.rb +1 -1
- data/lib/ree/core/path_helper.rb +8 -5
- data/lib/ree/object_compiler.rb +1 -1
- data/lib/ree/version.rb +1 -1
- data/lib/ree.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e642b0a99e6592bbe30497720a4e2406de6bea0896a4f50c1bbe8bf87158e91b
|
4
|
+
data.tar.gz: 6281548c7fc086a0b5dfe356bb4ac960ff538b64671d606f777561181e0b3c5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83ed80a885c16888afb567e0675a76284642ce93ccd043a3c3c9bc2ad68bc46de12bf7b4e67417c86c4ed62ee56b163bafcf6544eaceb25316ac087df754ff53
|
7
|
+
data.tar.gz: 394ce668e45e92cff42347d6a09d51871b6117a91f5e37dd0d7545c26d0a38d03f48af7e9cc8fb02d7117d443d669f51b23ea999a4d4a6a28b7b59d103986e00
|
data/Gemfile.lock
CHANGED
@@ -31,7 +31,7 @@ module Ree
|
|
31
31
|
schema_path = Ree::PathHelper.abs_package_schema_path(package)
|
32
32
|
|
33
33
|
if include_objects
|
34
|
-
schemas_path = Ree::PathHelper.
|
34
|
+
schemas_path = Ree::PathHelper.abs_package_schemas_dir(package)
|
35
35
|
|
36
36
|
FileUtils.rm_rf(schemas_path)
|
37
37
|
FileUtils.mkdir_p(schemas_path)
|
data/lib/ree/core/path_helper.rb
CHANGED
@@ -6,11 +6,6 @@ class Ree::PathHelper
|
|
6
6
|
SCHEMAS_FOLDER = 'schemas'
|
7
7
|
|
8
8
|
class << self
|
9
|
-
def abs_package_object_schemas_path(package)
|
10
|
-
root_dir = project_root_dir(package)
|
11
|
-
File.join(root_dir, SCHEMAS_FOLDER)
|
12
|
-
end
|
13
|
-
|
14
9
|
# @param [Ree::Object] object
|
15
10
|
# @return [String] Absolute object file path
|
16
11
|
def abs_object_path(object)
|
@@ -71,6 +66,14 @@ class Ree::PathHelper
|
|
71
66
|
)
|
72
67
|
end
|
73
68
|
|
69
|
+
# @param [Ree::Package] package Package schema
|
70
|
+
# @return [String] Absolute package schemas folder path (ex. /data/project/bc/accounts/schemas)
|
71
|
+
def abs_package_schemas_dir(package)
|
72
|
+
File.join(
|
73
|
+
project_root_dir(package), package.dir, Ree::SCHEMAS
|
74
|
+
)
|
75
|
+
end
|
76
|
+
|
74
77
|
# @param [Ree::Package] package Package schema
|
75
78
|
# @return [String] Absolute package schema path
|
76
79
|
def abs_package_schema_path(package)
|
data/lib/ree/object_compiler.rb
CHANGED
data/lib/ree/version.rb
CHANGED
data/lib/ree.rb
CHANGED
@@ -245,12 +245,13 @@ module Ree
|
|
245
245
|
|
246
246
|
facade.packages_store.packages.each do |package|
|
247
247
|
next if package.gem?
|
248
|
+
next if package.dir.nil?
|
248
249
|
puts("Generating Package.schema.json for :#{package.name} package") if !silence
|
249
250
|
|
250
251
|
facade.load_entire_package(package.name)
|
251
252
|
facade.write_package_schema(package.name)
|
252
253
|
|
253
|
-
schemas_path = Ree::PathHelper.
|
254
|
+
schemas_path = Ree::PathHelper.abs_package_schemas_dir(package)
|
254
255
|
|
255
256
|
FileUtils.rm_rf(schemas_path)
|
256
257
|
FileUtils.mkdir_p(schemas_path)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ruslan Gatiyatov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|