esnek 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +5 -0
- data/CHANGES +10 -0
- data/LICENSE +13 -0
- data/README.rdoc +21 -0
- data/Rakefile +30 -0
- data/lib/esnek/base.rb +2 -0
- data/lib/esnek/version.rb +1 -0
- data/lib/esnek.rb +5 -0
- metadata +106 -0
data/AUTHORS
ADDED
data/CHANGES
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
Esnek is free software: you can redistribute it and/or modify
|
2
|
+
it under the terms of the GNU General Public License as published by
|
3
|
+
the Free Software Foundation, either version 3 of the License, or
|
4
|
+
(at your option) any later version.
|
5
|
+
|
6
|
+
Devrinim is distributed in the hope that it will be useful,
|
7
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
8
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
9
|
+
GNU General Public License for more details.
|
10
|
+
|
11
|
+
You should have received a copy of the GNU General Public License
|
12
|
+
along with Devrinim. If not, see <http://www.gnu.org/licenses/>.
|
13
|
+
|
data/README.rdoc
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
= Esnek
|
2
|
+
|
3
|
+
_Esnek_ provides a quick Ruby interface for JSON APIs, such as _ElasticSearch_ (http://www.elasticsearch.org); a scalable, fast, distributed,
|
4
|
+
highly-available, real time search RESTful search engine communicating by JSON over HTTP, based on _Lucene_ (http://lucene.apache.org).
|
5
|
+
|
6
|
+
== Installation:
|
7
|
+
|
8
|
+
gem install esnek
|
9
|
+
|
10
|
+
For the installation of elasticsearch please follow the guides at http://www.elasticsearch.org
|
11
|
+
|
12
|
+
== Usage:
|
13
|
+
|
14
|
+
require 'esnek'
|
15
|
+
es = ElasticSearch.new('127.0.0.1:9200', :index => "twitter", :type => "tweet")
|
16
|
+
es._cluster.state
|
17
|
+
|
18
|
+
== Notes
|
19
|
+
|
20
|
+
Esnek was initially developed using Redcar under Ubuntu Linux 10.10.
|
21
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
require 'rake/clean'
|
4
|
+
require 'rake/gempackagetask'
|
5
|
+
require 'rake/rdoctask'
|
6
|
+
require 'rake/testtask'
|
7
|
+
require './lib/esnek/version'
|
8
|
+
|
9
|
+
|
10
|
+
spec = eval(File.read('esnek.gemspec'))
|
11
|
+
|
12
|
+
Rake::GemPackageTask.new(spec) do |p|
|
13
|
+
p.gem_spec = spec
|
14
|
+
p.need_tar = false
|
15
|
+
p.need_zip = false
|
16
|
+
end
|
17
|
+
|
18
|
+
Rake::RDocTask.new do |rdoc|
|
19
|
+
files =['README.rdoc', 'LICENSE','CHANGES', 'AUTHORS', 'lib/**/*.rb', 'test/**/*.rb']
|
20
|
+
rdoc.rdoc_files.add(files)
|
21
|
+
rdoc.main = "README"
|
22
|
+
rdoc.title = "Esnek Documentation"
|
23
|
+
rdoc.rdoc_dir = 'doc/rdoc'
|
24
|
+
rdoc.options
|
25
|
+
end
|
26
|
+
|
27
|
+
Rake::TestTask.new do |t|
|
28
|
+
t.test_files = FileList['test/**/*.rb']
|
29
|
+
end
|
30
|
+
|
data/lib/esnek/base.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ESNEK_VERSION='0.0.1'
|
data/lib/esnek.rb
ADDED
metadata
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: esnek
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Alper Akgun
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2011-04-17 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: json
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ~>
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 1
|
29
|
+
segments:
|
30
|
+
- 1
|
31
|
+
- 5
|
32
|
+
- 1
|
33
|
+
version: 1.5.1
|
34
|
+
type: :runtime
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rest-client
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ~>
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 13
|
45
|
+
segments:
|
46
|
+
- 1
|
47
|
+
- 6
|
48
|
+
- 1
|
49
|
+
version: 1.6.1
|
50
|
+
type: :runtime
|
51
|
+
version_requirements: *id002
|
52
|
+
description: Esnek provides a quick Ruby interface for JSON APIs, such as ElasticSearch
|
53
|
+
email: esnek@sayarus.com
|
54
|
+
executables: []
|
55
|
+
|
56
|
+
extensions: []
|
57
|
+
|
58
|
+
extra_rdoc_files:
|
59
|
+
- README.rdoc
|
60
|
+
- LICENSE
|
61
|
+
- CHANGES
|
62
|
+
- AUTHORS
|
63
|
+
files:
|
64
|
+
- LICENSE
|
65
|
+
- README.rdoc
|
66
|
+
- Rakefile
|
67
|
+
- AUTHORS
|
68
|
+
- CHANGES
|
69
|
+
- lib/esnek/base.rb
|
70
|
+
- lib/esnek/version.rb
|
71
|
+
- lib/esnek.rb
|
72
|
+
homepage: https://github.com/sayarus/esnek
|
73
|
+
licenses: []
|
74
|
+
|
75
|
+
post_install_message:
|
76
|
+
rdoc_options: []
|
77
|
+
|
78
|
+
require_paths:
|
79
|
+
- lib
|
80
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
hash: 3
|
86
|
+
segments:
|
87
|
+
- 0
|
88
|
+
version: "0"
|
89
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
hash: 3
|
95
|
+
segments:
|
96
|
+
- 0
|
97
|
+
version: "0"
|
98
|
+
requirements: []
|
99
|
+
|
100
|
+
rubyforge_project:
|
101
|
+
rubygems_version: 1.7.2
|
102
|
+
signing_key:
|
103
|
+
specification_version: 3
|
104
|
+
summary: Esnek provides a quick Ruby interface for JSON APIs, such as ElasticSearch
|
105
|
+
test_files: []
|
106
|
+
|