ree 1.0.34 → 1.0.35

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: 3e99db4aa81882cc0db13252390f2a7e50b734ebd6e13ba78f13fdfe80a89684
4
- data.tar.gz: 556285d5ced07101cb736d8e855abea3ff5e60a56dd4c95342dc82e4d4f3514a
3
+ metadata.gz: 430a09654fd1fefd69e6027549eb184dc873df7475d52aa4523c37e31e27cd43
4
+ data.tar.gz: d80bac04108a35a65f62821d979f66efdc96d771c492f1c50bb64961fe0e95f2
5
5
  SHA512:
6
- metadata.gz: bf697e027c817282f59f6533cc35aa244aa92942cc3d60be24ac4558db94e4c525509e22e20835dc573e7f0f8532f42acd6c3a618d97a9df75b4f61989234fe6
7
- data.tar.gz: 76aa018f20cead0705951697da550ac225f681aa50fb39c7bafff17f8c00384d72dcfc483a2d98804621dd2ffd221d22976c6bf45c0cf4e56aa4a15ac3e1919a
6
+ metadata.gz: 5a8e1956af3506d256018cd74dbf9c9f77cfd20163aedff95b592c41da15fd80c9bc332e259b80d87500cae6c20df892936a0a8cf2fdc5d442fc95b885cbc40f
7
+ data.tar.gz: 6479948915d542ca34491e51cb229b6d94d9f5c5a982ccb9816f11ca6c10627ebaf4c3bb3e19e66f39d67204043013479f4fe5b73faee2972f871b96e37a9486
data/Gemfile.lock CHANGED
@@ -7,34 +7,38 @@ PATH
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- abbrev (0.1.2)
11
10
  commander (5.0.0)
12
11
  highline (~> 3.0.0)
13
- debug (1.6.2)
14
- irb (>= 1.3.6)
15
- reline (>= 0.3.1)
12
+ debug (1.9.1)
13
+ irb (~> 1.10)
14
+ reline (>= 0.3.8)
16
15
  diff-lcs (1.5.0)
17
- highline (3.0.0)
18
- abbrev
19
- io-console (0.5.11)
20
- irb (1.4.2)
21
- reline (>= 0.3.0)
22
- rake (13.0.6)
23
- reline (0.3.1)
16
+ highline (3.0.1)
17
+ io-console (0.7.2)
18
+ irb (1.11.1)
19
+ rdoc
20
+ reline (>= 0.4.2)
21
+ psych (5.1.2)
22
+ stringio
23
+ rake (13.1.0)
24
+ rdoc (6.6.2)
25
+ psych (>= 4.0.0)
26
+ reline (0.4.2)
24
27
  io-console (~> 0.5)
25
- rspec (3.11.0)
26
- rspec-core (~> 3.11.0)
27
- rspec-expectations (~> 3.11.0)
28
- rspec-mocks (~> 3.11.0)
29
- rspec-core (3.11.0)
30
- rspec-support (~> 3.11.0)
31
- rspec-expectations (3.11.0)
28
+ rspec (3.12.0)
29
+ rspec-core (~> 3.12.0)
30
+ rspec-expectations (~> 3.12.0)
31
+ rspec-mocks (~> 3.12.0)
32
+ rspec-core (3.12.2)
33
+ rspec-support (~> 3.12.0)
34
+ rspec-expectations (3.12.3)
32
35
  diff-lcs (>= 1.2.0, < 2.0)
33
- rspec-support (~> 3.11.0)
34
- rspec-mocks (3.11.1)
36
+ rspec-support (~> 3.12.0)
37
+ rspec-mocks (3.12.6)
35
38
  diff-lcs (>= 1.2.0, < 2.0)
36
- rspec-support (~> 3.11.0)
37
- rspec-support (3.11.0)
39
+ rspec-support (~> 3.12.0)
40
+ rspec-support (3.12.1)
41
+ stringio (3.1.0)
38
42
 
39
43
  PLATFORMS
40
44
  arm64-darwin-21
data/lib/ree/bean_dsl.rb CHANGED
@@ -3,6 +3,7 @@
3
3
  module Ree::BeanDSL
4
4
  def self.included(base)
5
5
  base.extend(ClassMethods)
6
+ base.include(Ree::Inspectable)
6
7
  end
7
8
 
8
9
  def self.extended(base)
data/lib/ree/fn_dsl.rb CHANGED
@@ -3,6 +3,7 @@
3
3
  module Ree::FnDSL
4
4
  def self.included(base)
5
5
  base.extend(ClassMethods)
6
+ base.include(Ree::Inspectable)
6
7
  end
7
8
 
8
9
  def self.extended(base)
@@ -0,0 +1,10 @@
1
+ require "json"
2
+ require "objspace"
3
+
4
+ module Ree::Inspectable
5
+ def inspect
6
+ object_internals_json = ObjectSpace.dump(self)
7
+ address = JSON.parse(object_internals_json)["address"]
8
+ "#<#{self.class.name}:#{address}>"
9
+ end
10
+ end
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.34"
4
+ VERSION = "1.0.35"
5
5
  end
data/lib/ree.rb CHANGED
@@ -17,6 +17,7 @@ module Ree
17
17
  autoload :FnDSL, 'ree/fn_dsl'
18
18
  autoload :Gen, 'ree/gen'
19
19
  autoload :ImportDsl, 'ree/dsl/import_dsl'
20
+ autoload :Inspectable, 'ree/inspectable'
20
21
  autoload :LinkDSL, 'ree/link_dsl'
21
22
  autoload :LinkImportBuilder, 'ree/dsl/link_import_builder'
22
23
  autoload :LinkValidator, 'ree/core/link_validator'
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.34
4
+ version: 1.0.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruslan Gatiyatov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-18 00:00:00.000000000 Z
11
+ date: 2024-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander
@@ -156,6 +156,7 @@ files:
156
156
  - lib/ree/gen/init.rb
157
157
  - lib/ree/gen/package.rb
158
158
  - lib/ree/handlers/template_handler.rb
159
+ - lib/ree/inspectable.rb
159
160
  - lib/ree/link_dsl.rb
160
161
  - lib/ree/object_compiler.rb
161
162
  - lib/ree/package_dsl.rb