nrepl-lazuli 0.2.0 → 0.2.2

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: 2deef62506da60f639206583fc37504630c3fdefcab9013a1ef25b354f51221c
4
- data.tar.gz: 8374c37e1eae4d69479137163f10242ea0f287c9ffd099830b1d3d361b6c344c
3
+ metadata.gz: 8590b851bdb5559740d3ee9417675bb0d69f662e09c0263c8300bfb22264230c
4
+ data.tar.gz: 00aa8dce39ca97f0c9baa0906b6ae10ad69e59cda5a273d9331c0bc3a47ba9d2
5
5
  SHA512:
6
- metadata.gz: c81e136417a9d6dac29f007a2539011baebc83d6975f1715eaa3f6f0799b4e63d4484bf834e729c0b53f65b0dcff09c917443f41c1f50edb1104cf3efb740390
7
- data.tar.gz: a6293282dc353c2cfa998fd557a1c84a7482224009ea905f08f82c3615e38e64b4507f5927630be9f6e4e7a2d6a00a05d02e735f59b357249ccab0d7840e4a6c
6
+ metadata.gz: 5ce85a965fc3a153e04b2d89c597982062a2affc2a857980200ac02dafd616dc62a7d2f234202728341f11f2a668cd392f093328933affd3a5e0f6cadc042c6e
7
+ data.tar.gz: c2ea6ee22c51e40d37c02a2b490066ee420b93e618cc9501356e69d2d8e17520ea42a5185dccc402c93facfeb538ce03a573d6dbc7456caad4fa55a9271a8a0b
@@ -14,17 +14,17 @@ module NREPL
14
14
  nil
15
15
  end
16
16
 
17
- def print(text)
17
+ def print(text='')
18
18
  write(text.to_s)
19
19
  nil
20
20
  end
21
21
 
22
- def puts(text)
22
+ def puts(text='')
23
23
  write("#{text}\n")
24
24
  nil
25
25
  end
26
26
 
27
- def write(text)
27
+ def write(text='')
28
28
  @connections.each do |conn|
29
29
  conn.send_msg(
30
30
  @kind => text
@@ -110,20 +110,31 @@ module NREPL
110
110
  end
111
111
  end
112
112
 
113
+ puts "IAMHERE!\n\n\n"
113
114
  module DefinitionFixer
114
115
  @@definitions = {}
115
116
 
116
117
  def __lazuli_source_location(method)
117
- ancestors.each do |klass|
118
+ final_loc = nil
119
+ loc = ancestors.each do |klass|
118
120
  loc = (klass.instance_variable_get(:@__lazuli_methods) || {})[method]
119
- return loc if loc
121
+ if loc
122
+ final_loc = loc
123
+ break
124
+ end
125
+ end
126
+ p [:LAZ, final_loc]
127
+ p self
128
+
129
+ if(final_loc && File.exist?(final_loc[0]))
130
+ final_loc
131
+ else
132
+ instance_method(method).source_location
120
133
  end
121
- return instance_method(method).source_location
122
134
  end
123
135
 
124
136
  def method_added(method_name)
125
137
  return if method_name == :__lazuli_source_location
126
- # puts "Thing added #{method_name}"
127
138
  path = caller.reject { |x| x =~ /gems.*gems/ }[0]
128
139
  if path
129
140
  (file, row) = path.split(/:/)
@@ -6,7 +6,7 @@ module NREPL
6
6
  DEFAULT_HOST = '127.0.0.1'
7
7
  PORT_FILENAME = '.nrepl-port'
8
8
 
9
- require_relative 'nrepl/server'
9
+ require_relative 'nrepl-lazuli/server'
10
10
  @@watches = {}
11
11
  @@connections = Set.new
12
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nrepl-lazuli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maurício Szabo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-04 00:00:00.000000000 Z
11
+ date: 2024-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bencode
@@ -31,11 +31,11 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
- - lib/nrepl.rb
35
- - lib/nrepl/connection.rb
36
- - lib/nrepl/fake_stdout.rb
37
- - lib/nrepl/server.rb
38
- homepage: https://rubygems.org/gems/nrepl-lazuli
34
+ - lib/nrepl-lazuli.rb
35
+ - lib/nrepl-lazuli/connection.rb
36
+ - lib/nrepl-lazuli/fake_stdout.rb
37
+ - lib/nrepl-lazuli/server.rb
38
+ homepage: https://gitlab.com/clj-editors/nrepl-lazuli
39
39
  licenses:
40
40
  - MIT
41
41
  metadata: {}
File without changes