get_indent 1.0.4 → 1.0.5

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: 58e03ec2604cd422acb6c724e8bc940a2fc570c8
4
- data.tar.gz: a02841469571d669464da47439649fb0873edd55
3
+ metadata.gz: 55ade5976c8eb220dda8f4b0ce38c7c70c1748db
4
+ data.tar.gz: be23150a1852424b0149562e62f012392d41977f
5
5
  SHA512:
6
- metadata.gz: 6990fd211b2d5b6ecf6a22f27e4be3a2e2eda72be706848a21b6ae5442369cf1f38ee8869aa5f22d47ed123cbd94de83f3acb236beed4a8e04893deb9492997b
7
- data.tar.gz: d8a0038c5655e991127de51e9610a33bacac45f6331171e919c81f06cd7c9536cc611eccd6e83887ed38e05979a11032b1b0e217889a60e0fdabc46dfb1d0726
6
+ metadata.gz: 0cefa68ae51949ec0c4417e531fb000679fa9b1335b5c8441a1c3d2fc88d576ea8548e7d0e8fda1d2e22a7eedea26ea5ac46ba34af3423ffb78f571cb88986dd
7
+ data.tar.gz: f0cabed9fde15afb5e2f6a5bbee18e9e2603893645ac3e594c8ad03545370782a37e70e86e2341a6c086861945f0e105462d49270d8fdf3e312555a001893a42
data/lib/get_indent.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  def __get_indent n
2
- caller = caller_locations(n,1)[0]
2
+ caller = caller_locations(n+1,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.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - pjc0247