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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf5e0c8684516ac9e2c26a6cbad0e0616a5ef1077da9a17952210bee81beaa8b
4
- data.tar.gz: e35b6f677d0b3d448b68d67479a6ad8d9198387c6608db32f32dd5e38b3fec5e
3
+ metadata.gz: e642b0a99e6592bbe30497720a4e2406de6bea0896a4f50c1bbe8bf87158e91b
4
+ data.tar.gz: 6281548c7fc086a0b5dfe356bb4ac960ff538b64671d606f777561181e0b3c5a
5
5
  SHA512:
6
- metadata.gz: 51f84f4eab9cc867af7a9785c9d7556e20a179fb5997800d52a49d4b2eb609a7063396d85ff856e78cd6c39f0c96d0e89ed3b2b47ae93a36948ba7f12cd3b365
7
- data.tar.gz: dd60d3b7438b9c6a1b2d68a06308921653abe35724d4ed573eff5320ef1035dad87f0f17a5c19e41908cdc68cc6b237dee3b5b69890baccfaf13402a0e28f017
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.3)
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)
@@ -89,7 +89,7 @@ class Ree::ObjectCompiler
89
89
  eval_list.push(indent + "#{object.after_init}")
90
90
  end
91
91
 
92
- if object.compiled_frozen
92
+ if object.freeze?
93
93
  eval_list.push(indent + 'freeze')
94
94
  end
95
95
 
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.3"
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.3
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-05 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