nrepl-lazuli 0.2.3 → 0.2.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: b887bb59ee522618fb1481d095583cdc9c275cd8d7a8cc30c6f4cf2b1cde5f3c
4
- data.tar.gz: ec56214eecc8b3d6657e7aeeb1c4b5477af7d6b61ef239952bdcb40528d5fc1d
3
+ metadata.gz: e198f7aeaa4e73c02bb95aab3cc78233e64730eb9da1c7a7a3b81100dc2063b1
4
+ data.tar.gz: f5bb2f932d3520450821ec746527c52c9a2aeb7bf2946cf37f7aa98d1b92f10e
5
5
  SHA512:
6
- metadata.gz: 0ec583b905ab55b50ffb7dc4a3a2ed9f5def2f2751eb225a5b9943da8457fa1865727e1cccf8a308ed9c268804a6b25f508eeb348383d20aaf9285c0fd22b0be
7
- data.tar.gz: 4575012d494436d98b2024781859c1778a653257e55244bd7f1bcfd71328feea4719738675a9556ab12bbbdcda29bebf515089950757aeb62e428de9a28ab415
6
+ metadata.gz: 8b4b0f03d9673e708b6aabad549544d812bd3d06e63748507e39595e748a02c5a2344ac5f1d6819cb501b462b667756c3225da6a6a1254b72488f0e1115f20ea
7
+ data.tar.gz: 074bfe1128eac938c707fc33f2add4e388ab762ab0ecbd3113300829ffee2f67fe60f2246bf590953734065c68a40e8e398bd3a77b8104f7a81ce64a3f8bdf0a
@@ -14,13 +14,13 @@ module NREPL
14
14
  nil
15
15
  end
16
16
 
17
- def print(text='')
18
- write(text.to_s)
17
+ def print(*text)
18
+ write(text.join(''))
19
19
  nil
20
20
  end
21
21
 
22
- def puts(text='')
23
- write("#{text}\n")
22
+ def puts(*text)
23
+ write("#{text.join("\n")}\n")
24
24
  nil
25
25
  end
26
26
 
@@ -110,7 +110,6 @@ module NREPL
110
110
  end
111
111
  end
112
112
 
113
- puts "IAMHERE!\n\n\n"
114
113
  module DefinitionFixer
115
114
  @@definitions = {}
116
115
 
@@ -123,8 +122,6 @@ module NREPL
123
122
  break
124
123
  end
125
124
  end
126
- p [:LAZ, final_loc]
127
- p self
128
125
 
129
126
  if(final_loc && File.exist?(final_loc[0]))
130
127
  final_loc
@@ -135,7 +132,8 @@ module NREPL
135
132
 
136
133
  def method_added(method_name)
137
134
  return if method_name == :__lazuli_source_location
138
- path = caller.reject { |x| x =~ /gems.*gems/ }[0]
135
+ pwd = Dir.pwd
136
+ path = caller.select { |x| x.start_with?(pwd) }[0]
139
137
  if path
140
138
  (file, row) = path.split(/:/)
141
139
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nrepl-lazuli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maurício Szabo