rubberband 0.0.2 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,81 @@
1
+ namespace java org.elasticsearch.thrift
2
+ namespace csharp ElasticSearch.Thrift
3
+ namespace cpp elasticsearch.thrift
4
+ namespace rb ElasticSearch.Thrift
5
+ namespace py elasticsearch
6
+ namespace perl Elasticsearch
7
+
8
+ enum Method {
9
+ GET = 0,
10
+ PUT = 1,
11
+ POST = 2,
12
+ DELETE = 3,
13
+ HEAD = 4,
14
+ OPTIONS = 5
15
+ }
16
+
17
+ struct RestRequest {
18
+ 1: required Method method,
19
+ 2: required string uri
20
+ 3: optional map<string, string> parameters
21
+ 4: optional map<string, string> headers
22
+ 5: optional binary body
23
+ }
24
+
25
+ enum Status {
26
+ CONT = 100,
27
+ SWITCHING_PROTOCOLS = 101,
28
+ OK = 200,
29
+ CREATED = 201,
30
+ ACCEPTED = 202,
31
+ NON_AUTHORITATIVE_INFORMATION = 203,
32
+ NO_CONTENT = 204,
33
+ RESET_CONTENT = 205,
34
+ PARTIAL_CONTENT = 206,
35
+ MULTI_STATUS = 207,
36
+ MULTIPLE_CHOICES = 300,
37
+ MOVED_PERMANENTLY = 301,
38
+ FOUND = 302,
39
+ SEE_OTHER = 303,
40
+ NOT_MODIFIED = 304,
41
+ USE_PROXY = 305,
42
+ TEMPORARY_REDIRECT = 307,
43
+ BAD_REQUEST = 400,
44
+ UNAUTHORIZED = 401,
45
+ PAYMENT_REQUIRED = 402,
46
+ FORBIDDEN = 403,
47
+ NOT_FOUND = 404,
48
+ METHOD_NOT_ALLOWED = 405,
49
+ NOT_ACCEPTABLE = 406,
50
+ PROXY_AUTHENTICATION = 407,
51
+ REQUEST_TIMEOUT = 408,
52
+ CONFLICT = 409,
53
+ GONE = 410,
54
+ LENGTH_REQUIRED = 411,
55
+ PRECONDITION_FAILED = 412,
56
+ REQUEST_ENTITY_TOO_LARGE = 413,
57
+ REQUEST_URI_TOO_LONG = 414,
58
+ UNSUPPORTED_MEDIA_TYPE = 415,
59
+ REQUESTED_RANGE_NOT_SATISFIED = 416,
60
+ EXPECTATION_FAILED = 417,
61
+ UNPROCESSABLE_ENTITY = 422,
62
+ LOCKED = 423,
63
+ FAILED_DEPENDENCY = 424,
64
+ INTERNAL_SERVER_ERROR = 500,
65
+ NOT_IMPLEMENTED = 501,
66
+ BAD_GATEWAY = 502,
67
+ SERVICE_UNAVAILABLE = 503,
68
+ GATEWAY_TIMEOUT = 504,
69
+ INSUFFICIENT_STORAGE = 506
70
+ }
71
+
72
+ struct RestResponse {
73
+ 1: required Status status,
74
+ 2: optional map<string, string> headers,
75
+ 3: optional binary body
76
+ }
77
+
78
+ service Rest {
79
+ RestResponse execute(1:required RestRequest request)
80
+ }
81
+
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubberband
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 0
9
- - 2
10
- version: 0.0.2
8
+ - 4
9
+ version: 0.0.4
11
10
  platform: ruby
12
11
  authors:
13
12
  - grantr
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-06-18 00:00:00 -07:00
17
+ date: 2010-12-06 00:00:00 -08:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
@@ -26,7 +25,6 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- hash: 3
30
28
  segments:
31
29
  - 0
32
30
  version: "0"
@@ -40,7 +38,6 @@ dependencies:
40
38
  requirements:
41
39
  - - ">="
42
40
  - !ruby/object:Gem::Version
43
- hash: 3
44
41
  segments:
45
42
  - 0
46
43
  version: "0"
@@ -54,7 +51,6 @@ dependencies:
54
51
  requirements:
55
52
  - - ">="
56
53
  - !ruby/object:Gem::Version
57
- hash: 3
58
54
  segments:
59
55
  - 0
60
56
  version: "0"
@@ -69,8 +65,8 @@ extensions: []
69
65
  extra_rdoc_files:
70
66
  - LICENSE
71
67
  - README.rdoc
68
+ - TODO
72
69
  files:
73
- - .gitignore
74
70
  - LICENSE
75
71
  - README.rdoc
76
72
  - Rakefile
@@ -93,16 +89,23 @@ files:
93
89
  - lib/elasticsearch/transport/base.rb
94
90
  - lib/elasticsearch/transport/base_protocol.rb
95
91
  - lib/elasticsearch/transport/http.rb
92
+ - lib/elasticsearch/transport/thrift.rb
93
+ - lib/elasticsearch/transport/thrift/elasticsearch_constants.rb
94
+ - lib/elasticsearch/transport/thrift/elasticsearch_types.rb
95
+ - lib/elasticsearch/transport/thrift/rest.rb
96
+ - lib/rubberband.rb
97
+ - rubberband.gemspec
96
98
  - test/elasticsearch_test.rb
97
- - test/test_helper.rb
98
99
  - test/hits_test.rb
100
+ - test/test_helper.rb
101
+ - vendor/elasticsearch/elasticsearch.thrift
99
102
  has_rdoc: true
100
103
  homepage: http://github.com/grantr/rubberband
101
104
  licenses: []
102
105
 
103
106
  post_install_message:
104
- rdoc_options:
105
- - --charset=UTF-8
107
+ rdoc_options: []
108
+
106
109
  require_paths:
107
110
  - lib
108
111
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -110,7 +113,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
113
  requirements:
111
114
  - - ">="
112
115
  - !ruby/object:Gem::Version
113
- hash: 3
114
116
  segments:
115
117
  - 0
116
118
  version: "0"
@@ -119,7 +121,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
121
  requirements:
120
122
  - - ">="
121
123
  - !ruby/object:Gem::Version
122
- hash: 3
123
124
  segments:
124
125
  - 0
125
126
  version: "0"
@@ -132,5 +133,5 @@ specification_version: 3
132
133
  summary: An ElasticSearch client.
133
134
  test_files:
134
135
  - test/elasticsearch_test.rb
135
- - test/test_helper.rb
136
136
  - test/hits_test.rb
137
+ - test/test_helper.rb
data/.gitignore DELETED
@@ -1,2 +0,0 @@
1
- *.swp
2
- *.swo