tildoc 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: 0dd0347e6a67f5742cb02eda0ab9536317a3252a
4
- data.tar.gz: ff13ad5510cff1bc2e6cdb231c5620626d1d31a7
3
+ metadata.gz: 648b5f2daac7d75d2e1982fa7fbd59e08948f717
4
+ data.tar.gz: 8d62ce9df988fd85c58cfc7c049c52a87babd0e5
5
5
  SHA512:
6
- metadata.gz: 707cb08ef897336ea2c5a8f73534af1ee142b1c6a3d9a3daab41f863ff1d5eb80586b90c0810ac4cb865c703e71488d94adadf6b0c51a944bbb458481fac0092
7
- data.tar.gz: 2bbd668d34c70d59488907ec7ab90418417c2029112c8f8c5bf58862b66572b7fb7001b881f331d91f2af4cc2373faa6c7610b64b13715ae323d5c0abb855ed2
6
+ metadata.gz: d3d8085c373aca043846a66da33cf7f8a9a6cd30d99b17db64883fb0103d3fbf63ab9f9929a9acdb12c4d9d48a419fac1199502617544971988640a87916eea3
7
+ data.tar.gz: 9f61dd8a32238c798403c16d092fa7c99a9557a04688361b0867d6411057730c10f2cffbbdf33cd66cafa015b7886a57422ae916643e438b1f865d1160ed4296
@@ -2,7 +2,7 @@ require "tildoc/version"
2
2
 
3
3
  module Tildoc
4
4
  def ~
5
- margin = scan(/^[ \t]*(?=\S)/).map(&:size).min
5
+ margin = scan(/^[ \t]*(?=\S)/).map(&:size).min || 0
6
6
  gsub(/^[ \t]{#{margin}}/, '')
7
7
  end
8
8
  end
@@ -1,3 +1,3 @@
1
1
  module Tildoc
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tildoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - kyoendo