md_edit 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/md_edit.rb +7 -2
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ed6b33250079d8a899f4a70695b67e5296235b1
|
4
|
+
data.tar.gz: db9e8a43942863088a36ac1d4a18836b17009426
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fb40f29041a519f35e92e3e6293dc73c286c075fd8a1c72e54f354d28764705944b7ff8d316ce91619933878453883270233202ffdebaf111a90f52463b1c7a
|
7
|
+
data.tar.gz: df17764df07161bccec2f49fd8e114c4e47570693865d12a03af5baa35aabba227ff3bf371c17dbd1d58df8617261a7bcaa034941292dd6c10de6ba5f28657cf
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/md_edit.rb
CHANGED
@@ -15,10 +15,15 @@ class MdEdit
|
|
15
15
|
#
|
16
16
|
def initialize(md)
|
17
17
|
|
18
|
-
s, @filename = if md.lines.length == 1
|
19
|
-
|
18
|
+
s, @filename = if md.lines.length == 1 then
|
19
|
+
|
20
|
+
File.write(md, "# Thoughts\n\n") unless File.exists? md
|
21
|
+
File.exists?(md) ? [File.read(md), md] : md
|
22
|
+
|
20
23
|
else
|
24
|
+
|
21
25
|
md
|
26
|
+
|
22
27
|
end
|
23
28
|
|
24
29
|
load_sections(s)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: md_edit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
R5r1JjTBaaHOaqI14bIkwUSY5q1cO4Wl7HWly80kX2AD8o/tPHvyF9Tx3pBvaboU
|
32
32
|
etnSPHbQwmBvFQ==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2017-12-
|
34
|
+
date: 2017-12-21 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: line-tree
|
metadata.gz.sig
CHANGED
Binary file
|