script2md 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github.url +1 -0
- data/.rubygems.url +1 -0
- data/Gemfile.lock +1 -1
- data/lib/script2md/version.rb +1 -1
- data/lib/script2md.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1cfdc5eb76bdf8e65e4b5ebc6a391fb8e7479264a0e5a25b614d2b55c89d48d4
|
|
4
|
+
data.tar.gz: 02f5c2168a20a15589fb9dac4fa4e33946f08f5c1a57a82cd56dc9c200143b88
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c77bfc68a8e2f7322fc767501f78414562d30b9a9a9321637099f91fb2e31bf9af0f1b27fe5d90b53fb33722551f613249a937d2651671f7867aa56493c02ab3
|
|
7
|
+
data.tar.gz: b70ea448a5f90a8ccc98e5a590c7bd972d5f03102bf5f99cf6e5cfbfbf74356346624e3305d0ff34f8b87682b9fafbc5e67379822a94319ba6224588e709e7f6
|
data/.github.url
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
https://github.com/YumaInaura/script2md
|
data/.rubygems.url
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
https://rubygems.org/gems/script2md
|
data/Gemfile.lock
CHANGED
data/lib/script2md/version.rb
CHANGED
data/lib/script2md.rb
CHANGED
|
@@ -31,7 +31,7 @@ module Script2md
|
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
def code_into_codeblock!
|
|
34
|
-
text.gsub!(/(
|
|
34
|
+
text.gsub!(/(^(?!#).+$\n?)((^(?!#).*$\n?)*(^(?!#).+$))?/, "```#{language_type}\n\\0\n```")
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
def headling_comment_to_plaintext!
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: script2md
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yumainaura
|
|
@@ -74,8 +74,10 @@ executables:
|
|
|
74
74
|
extensions: []
|
|
75
75
|
extra_rdoc_files: []
|
|
76
76
|
files:
|
|
77
|
+
- ".github.url"
|
|
77
78
|
- ".gitignore"
|
|
78
79
|
- ".rspec"
|
|
80
|
+
- ".rubygems.url"
|
|
79
81
|
- ".travis.yml"
|
|
80
82
|
- CODE_OF_CONDUCT.md
|
|
81
83
|
- Gemfile
|