ree 1.0.15 → 1.0.16

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: 425a0b09dd810ba911269010acf562bed66e26b8230f295f11d161319b3456d6
4
- data.tar.gz: f1ccd0e6983eddc7a982d1c225c4d77f6479e1a334d20ba30172d94168924ffd
3
+ metadata.gz: 297f316994135f149e49a7ef569944eed849534a3681c81d96fec5c3c9ea9fc8
4
+ data.tar.gz: 6b47e28092a761afc3a789f4ce52bdf31f91f8459a161cd67ca8bf5b7dd4a446
5
5
  SHA512:
6
- metadata.gz: ff8541ebcf7beda4437eb1f937ff50138cfaf2201e08b166085018eed89e787e21174f2025cb198c15f3ab008b3af1fe788dc5384772536287935a1b87d9d000
7
- data.tar.gz: 167436bc7d4b1bdcf6f969b2a46f39ab4b6f4cf24fac13e66ea074ffdee27a95a23f93073ea32a184f3470f1d56a7d2ac7d45f01a882228b612eea9450a2caaa
6
+ metadata.gz: 403081f62a9977439b14ffbceb2d81cc3284b9d4c50c6dfb1a9ca77ec66d68fc2ab2b0b261d7cd2507842b10ee6c4c58b500f22095224716bf9f5211b8c97e38
7
+ data.tar.gz: d31c7332a57bf27f13d15a9d25e02fc2a803753c8a2ac2c305f600305ad93d01e67c6c899cbfc736fc7c65a9de1d482c46c5ae9cc0fc6a9cf3aeb403481d91b7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ree (1.0.15)
4
+ ree (1.0.16)
5
5
  commander (~> 4.6.0)
6
6
 
7
7
  GEM
@@ -113,13 +113,16 @@ module Ree
113
113
  private
114
114
 
115
115
  def index_class(klass, file_name, package_name, root_dir, hash_key)
116
- methods = klass
117
- .public_instance_methods(false)
118
- .reject { _1.match?(/original/) } # remove aliases defined by contracts
119
- .map {
116
+ all_methods = klass.public_instance_methods(false)
117
+ orig_methods = all_methods.grep(/original/)
118
+ methods = (all_methods - orig_methods) # remove aliases defined by contracts
119
+ .map { |m|
120
+ orig_method_name = orig_methods.find { |om| om.match(/original_#{Regexp.escape(m.name)}_[0-9a-fA-F]+/) }
121
+ orig_method = orig_method_name ? klass.public_instance_method(orig_method_name) : nil
120
122
  {
121
- name: _1,
122
- location: klass.public_instance_method(_1).source_location&.last,
123
+ name: m,
124
+ parameters: orig_method&.parameters&.map { |param| { name: param.last, required: param.first } },
125
+ location: orig_method&.source_location&.last,
123
126
  }
124
127
  }
125
128
 
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.15"
4
+ VERSION = "1.0.16"
5
5
  end
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.15
4
+ version: 1.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruslan Gatiyatov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-23 00:00:00.000000000 Z
11
+ date: 2023-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander