middleman-releases 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/releases/instance.rb +5 -0
- data/middleman-releases.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4708e9ec139e70cf7e23fb7525e748610806d93f
|
4
|
+
data.tar.gz: 7f0caf4bafede62ebaf8209fe2942d36eb6b231f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7948959551c9c9d1b68ed6456f49ce34def09b992620f5b12de72505dd67ec2e854e6eeeffd0525b5083f69fe10ddaffc7edefcaf7e12b0546519eb790e3acfc
|
7
|
+
data.tar.gz: d950b26abf9a1e94abdfa3a2651565edd17869e5d0deb7ea409e12e3ee78a88e1b4103af82b9b57e39bf37c61f545f8e35e34e7c85ef55400ec8b8cd7b2f8a43
|
data/lib/releases/instance.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
module Releases
|
2
2
|
class Instance
|
3
3
|
extend Forwardable
|
4
|
+
include Padrino::Helpers::FormatHelpers
|
4
5
|
|
5
6
|
attr_accessor :controller, :resource, :tag
|
6
7
|
|
@@ -29,6 +30,10 @@ module Releases
|
|
29
30
|
resource.render(layout: false)
|
30
31
|
end
|
31
32
|
|
33
|
+
def teaser
|
34
|
+
truncate_words(strip_tags(body), length: 15)
|
35
|
+
end
|
36
|
+
|
32
37
|
def matrix
|
33
38
|
data.fetch(:versions, {})
|
34
39
|
end
|
data/middleman-releases.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-releases
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Millsaps-Brewer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|