ever_exp 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ever_exp/html.rb +6 -1
- data/lib/ever_exp/version.rb +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: 873f6d8d5b045ce89c3e9a1e47c06bc0fbf254ab
|
4
|
+
data.tar.gz: 1163d38506bfe51ca9d8998a1a51fda4adcdca83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af2426a23b04feacd51d1257fe0f37aa22112dbbf98b1325e16be4e2fc4966b5da669c6b723e5e42ad46b438e67976fd3f995b48ae7603fa6ed549fff5ef4004
|
7
|
+
data.tar.gz: d53a865aba73cf38dfcb4c645a1ef4c9f52cb33cf9de62f6d353c1ee0ad13fa7183af03b57519eb290dc1a114e7c93f9c8b1519763ccf5d2cefc400c26764722
|
data/lib/ever_exp/html.rb
CHANGED
@@ -91,7 +91,12 @@ module EverExp
|
|
91
91
|
end
|
92
92
|
|
93
93
|
def _content
|
94
|
-
|
94
|
+
return @_content if defined? @_content
|
95
|
+
@_content = html.css('body > div').last
|
96
|
+
return @_content unless breakword = @_content.css('div').select{|n| n['style'] =~ /break-word/}[0]
|
97
|
+
breakword.children.each{|c| c.parent = breakword.parent}
|
98
|
+
breakword.remove
|
99
|
+
@_content
|
95
100
|
end
|
96
101
|
|
97
102
|
def parse_meta
|
data/lib/ever_exp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ever_exp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ken
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|