qwik2md 2.0.0 → 2.0.1

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: f8187e0a84c36ecefdbca49118a54f1fcc2cf82e
4
- data.tar.gz: a1bc7326eccd49a5b15ee1e74536f9e6a9a81a96
3
+ metadata.gz: d519f0040df72e4702981211377d473e3c68e1a1
4
+ data.tar.gz: 72c433a361867c25cdc1c1caac38c092bca02c6e
5
5
  SHA512:
6
- metadata.gz: 6df6a5b1399fd05759dcee826befe749d0af54dbe05042305aa9bc69dcc96332918d2de638cd629391da4840bd6e6b71a9700a242c5fc9246b3a21f95dc3ab8c
7
- data.tar.gz: 7d53f7418c4f10f0c2964a2fcb9a2b942699b998e9ecd5ca1f9cff8850b381ab45d5476a7d80bfafb016aeed98740806fad328a93437b66e757e3f18cd53a63c
6
+ metadata.gz: 867526f7f0e7f5e0f54eafb28f4dedd12f0c2eba53942c5e3513146a5e7bb081798df2e570f2b7011535b91ccba465380da7998b3a6c84291b11df2b90aa677f
7
+ data.tar.gz: 14151f2d44227ee7df2d50c88ec8c8332e24bf0ce7b080afcc96b44373fb2168090a33717b16de4ee73b6222939360794f053319021d6b7075fd4ad81ff3dfd9
data/exe/qwik2md CHANGED
@@ -20,6 +20,6 @@ OptionParser.new {|opts|
20
20
  end
21
21
  }.parse!
22
22
 
23
- file = Pathname.new(ARGV[0])
23
+ file = Pathname.new(ARGV[0].to_s)
24
24
  base = options.fetch(:base, file.dirname.join(file.basename('.*')))
25
25
  puts Qwik2md.convert(ARGF.read, base: base)
@@ -1,3 +1,3 @@
1
1
  module Qwik2md
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
@@ -67,7 +67,7 @@ void main(){
67
67
  content = ''
68
68
  content = yield if block_given?
69
69
  pre = [:pre]
70
- content.each_with_index {|line, index|
70
+ content.each_line.with_index {|line, index|
71
71
  line.chomp!
72
72
  linenum = index + base_linenum.to_i
73
73
  klass = 'line '
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qwik2md
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fumiaki MATSUSHIMA
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-17 00:00:00.000000000 Z
11
+ date: 2016-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htree