nrepl-lazuli 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nrepl-lazuli/server.rb +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2696a80261f48e34160eab0e797d7bcaeab4c2cdcbb8f307d09b28bb6cb7f245
4
- data.tar.gz: b244a2f6c6ad300c0fc1fbcd8f875a54cfec558e51a3c1ea6827cca0f7a87a2d
3
+ metadata.gz: e198f7aeaa4e73c02bb95aab3cc78233e64730eb9da1c7a7a3b81100dc2063b1
4
+ data.tar.gz: f5bb2f932d3520450821ec746527c52c9a2aeb7bf2946cf37f7aa98d1b92f10e
5
5
  SHA512:
6
- metadata.gz: 5fcf3457f0b3488dc093f0eb3240ea4f2f1ee52f15c3402d44e589fd90cdcd7d14b78b6a14955aa43f40cd3ce618ae34f91001498d21b8447f6897bd58a27203
7
- data.tar.gz: c2cc9806a80f7b9e4aea90287c584e645cb6861cac947d0e88414615d3caf3ac58027409f48dd29fcc0c82683fbbeb48eb0c98f6ec5b262dc04273a5efd4e288
6
+ metadata.gz: 8b4b0f03d9673e708b6aabad549544d812bd3d06e63748507e39595e748a02c5a2344ac5f1d6819cb501b462b667756c3225da6a6a1254b72488f0e1115f20ea
7
+ data.tar.gz: 074bfe1128eac938c707fc33f2add4e388ab762ab0ecbd3113300829ffee2f67fe60f2246bf590953734065c68a40e8e398bd3a77b8104f7a81ce64a3f8bdf0a
@@ -132,7 +132,8 @@ module NREPL
132
132
 
133
133
  def method_added(method_name)
134
134
  return if method_name == :__lazuli_source_location
135
- path = caller.reject { |x| x =~ /gems.*gems/ }[0]
135
+ pwd = Dir.pwd
136
+ path = caller.select { |x| x.start_with?(pwd) }[0]
136
137
  if path
137
138
  (file, row) = path.split(/:/)
138
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.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maurício Szabo