boyer_moore 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -13
  3. data/lib/boyer_moore/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: febf5fb6612c4d0940bf38e1c049bd1ecb2e6995
4
- data.tar.gz: e893c4c88b3ba12e0620c1a2fdba9ffe13f4ca7b
3
+ metadata.gz: 303f4624a20a48f5b2f8ea4784426ae186143943
4
+ data.tar.gz: 7c7bc24d1d32a05c138fbf614928ca63e27db592
5
5
  SHA512:
6
- metadata.gz: bdeb9a0af899395f80f7100b9e77aaa568a931d8facd9bf47cf18780d60db77aff5a1b11978fe54e2bdef9de4ce7f2b1ae03b8ce42085be094495beed3f11b9e
7
- data.tar.gz: 015ee98265c8e787a355fac0845424f148a9afbc954d50311dffb00718584a5b470dfad16dedacf89ba0c0bec41d12dfe9db97d94ca224fb7cf1f06cc2f117f3
6
+ metadata.gz: bb1abf64fd6b1cd88a721cc0cef3b7f19a80001865e112f2c599b290a22e79075a8516e8479aecded4a4b3ae27cfcfd6d94515748d1a96299f806ff2c0e596ce
7
+ data.tar.gz: 16540ebe1554a24bfe620ae3dba30137ff96539e8887844f7545a30c2ef33d4ea08ca84b4f6abfc4a67ee4e249547c1beb708a030bc92b7dc038d7d71d6ebfff
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # BoyerMoore
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/boyer_moore`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Inspired by https://github.com/jashmenn/boyermoore
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ BoyerMoore is the fastest substring search strategy.
6
6
 
7
7
  ## Installation
8
8
 
@@ -22,15 +22,9 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
-
33
- ## Contributing
34
-
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/boyer_moore.
25
+ ```ruby
26
+ BoyerMoore.search("foobar", "bar") # => 3
27
+ BoyerMoore.search("foobar", "oof") # => nil
28
+ BoyerMoore.search("foobar", "foo") # => 0
36
29
 
30
+ ```
@@ -1,3 +1,3 @@
1
1
  module BoyerMoore
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boyer_moore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sri Harsha Kappala