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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99af7d6a678b684ec914360451beae727c86332d
4
- data.tar.gz: ac720ae39d8e8478e7a14432d4be58e0f58a81cc
3
+ metadata.gz: 873f6d8d5b045ce89c3e9a1e47c06bc0fbf254ab
4
+ data.tar.gz: 1163d38506bfe51ca9d8998a1a51fda4adcdca83
5
5
  SHA512:
6
- metadata.gz: 8dd96419b3f9fcfd0c07e02b026f2a418d795f771dbeda856587b3ad58fa54348411c601e598c2dfdbfffdc986a879bd8cc98d7d93cbaa79d02ef9287f795fb5
7
- data.tar.gz: 750fb0b5f0f1203507ca30fdade35ba0dbdeb54140423094b3fdb5903f0e3f37125e18a1c08145be1c9e899b5d029369c13c8c13a2ef28457cd0cff183230084
6
+ metadata.gz: af2426a23b04feacd51d1257fe0f37aa22112dbbf98b1325e16be4e2fc4966b5da669c6b723e5e42ad46b438e67976fd3f995b48ae7603fa6ed549fff5ef4004
7
+ data.tar.gz: d53a865aba73cf38dfcb4c645a1ef4c9f52cb33cf9de62f6d353c1ee0ad13fa7183af03b57519eb290dc1a114e7c93f9c8b1519763ccf5d2cefc400c26764722
@@ -91,7 +91,12 @@ module EverExp
91
91
  end
92
92
 
93
93
  def _content
94
- html.css('body > div').last
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
@@ -1,3 +1,3 @@
1
1
  module EverExp
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
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.2
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-02-28 00:00:00.000000000 Z
11
+ date: 2017-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler