ree 1.0.23 → 1.0.24

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: 60b602bd07b9adc8ba5cbcee420750e3b2d5266056c888ad750115cbb393c4ea
4
- data.tar.gz: 1431632c86f3dacee9ad1f4fee6550e3a56b06dca780d0d3c6c46245c812b407
3
+ metadata.gz: 75a8e8d614b00dc9aaba38993d3e2532f4189eca0f83e1dbc8cc5fa63fcee1a4
4
+ data.tar.gz: ebc2988db12701721dde74ffc845b5c608debf2255f9d9d57e52749c6458d7af
5
5
  SHA512:
6
- metadata.gz: 58c730e7c3930abe99115bdaffa4175b886c29dd67ef7575b196f6284782f192722dfd706e5e6174808b1cdb0ab0126a216cfa1ccfa6d99fe0a287289e63d708
7
- data.tar.gz: 67ebd3b56bed90000f00033e7a7cd9f2a5959df2dd4acc58f168e5830c49bf989b3ba74fdf77902d3e0ceec921de7180a55185e5665f33294316e8d0074f51ca
6
+ metadata.gz: cc915972d2b9306d431e8ef813b5105dc635f35826daaf59775385db5ca7a5f51b411d60d2ee82c4eaa9a6c0906aba94a3f79d4542551985c85b751d5e161a38
7
+ data.tar.gz: bc9f8776cfc0ae0b1d995d3ee3c40f0b27fd2d903391d7558263a2f0dd74bc1833589cb31837435bb97229cbcaaf58f2d45f064604364c87668905ee4a1b80dc
@@ -53,7 +53,7 @@ module Ree
53
53
  end
54
54
 
55
55
  next if package.dir.nil?
56
-
56
+
57
57
  facade.load_entire_package(package.name)
58
58
 
59
59
  package_hsh = Ree::CLI::IndexPackage.send(:index_package_entry, package)
@@ -73,7 +73,7 @@ module Ree
73
73
  private
74
74
 
75
75
  def index_public_methods_for_package_classes(package, index_hash)
76
- package.objects.each do |obj|
76
+ package.objects.each do |obj|
77
77
  klass = obj.klass
78
78
  klass_name = demodulize(klass.to_s)
79
79
  obj_name = obj.name.to_s
@@ -96,22 +96,25 @@ module Ree
96
96
  end
97
97
  end
98
98
 
99
- recursively_index_module(package.module, index_hash, package)
99
+ recursively_index_module(package.module, index_hash, package, {})
100
100
 
101
101
  index_hash
102
102
  end
103
103
 
104
- def recursively_index_module(mod, index_hsh, package)
104
+ def recursively_index_module(mod, index_hsh, package, mod_index)
105
105
  return if !mod.is_a?(Module)
106
+ return if mod_index[mod]
107
+
108
+ mod_index[mod] = true
106
109
 
107
110
  mod.constants.each do |const_name|
108
111
  const = mod.const_get(const_name)
109
112
 
110
- recursively_index_module(const, index_hsh, package)
113
+ recursively_index_module(const, index_hsh, package, mod_index)
111
114
 
112
115
  next if !const.is_a?(Class)
113
116
  next if package.objects.any? { |o| o.klass == const }
114
- next if index_hsh[:classes].has_key?(demodulize(const.name))
117
+ next if index_hsh[:classes].has_key?(demodulize(const.name))
115
118
 
116
119
  const_abs_path = mod.const_source_location(const.name).first
117
120
  next if !const_abs_path
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.23"
4
+ VERSION = "1.0.24"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ree
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.23
4
+ version: 1.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruslan Gatiyatov