miyano 0.3.5 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/miyano/post.rb +11 -1
- data/lib/miyano/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6df1fc2ff1b15f413afd9d608c54d22a92872dc8964b9cb02f12c814977c71f
|
4
|
+
data.tar.gz: c825e90204257eb76b020a313d54c807a2b42b4f07b64de42e31ceb8a705aec1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a99cbb226285e9c7d2c42a1dd22100c799efd6d69ca567c876b40bbc2402c86a90a26d03985bdf86157eb7305d4777ddb2db7adfdc5e09739e3781c7b764906f
|
7
|
+
data.tar.gz: 31b7dd0a744b94581e0812a87a96c8c43fe903a275602d1c44c88cbae7dbb0ca9e18d8d3eb99cbd330d16ece59b0e502415d657fbb68228daeb9e36b397ef30b
|
data/lib/miyano/post.rb
CHANGED
@@ -22,7 +22,17 @@ module Miyano
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def summary
|
25
|
-
@text[
|
25
|
+
@text[(@title.length+2)..-1].delete "#*"
|
26
|
+
end
|
27
|
+
|
28
|
+
def content_no_assets
|
29
|
+
res = @content.gsub /<p.*?\=\"assets\/.*?p>/, ""
|
30
|
+
res[(@title.length+9)..-1]
|
31
|
+
end
|
32
|
+
|
33
|
+
def content_for_homepage
|
34
|
+
res=@content.gsub /\=\"assets\//, %(="#{@url}assets/)
|
35
|
+
res[(@title.length+9)..-1]
|
26
36
|
end
|
27
37
|
|
28
38
|
end
|
data/lib/miyano/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: miyano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- wuusn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|