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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c922148c1c46fb72d41a76b84df99e51fddae29
4
- data.tar.gz: '064408b888b89394cf69335594bf8dd4de4a2e11'
3
+ metadata.gz: 4708e9ec139e70cf7e23fb7525e748610806d93f
4
+ data.tar.gz: 7f0caf4bafede62ebaf8209fe2942d36eb6b231f
5
5
  SHA512:
6
- metadata.gz: f220fb9ff594907642980d254826d0f689516d8eaf4e640d8ac49529371f7ba744ec9ccf4cc97eceb7d6734d8f2125451a6c7b680c356ad150592e48463a462d
7
- data.tar.gz: 9e3cde234c84d9abff0e405f30eb788c97a5894de09e68a01f11dd54c52825429e0222ece07af9340a7d6f365ae6718b5645f9e70904aaf6f8e32f08028a84b2
6
+ metadata.gz: 7948959551c9c9d1b68ed6456f49ce34def09b992620f5b12de72505dd67ec2e854e6eeeffd0525b5083f69fe10ddaffc7edefcaf7e12b0546519eb790e3acfc
7
+ data.tar.gz: d950b26abf9a1e94abdfa3a2651565edd17869e5d0deb7ea409e12e3ee78a88e1b4103af82b9b57e39bf37c61f545f8e35e34e7c85ef55400ec8b8cd7b2f8a43
@@ -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
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "middleman-releases"
6
- s.version = "0.2.2"
6
+ s.version = "0.2.3"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Matt Millsaps-Brewer"]
9
9
  s.email = ["matt@madebylotus.com"]
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.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-23 00:00:00.000000000 Z
11
+ date: 2017-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core