html_truncator 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8acdba13144c7c2f1d8ede94f1c21dc60ab6566c
4
+ data.tar.gz: 1ce538702c8e24d2a0781f08657a61bbe2d0300d
5
+ SHA512:
6
+ metadata.gz: 4011e5a3f94446bc9cddb5aa8af1afb5fc174aaa14250dfb076fcf802a3e40ef5f18b89d29f84c1ce0e69320a8d354d040517edb8a6973a5bf3a38735c10c887
7
+ data.tar.gz: 5241bfa96596b4cd2785666b62ffa5311be99f097dfbd0fc4478e3926abe27f93cf69195b8773a8d4cf39cdee27ace15089d6ab5c22524fd003dcbb60ed658e3
@@ -2,6 +2,7 @@
2
2
 
3
3
  require "nokogiri"
4
4
  require "set"
5
+ require "html_truncator/version"
5
6
 
6
7
 
7
8
  class HTML_Truncator
@@ -20,7 +21,7 @@ class HTML_Truncator
20
21
  attr_accessor :ellipsable_tags, :self_closing_tags
21
22
  end
22
23
  self.ellipsable_tags = Set.new(%w(p ol ul li div header article nav section footer aside dd dt dl))
23
- self.self_closing_tags = Set.new(%w(br hr img))
24
+ self.self_closing_tags = Set.new(%w(br hr img param embed))
24
25
  end
25
26
 
26
27
  class Nokogiri::HTML::DocumentFragment
@@ -0,0 +1,3 @@
1
+ class HTML_Truncator
2
+ VERSION = "0.3.1"
3
+ end
metadata CHANGED
@@ -1,38 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html_truncator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
5
- prerelease:
4
+ version: 0.3.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Bruno Michel
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2011-12-06 00:00:00.000000000 Z
11
+ date: 2013-07-21 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: nokogiri
16
- requirement: &79813490 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: '1.4'
19
+ version: '1.5'
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *79813490
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.5'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: rspec
27
- requirement: &79813250 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - ~>
31
32
  - !ruby/object:Gem::Version
32
33
  version: '2.4'
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *79813250
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '2.4'
36
41
  description: Wants to truncate an HTML string properly? This gem is for you.
37
42
  email: bmichel@menfin.info
38
43
  executables: []
@@ -43,31 +48,30 @@ files:
43
48
  - MIT-LICENSE
44
49
  - README.md
45
50
  - Gemfile
51
+ - lib/html_truncator/version.rb
46
52
  - lib/html_truncator.rb
47
53
  - init.rb
48
54
  homepage: http://github.com/nono/HTML-Truncator
49
55
  licenses: []
56
+ metadata: {}
50
57
  post_install_message:
51
58
  rdoc_options: []
52
59
  require_paths:
53
60
  - lib
54
61
  required_ruby_version: !ruby/object:Gem::Requirement
55
- none: false
56
62
  requirements:
57
- - - ! '>='
63
+ - - '>='
58
64
  - !ruby/object:Gem::Version
59
65
  version: '0'
60
66
  required_rubygems_version: !ruby/object:Gem::Requirement
61
- none: false
62
67
  requirements:
63
- - - ! '>='
68
+ - - '>='
64
69
  - !ruby/object:Gem::Version
65
70
  version: '0'
66
71
  requirements: []
67
72
  rubyforge_project:
68
- rubygems_version: 1.8.12
73
+ rubygems_version: 2.0.3
69
74
  signing_key:
70
- specification_version: 3
75
+ specification_version: 4
71
76
  summary: Wants to truncate an HTML string properly? This gem is for you.
72
77
  test_files: []
73
- has_rdoc: