get_indent 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/get_indent.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9fec1c7a247c4c795f92b2ce9dff8e58af602c5a
4
- data.tar.gz: 4462d2febf723123a0385f87c7315de95f1ceec0
3
+ metadata.gz: 58e03ec2604cd422acb6c724e8bc940a2fc570c8
4
+ data.tar.gz: a02841469571d669464da47439649fb0873edd55
5
5
  SHA512:
6
- metadata.gz: 3b974186bce94dfef8f722a41f7fd2cead52bc69c13046dfc1d18287be26ed34d2592ed036f4f2650eb89a8bf1b89d135b551e5a845a6142f883b00bb848d7e3
7
- data.tar.gz: 6795274d903a4cf30fbdc61e629bababb265ecd344ef2e624c36adc29d17687ebc82f3ed4b835f3e5cdf0f6add7539d00e7a48f984735dc45a54041709477fb4
6
+ metadata.gz: 6990fd211b2d5b6ecf6a22f27e4be3a2e2eda72be706848a21b6ae5442369cf1f38ee8869aa5f22d47ed123cbd94de83f3acb236beed4a8e04893deb9492997b
7
+ data.tar.gz: d8a0038c5655e991127de51e9610a33bacac45f6331171e919c81f06cd7c9536cc611eccd6e83887ed38e05979a11032b1b0e217889a60e0fdabc46dfb1d0726
data/lib/get_indent.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  def __get_indent n
2
- caller = caller_locations(1,1)[n]
2
+ caller = caller_locations(n,1)[0]
3
3
  line = IO.readlines(caller.absolute_path)[caller.lineno-1]
4
4
 
5
5
  cnt = 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: get_indent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - pjc0247