analy_z 0.1.0 → 0.1.1

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: cafbd605a88e44b0b2e80aa2d919acaa099a0bc8
4
- data.tar.gz: 71e59a86e64bf5f99ed72e520edbe444e1d86189
3
+ metadata.gz: 1c26e4e3a7ea59261a8fd4fe5512f72add1f9a55
4
+ data.tar.gz: 8fbc07f23bcf2e0f166a5d17155f28405fee1fc9
5
5
  SHA512:
6
- metadata.gz: 2a97c6c54a3311af0e19517f0d5e09fbc461569d9c12d93be8e780a5efc22fd3766f7eafb0d2981993e4235abdd7d983b94b6d48148ccc0cbf780e586e716849
7
- data.tar.gz: 10a3efaf2f55fa5b1146f070cf5ff983146f62197afeaffbe0407e68bf9376d0da7f453f82fe5665fe5d3cc9885a17d1660d6fd01cd123452fbeba3172d65010
6
+ metadata.gz: 6c3738d40db2d336ff09ca96f8affc7dc3c965b2c97df003056cf96cdfd68d462e2d9b7237db54865f5cd84df99bd58b33787cdc75d7e82c39ee20011b1d7d9b
7
+ data.tar.gz: 02fd6e2a56420fb1dc03a7dc43d2272da158cf4080601a465bbabae43608d9dfbe42790faaf6599b02f9c55979d46b4da787a99197a2739dfe4c0923a3d6c1d3
@@ -1,3 +1,3 @@
1
1
  module AnalyZ
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/analy_z.rb CHANGED
@@ -16,9 +16,9 @@ module AnalyZ
16
16
  attr_accessor :texts
17
17
  attr_accessor :sentences
18
18
 
19
- def initialize html, selector = 'body', type_ary = ['名詞']
19
+ def initialize html_path, selector = 'body', type_ary = ['名詞']
20
20
  @sentences = {}
21
- Dir.glob("htmls/*.html").each do |f|
21
+ Dir.glob(html_path).each do |f|
22
22
  @sentences[f] = parse_html(Nokogiri::HTML.parse(File.read(f), nil, nil).css(selector).to_html)
23
23
  end
24
24
  analyze_words(@sentences)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: analy_z
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nao215