ruremasearcher 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c34187a0841ceb70e647553dcf59f6fe7cbdc9ed
4
- data.tar.gz: 9f3f9e40e3f082c69c044ca4f8c3feb57967233b
3
+ metadata.gz: 09330de361934bb43a76304578a9839b0308000e
4
+ data.tar.gz: 21845d6cda8a3b4e050828ff7fa8f9458f63d5cd
5
5
  SHA512:
6
- metadata.gz: 5d7129f943b31574fa5afdbd0a890f0bd5344e69b552fbefcacad9f6cd21fef4728c8422cd6a675a3c0123886c1bf5a1b413172a559c442328c0a469e6011b5c
7
- data.tar.gz: 09c9ce41462355c104ae6e5e0fc6addc99acfb8677e839345742134602efe990c3ce25d09affb40c0ad496ae1a764d0d77e9c7fe503c4d73628a5d4712f602b3
6
+ metadata.gz: 5f0068ff3db5611a5b2e7a05e54130a96a70a25d1262b883329dead9dcca539681ae268fa117d868f4d65cfb734b2168466cba3ac1ebd362693266f30dc6ea46
7
+ data.tar.gz: 1dfea4cb17152f1b1407f13035846d2d5796499b26c8e55a151e0c2ba8bb2b619cf61804f51a31754835b8021f094110dc125b7153d6d8f06a65ba75c3d67007
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Ruremasearcher
2
- [![Gem Version](https://badge.fury.io/rb/ruremasearcher.svg)](http://badge.fury.io/rb/ruremasearcher) ![build](https://travis-ci.org/ryosy383/ruremasearcher.svg?branch=master) [![Coverage Status](https://coveralls.io/repos/ryosy383/ruremasearcher/badge.png)](https://coveralls.io/r/ryosy383/ruremasearcher)
2
+ [![Gem Version](https://badge.fury.io/rb/ruremasearcher.svg)](http://badge.fury.io/rb/ruremasearcher)
3
3
 
4
4
  CUI上で「るりまサーチ」( http://docs.ruby-lang.org/ja/search/ ) ができるGemです。
5
5
 
@@ -19,47 +19,45 @@ Or install it yourself as:
19
19
 
20
20
  ## Usage
21
21
 
22
- $ ruremasercher serch 検索したい文字列(複数の場合はクォーテーションで囲ってください)
23
- 最大5件まで検索結果が表示されます。
22
+ $ ruremasercher search <検索したい文字列>
23
+ (検索文字列が複数の場合はクォーテーションで囲ってください)
24
+ 最大5件まで検索結果が表示されます。
25
+ 例:
26
+ $ ruremasercher search 'each with'
24
27
 
25
28
  ```
26
- $ ruremasearcher search succ
29
+ $ ruremasearcher search "each with"
27
30
  ---検索結果:1件目------------------------------
28
- タイトル: IPAddr#succ -> IPAddr
29
-
30
- (18107)
31
+ タイトル: Matrix#each(which = :all) -> Enumerator
31
32
  分類:インスタンスメソッド
32
- 要約:次の IPAddr オブジェクトを返します。
33
- 説明:...次の IPAddr オブジェクトを返します。 ipaddr = IPAddr.new('192.168.1.1') p ipaddr.succ.to_s #=> "192.168.1.2"...
33
+ 要約:行列の各要素を引数としてブロックを呼び出します。
34
+ 説明:...Enumerator を返します。 Matrix[ [1,2], [3,4] ].each { |e| puts e } # => prints the numbers 1 to 4 Matrix[ [1,2], [3,4] ].each(:strict_lower).to_a # => [3]@param which どの要素に対してブロックを呼び出すのかを Symbol で指定します@see Matrix#each_with_index...
34
35
  ---検索結果:2件目------------------------------
35
- タイトル: Time#succ -> Time
36
-
37
- (18107)
36
+ タイトル: Matrix#each(which = :all) {|e| ... } -> self
38
37
  分類:インスタンスメソッド
39
- 要約:self に 1 秒足した Time オブジェクトを生成して返します。
40
- 説明:...成して返します。このメソッドは obsolete です。 self + 1 を代わりに使用してください。 t = Time.now p t p t.succ # => Sun Jul 18 01:41:22 JST 2004 Sun Jul 18 01:41:23 JST 2004...
38
+ 要約:行列の各要素を引数としてブロックを呼び出します。
39
+ 説明:...Enumerator を返します。 Matrix[ [1,2], [3,4] ].each { |e| puts e } # => prints the numbers 1 to 4 Matrix[ [1,2], [3,4] ].each(:strict_lower).to_a # => [3]@param which どの要素に対してブロックを呼び出すのかを Symbol で指定します@see Matrix#each_with_index...
41
40
  ---検索結果:3件目------------------------------
42
- タイトル: Fixnum#succ -> Fixnum | Bignum
43
-
44
- (18101)
41
+ タイトル: REXML::Element#each_element_with_attribute(key, value = nil, max = 0, name = nil) {|element| ... } -> ()
45
42
  分類:インスタンスメソッド
46
- 要約:self の次の整数を返します。
47
- 説明:self の次の整数を返します。
43
+ 要約:特定の属性を持つすべての子要素を引数としてブロックを呼び出します。
44
+ 説明:...t.each_element_with_attribute('id'){|e| p e } # >> <b id='1'/> # >> <c id='2'/> # >> <d id='1'/> doc.root.each_element_with_attribute('id', '1'){|e| p e } # >> <b id='1'/> # >> <d id='1'/> doc.root.each_element_with_attribute('id', '1', 1){|e| p e } # >> <b id='1'/> doc.root.each_e...
48
45
  ---検索結果:4件目------------------------------
49
- タイトル: String#succ -> String
50
-
51
- (15239)
46
+ タイトル: REXML::Element#each_element_with_text(text = nil, max = 0, name = nil) {|element| ... } -> ()
52
47
  分類:インスタンスメソッド
53
- 要約:self の「次の」文字列を返します。
54
- 説明:..."aa".succ # => "ab" p "88".succ.succ # => "90""99" → "100", "AZZ" → "BAA" のような繰り上げも行われます。このとき負符号などは考慮されません。 p "99".succ # => "100" p "ZZ".succ # => "AAA" p "a9".succ # => "b0" p "-9".succ #...
48
+ 要約:テキストを子ノードとして持つすべての子要素を引数としてブロックを呼び出します。
49
+ 説明:...lement_with_attribute('id', '1', 0, 'd'){|e| p e } # >> <d id='1'/>...
55
50
  ---検索結果:5件目------------------------------
56
- タイトル: Prime::EratosthenesGenerator#succ -> Integer
57
-
58
- (15113)
51
+ タイトル: Matrix#each_with_index(which = :all) -> Enumerator
59
52
  分類:インスタンスメソッド
60
- 要約:次の(疑似)素数を返します。なお、この実装においては疑似素数は真に素数です。
61
- 説明:...文字になり、残りは保存されます。 p "1.9.9".succ # => # "2.0.0"逆に self がアルファベットや数字をまったく含まない場合は、単純に文字コードを 1 増やします。 p ".".succ # => "/"さらに、self が空文字列の場合は "" を...
53
+ 要約:行列の各要素をその位置とともに引数としてブロックを呼び出します。
54
+ 説明:...a>' doc.root.each_element_with_text {|e|p e} # >> <b> ... </> # >> <c> ... </> # >> <d> ... </> doc.root.each_element_with_text('b'){|e|p e} # >> <b> ... </> # >> <c> ... </> doc.root.each_element_with_text('b', 1){|e|p e} # >> <b> ... </> doc.root.each_element_with_text(nil, 0,...
55
+
62
56
  ```
57
+ ## Release Notes
58
+
59
+ v0.0.4 出力形式の変更をしました。
60
+ v0.0.1 初回リリース
63
61
 
64
62
  ## Contributing
65
63
 
@@ -1,3 +1,3 @@
1
1
  module Ruremasearcher
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -7,7 +7,7 @@ require 'spec_helper'
7
7
 
8
8
  describe Ruremasearcher do
9
9
  it 'should have a version number' do
10
- expect(Ruremasearcher::VERSION).to eq('0.0.4')
10
+ expect(Ruremasearcher::VERSION).to eq('0.0.5')
11
11
  end
12
12
  end
13
13
 
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.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryosy383