Skip to content

Commit

Permalink
Change Searchyou to Searchyll
Browse files Browse the repository at this point in the history
  • Loading branch information
robsears committed Apr 27, 2016
1 parent 26d9cf5 commit 72466b9
Show file tree
Hide file tree
Showing 15 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in searchyou.gemspec
# Specify your gem's dependencies in searchyll.gemspec
gemspec
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Searchyou
# Searchyll

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/searchyou`. To experiment with that code, run `bin/console` for an interactive prompt.
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/searchyll`. To experiment with that code, run `bin/console` for an interactive prompt.

TODO: Delete this and the text above, and describe your gem

Expand All @@ -9,7 +9,7 @@ TODO: Delete this and the text above, and describe your gem
Add this line to your application's Gemfile:

```ruby
gem 'searchyou'
gem 'searchyll'
```

And then execute:
Expand All @@ -18,7 +18,7 @@ And then execute:

Or install it yourself as:

$ gem install searchyou
$ gem install searchyll

## Usage

Expand All @@ -41,4 +41,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/searchyou.
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/searchyll.
2 changes: 1 addition & 1 deletion bin/console
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby

require "bundler/setup"
require "searchyou"
require "searchyll"

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.
Expand Down
6 changes: 6 additions & 0 deletions lib/searchyll.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require "searchyll/version"

require "jekyll/plugin"
require "jekyll/generator"

require "searchyll/generator"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Searchyou
module Searchyll
class Configuration
attr_accessor :site
def initialize(site)
Expand Down
8 changes: 4 additions & 4 deletions lib/searchyou/generator.rb → lib/searchyll/generator.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'searchyou/indexer'
require 'searchyou/configuration'
require 'searchyll/indexer'
require 'searchyll/configuration'

module Searchyou
module Searchyll

class Generator < Jekyll::Generator

Expand All @@ -15,7 +15,7 @@ def generate(site)
configuration = Configuration.new(site)

# Prepare the indexer
indexer = Searchyou::Indexer.new(configuration)
indexer = Searchyll::Indexer.new(configuration)
indexer.start

# Iterate through the site contents and send to indexer
Expand Down
2 changes: 1 addition & 1 deletion lib/searchyou/indexer.rb → lib/searchyll/indexer.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'json'
require 'net/http'

module Searchyou
module Searchyll
class Indexer

BATCH_SIZE = 50
Expand Down
2 changes: 1 addition & 1 deletion lib/searchyou/version.rb → lib/searchyll/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Searchyou
module Searchyll
VERSION = "0.1.0"
end
6 changes: 0 additions & 6 deletions lib/searchyou.rb

This file was deleted.

6 changes: 3 additions & 3 deletions searchyou.gemspec → searchyll.gemspec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'searchyou/version'
require 'searchyll/version'

Gem::Specification.new do |spec|
spec.name = "searchyou"
spec.version = Searchyou::VERSION
spec.name = "searchyll"
spec.version = Searchyll::VERSION
spec.authors = ["Nick Zadrozny"]
spec.email = ["nick@beyondthepath.com"]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
require File.expand_path('../spec_helper', File.dirname(__FILE__))

describe Searchyou::Generator do
describe Searchyll::Generator do

it 'is a Jekyll Generator' do
expect(Searchyou::Generator.new).to be_a(Jekyll::Generator)
expect(Searchyll::Generator.new).to be_a(Jekyll::Generator)
end

let(:jekyll_site) do
Expand All @@ -15,7 +15,7 @@

# TODO: integrated site generation
it 'can generate an index' do
g = Searchyou::Generator.new
g = Searchyll::Generator.new
g.generate(jekyll_site)
end

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
require File.expand_path('../spec_helper', File.dirname(__FILE__))

describe Searchyou::Indexer do
describe Searchyll::Indexer do

it 'is instantiated with an Elasticsearch URL' do
expect { Searchyou::Indexer.new }.to raise_error(ArgumentError)
expect { Searchyll::Indexer.new }.to raise_error(ArgumentError)
end

end
9 changes: 9 additions & 0 deletions spec/searchyll_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require 'spec_helper'

describe Searchyll do

it 'has a version number' do
expect(Searchyll::VERSION).not_to be nil
end

end
9 changes: 0 additions & 9 deletions spec/searchyou_spec.rb

This file was deleted.

2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'searchyou'
require 'searchyll'

0 comments on commit 72466b9

Please sign in to comment.