Skip to content

Commit 1936cd8

Browse files
committed
Added a skeleton of the elasticsearch-model gem
1 parent dcfd3c6 commit 1936cd8

File tree

8 files changed

+76
-0
lines changed

8 files changed

+76
-0
lines changed

elasticsearch-model/.gitignore

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
*.gem
2+
*.rbc
3+
.bundle
4+
.config
5+
.yardoc
6+
Gemfile.lock
7+
InstalledFiles
8+
_yardoc
9+
coverage
10+
doc/
11+
lib/bundler/man
12+
pkg
13+
rdoc
14+
spec/reports
15+
test/tmp
16+
test/version_tmp
17+
tmp

elasticsearch-model/Gemfile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source 'https://rubygems.org'
2+
3+
# Specify your gem's dependencies in elasticsearch-model.gemspec
4+
gemspec

elasticsearch-model/LICENSE.txt

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright (c) 2013 Elasticsearch
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

elasticsearch-model/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Elasticsearch::Model
2+
3+
ActiveModel/Record integrations for Elasticsearch

elasticsearch-model/Rakefile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require "bundler/gem_tasks"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# coding: utf-8
2+
lib = File.expand_path('../lib', __FILE__)
3+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4+
require 'elasticsearch/model/version'
5+
6+
Gem::Specification.new do |s|
7+
s.name = "elasticsearch-model"
8+
s.version = Elasticsearch::Model::VERSION
9+
s.authors = ["Karel Minarik"]
10+
s.email = ["[email protected]"]
11+
s.description = "ActiveModel/Record integrations for Elasticsearch."
12+
s.summary = "ActiveModel/Record integrations for Elasticsearch."
13+
s.homepage = "https://github.com/elasticsearch/elasticsearch-rails/"
14+
s.license = "Apache 2"
15+
16+
s.files = `git ls-files`.split($/)
17+
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
18+
s.test_files = s.files.grep(%r{^(test|spec|features)/})
19+
s.require_paths = ["lib"]
20+
21+
s.extra_rdoc_files = [ "README.md", "LICENSE.txt" ]
22+
s.rdoc_options = [ "--charset=UTF-8" ]
23+
24+
s.add_development_dependency "bundler", "~> 1.3"
25+
s.add_development_dependency "rake"
26+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require "elasticsearch/model/version"
2+
3+
module Elasticsearch
4+
module Model
5+
# Your code goes here...
6+
end
7+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module Elasticsearch
2+
module Model
3+
VERSION = "0.0.0"
4+
end
5+
end

0 commit comments

Comments
 (0)