ree 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e57edb7f0df533aeaa9eee8080c4f06866d79fecef5723d3c7ec7aff25588ad2
4
- data.tar.gz: 1362854e356e8d325938ded4c97c98062c9297b0d21ff6bf6fee65d8062305d8
3
+ metadata.gz: e642b0a99e6592bbe30497720a4e2406de6bea0896a4f50c1bbe8bf87158e91b
4
+ data.tar.gz: 6281548c7fc086a0b5dfe356bb4ac960ff538b64671d606f777561181e0b3c5a
5
5
  SHA512:
6
- metadata.gz: b01300e1c77ac9376979433fc530c936a7011b3442fbe237ab169d140169b9ee5793a3314e5759d9d7c956c3d3971906d2eae2c87af9975d3daa72ee491866fd
7
- data.tar.gz: 07cbdf0ca6a2ed2a34c3c5678703598831156beedb8abc27a40930ca27e85961b16b2a88ae4d0444c0984a59da33a1bb8b635446e87c252aaf7369dd7c2296ba
6
+ metadata.gz: 83ed80a885c16888afb567e0675a76284642ce93ccd043a3c3c9bc2ad68bc46de12bf7b4e67417c86c4ed62ee56b163bafcf6544eaceb25316ac087df754ff53
7
+ data.tar.gz: 394ce668e45e92cff42347d6a09d51871b6117a91f5e37dd0d7545c26d0a38d03f48af7e9cc8fb02d7117d443d669f51b23ea999a4d4a6a28b7b59d103986e00
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ree (1.0.4)
4
+ ree (1.0.5)
5
5
  commander (~> 4.6.0)
6
6
 
7
7
  GEM
@@ -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.abs_package_object_schemas_path(package)
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)
@@ -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/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ree
4
- VERSION = "1.0.4"
4
+ VERSION = "1.0.5"
5
5
  end
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.abs_package_object_schemas_path(package)
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
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-08-29 00:00:00.000000000 Z
11
+ date: 2022-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander