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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3fc3f55facf0a7bc6b82570acb54e79c45272211fd7a6e5c7f22890d58cae2dc
4
- data.tar.gz: b0ac39866dc9deedb09d5bb056cc080cfe17f9f4fa95737b541c8f14ecee15a1
3
+ metadata.gz: b6df1fc2ff1b15f413afd9d608c54d22a92872dc8964b9cb02f12c814977c71f
4
+ data.tar.gz: c825e90204257eb76b020a313d54c807a2b42b4f07b64de42e31ceb8a705aec1
5
5
  SHA512:
6
- metadata.gz: 3678505af37a97f470ce8eee04f4d2dabee320e3c9f017b571924d78e8b1075dccdb39b84c1b72b35933f13997733237dc845fb01c8e8e2e6f289888438cdb78
7
- data.tar.gz: f2d4474c1e52b1d09526bf6e26de1c0c416d093f5bdc92c2107038372b31fea64cab7f84137c6d24b47b0fc0222bab325f293f5deb8a3d1dcee3acaf79b42b06
6
+ metadata.gz: a99cbb226285e9c7d2c42a1dd22100c799efd6d69ca567c876b40bbc2402c86a90a26d03985bdf86157eb7305d4777ddb2db7adfdc5e09739e3781c7b764906f
7
+ data.tar.gz: 31b7dd0a744b94581e0812a87a96c8c43fe903a275602d1c44c88cbae7dbb0ca9e18d8d3eb99cbd330d16ece59b0e502415d657fbb68228daeb9e36b397ef30b
@@ -22,7 +22,17 @@ module Miyano
22
22
  end
23
23
 
24
24
  def summary
25
- @text[0..30]
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
@@ -1,3 +1,3 @@
1
1
  module Miyano
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.7"
3
3
  end
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.5
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-06-04 00:00:00.000000000 Z
11
+ date: 2018-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler