ZMediumToMarkdown 1.3.1 → 1.3.4
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/lib/Helper.rb +8 -2
- metadata +15 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a6958e55e7fc557d770b9d79e32b57ea568f2412992d320804ab09ee90f87fb
|
|
4
|
+
data.tar.gz: cf3f1b921b9a8e6ba317312ae2e6aa475c58d8e9708b4ebdac7adeae987fdda9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0d4ba9e0f89578efa9dde620412e5c3cacc86db82d63f2f0ead542d78c14b73fbb7f309a1565325ac9bcce0ef6eb0a10df15810d7e28987a556a6bf018731af1
|
|
7
|
+
data.tar.gz: 1faa5c450c7528abbe60f57676e80f0bc39267d1557fabab70abd6ba9589b617d26bf74920885f7f9ab8b61093e2799e3cc7b56e0a6a919ca5a2dbf67d0757c1
|
data/lib/Helper.rb
CHANGED
|
@@ -107,8 +107,14 @@ class Helper
|
|
|
107
107
|
|
|
108
108
|
def self.getLocalVersionFromGemspec()
|
|
109
109
|
rootPath = File.expand_path('../', File.dirname(__FILE__))
|
|
110
|
-
|
|
111
|
-
result =
|
|
110
|
+
|
|
111
|
+
result = nil
|
|
112
|
+
if File.file?("#{rootPath}/ZMediumToMarkdown.gemspec")
|
|
113
|
+
gemspecContent = File.read("#{rootPath}/ZMediumToMarkdown.gemspec")
|
|
114
|
+
result = gemspecContent[/(gem\.version){1}\s+(\=)\s+(\'){1}(\d+(\.){1}\d+(\.){1}\d+){1}(\'){1}/, 4]
|
|
115
|
+
else
|
|
116
|
+
result = Gem.loaded_specs["ZMediumToMarkdown"].version
|
|
117
|
+
end
|
|
112
118
|
|
|
113
119
|
if !result.nil?
|
|
114
120
|
versions = result.split(".")
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ZMediumToMarkdown
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ZhgChgLi
|
|
@@ -52,6 +52,20 @@ dependencies:
|
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: 0.1.0
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: rubyzip
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - "~>"
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: 2.3.2
|
|
62
|
+
type: :runtime
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - "~>"
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: 2.3.2
|
|
55
69
|
description: ZMediumToMarkdown lets you download Medium post and convert it to markdown
|
|
56
70
|
format easily.
|
|
57
71
|
email:
|