ruremasearcher 0.0.6 → 0.0.7

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: 57aed1e4e3531e7888beaaeaff97c3818bfea4c8
4
- data.tar.gz: 369a73f5d6fcab646a8edd55ec97c525d1194715
3
+ metadata.gz: 8de4ef8c1bd64245f4cbac9b75b9d24b42aec507
4
+ data.tar.gz: 7eed20f0041aee62af13d0f47fdf5712f8a70649
5
5
  SHA512:
6
- metadata.gz: c5c38ec5394d6e0c15a9ddf87b8c54331b0e45566e8f8e692256a7be36296ec51c49164b3fa415425113a7d899f5acddddaa5889486bb7a6febd1eb4409907cc
7
- data.tar.gz: 932cd9cfad0fa8d346f67b1c465a25423b1ebd2158eb73c28822e2eb9627481992c943fed60df97d7264726c35c52a267d0782c1974edf66543739cc201433fe
6
+ metadata.gz: 61c83964b3a463cd31e2623f4cc2eda5a4840bd64a61faa8b103f8f50ef7d9795deda22d3a3a8ebc92e62f19302500b696555ea927f31497310d39ee7e72960e
7
+ data.tar.gz: 3a5bc51d5cdfbde04ce0287245ae37c353077d929160d8c77cab6645316e0a0446ea14894bc43b0da23701bc1da1e2ddf2ef6e6cd34cde1a798ebd885afc7751
data/README.md CHANGED
@@ -56,7 +56,8 @@ $ ruremasearcher search "each with"
56
56
 
57
57
  ```
58
58
  ## Release Notes
59
-
59
+
60
+ v0.0.6 Gemに依存関係を加えました。
60
61
  v0.0.5 出力形式の変更をしました。
61
62
  v0.0.1 初回リリース
62
63
 
data/lib/html_parser.rb CHANGED
@@ -13,7 +13,7 @@ class HtmlParser
13
13
  @titles = @doc.css('dt > h3')
14
14
  @metadata = @doc.css('ul.entry-metadata > li.entry-type > span')
15
15
  @summaries = @doc.css('div.entry-summary > p')
16
- @descriptions = @doc.css('div.entry-document > div.entry-snippets > div.snippet')
16
+ @descriptions = @doc.css('div.entry-document')
17
17
  clean_string
18
18
  end
19
19
 
@@ -1,3 +1,3 @@
1
1
  module Ruremasearcher
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -6,7 +6,7 @@ require 'html_parser'
6
6
 
7
7
  describe Ruremasearcher do
8
8
  it 'should have a version number' do
9
- expect(Ruremasearcher::VERSION).to eq('0.0.6')
9
+ expect(Ruremasearcher::VERSION).to eq('0.0.7')
10
10
  end
11
11
  end
12
12
 
@@ -125,7 +125,7 @@ EOS
125
125
  expect(hp.titles[0]).to eq("String#split(sep = $;, limit = 0) -> [String] | [[String]]")
126
126
  expect(hp.metadata[0]).to eq('インスタンスメソッド')
127
127
  expect(hp.summaries[0]).to eq("第 1 引数 sep で指定されたセパレータによって文字列を limit 個まで分割し、結果を文字列の配列で返します。")
128
- expect(hp.descriptions[0]).to eq("...p \" a \t b c\".split(/ +/) # => [\"\", \"a\", \"b\", \"c\"] p \" a \t b c\".split(nil) # => [\"a\", \"b\", \"c\"] p \" a \t b c\".split(' ') # => [\"a\", \"b\", \"c\"] # split(nil) と同じ p \" a \t b c\".split # => [\"a\", \"b\", \"c\"] # split(nil) と同じ #...")
128
+ expect(hp.descriptions[0]).to eq("...p \" a \t b c\".split(/ +/) # => [\"\", \"a\", \"b\", \"c\"] p \" a \t b c\".split(nil) # => [\"a\", \"b\", \"c\"] p \" a \t b c\".split(' ') # => [\"a\", \"b\", \"c\"] # split(nil) と同じ p \" a \t b c\".split # => [\"a\", \"b\", \"c\"] # split(nil) と同じ #... ...p '1-10,20'.split(/([-,])/) # => [\"1\", \"-\", \"10\", \",\", \"20\"] # 正規表現が空文字列にマッチする場合は 1 文字に分割 p 'hi there'.split(/ */).join(':') # => \"h:i:t:h:e:r:e\" # 文字列全体を 1 文字ずつに分割する例 p 'hi there'.split(//).join(':'... ...'.split(//).join(':') # => \"文:字:列\" # limit == 0 だと制限なく分割、配列末尾の空文字列は取り除かれる p \"a,b,c,,,\".split(/,/, 0) # => [\"a\", \"b\", \"c\"] # limit 省略時は 0 と同じ (最もよく使われるパターン) p \"a,b,c,,,\".split(/,/)... ...p \"a,b,c,,,\".split(/,/, 0) # => [\"a\", \"b\", \"c\"] # limit 省略時は 0 と同じ (最もよく使われるパターン) p \"a,b,c,,,\".split(/,/) # => [\"a\", \"b\", \"c\"] # 正の limit 使用例 p \"a,b,c,d,e\".split(/,/, 1) # => [\"a,b,c,d,e\"] p \"a,b,c,d,e\".split(/,/, 2) # =...")
129
129
 
130
130
  end
131
131
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruremasearcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryosy383
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  requirements: []
126
126
  rubyforge_project:
127
- rubygems_version: 2.2.2
127
+ rubygems_version: 2.2.0
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Search for in the Rurima-Search the method of Ruby.