elastic_search_thrift 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b3ce594f2a538ff2354c7e4d1361c4ac24599ffc
4
+ data.tar.gz: e65bafe16bba5dc1935a0c57fe9c09cb483ae6e0
5
+ SHA512:
6
+ metadata.gz: cefbb5a9a745e4a53dc4677f6402d28b60f681b6a2ce2579c5c45a582a5995365302ae69c0166228a54efd6d4e720b37aa20a847e831391a8ef2602d03342207
7
+ data.tar.gz: fe7c8db851efd94238ee1a969ad9a317f7d21cce006afae4ebcc978f3be9af0e81805cbb0e7ea069c7cbe2b16e2ff8aaa57cf0d34187078955ba766ced0b0a51
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.0.2 2014-01-09
2
+
3
+ * Tire connections are lazily opened.
4
+
1
5
  == 0.0.1 2013-12-11
2
6
 
3
7
  * Hi.
data/Gemfile CHANGED
@@ -1,6 +1,7 @@
1
- source :rubygems
1
+ source 'https://rubygems.org/'
2
2
  gemspec
3
3
 
4
- gem "byebug", platform: :ruby_20
4
+ gem "byebug", platform: [:ruby_20, :ruby_21]
5
5
  gem 'debugger', '~> 1.6.0', platform: :ruby_19
6
6
  gem 'ritual', '~> 0.4.0'
7
+ gem 'tire'
data/README.markdown CHANGED
@@ -13,7 +13,7 @@ You will of course also need the
13
13
 
14
14
  ## Usage
15
15
 
16
- require 'elasticsearch_thrift'
16
+ require 'elastic_search_thrift'
17
17
 
18
18
  # This is the default configuration.
19
19
  ElasticSearchThrift.configure(host: '127.0.0.1', port: 9500)
@@ -1,5 +1,5 @@
1
1
  #
2
- # Autogenerated by Thrift Compiler (0.9.0)
2
+ # Autogenerated by Thrift Compiler (0.9.1)
3
3
  #
4
4
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
5
  #
@@ -1,5 +1,5 @@
1
1
  #
2
- # Autogenerated by Thrift Compiler (0.9.0)
2
+ # Autogenerated by Thrift Compiler (0.9.1)
3
3
  #
4
4
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
5
  #
@@ -1,5 +1,5 @@
1
1
  #
2
- # Autogenerated by Thrift Compiler (0.9.0)
2
+ # Autogenerated by Thrift Compiler (0.9.1)
3
3
  #
4
4
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
5
  #
@@ -10,7 +10,7 @@ module ElasticSearchThrift
10
10
 
11
11
  def initialize
12
12
  @client = ElasticSearchThrift.client
13
- @client.open
13
+ @opened = false
14
14
  end
15
15
 
16
16
  attr_reader :client
@@ -38,6 +38,7 @@ module ElasticSearchThrift
38
38
  private
39
39
 
40
40
  def execute(method, url, data)
41
+ @client.open if !@opened
41
42
  path, params = parse_url(url)
42
43
  path.chomp!('/')
43
44
  response = client.send(method, path, params, normalize_data(data))
@@ -1,5 +1,5 @@
1
1
  module ElasticSearchThrift
2
- VERSION = [0, 0, 1]
2
+ VERSION = [0, 0, 2]
3
3
 
4
4
  class << VERSION
5
5
  include Comparable
metadata CHANGED
@@ -1,68 +1,61 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic_search_thrift
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - George Ogata
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-12-12 00:00:00.000000000 Z
11
+ date: 2014-01-09 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: thrift
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.9.1
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: 0.9.1
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: json
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: 1.6.0
38
- - - <
34
+ - - "<"
39
35
  - !ruby/object:Gem::Version
40
36
  version: 1.9.0
41
37
  type: :runtime
42
38
  prerelease: false
43
39
  version_requirements: !ruby/object:Gem::Requirement
44
- none: false
45
40
  requirements:
46
- - - ! '>='
41
+ - - ">="
47
42
  - !ruby/object:Gem::Version
48
43
  version: 1.6.0
49
- - - <
44
+ - - "<"
50
45
  - !ruby/object:Gem::Version
51
46
  version: 1.9.0
52
47
  - !ruby/object:Gem::Dependency
53
48
  name: bundler
54
49
  requirement: !ruby/object:Gem::Requirement
55
- none: false
56
50
  requirements:
57
- - - ! '>='
51
+ - - ">="
58
52
  - !ruby/object:Gem::Version
59
53
  version: '0'
60
54
  type: :development
61
55
  prerelease: false
62
56
  version_requirements: !ruby/object:Gem::Requirement
63
- none: false
64
57
  requirements:
65
- - - ! '>='
58
+ - - ">="
66
59
  - !ruby/object:Gem::Version
67
60
  version: '0'
68
61
  description: Thrift client for ElasticSearch
@@ -72,7 +65,7 @@ executables: []
72
65
  extensions: []
73
66
  extra_rdoc_files: []
74
67
  files:
75
- - .gitignore
68
+ - ".gitignore"
76
69
  - CHANGELOG
77
70
  - Gemfile
78
71
  - LICENSE
@@ -95,31 +88,29 @@ files:
95
88
  - test/test_helper.rb
96
89
  homepage: https://github.com/howaboutwe/elastic_search_thrift
97
90
  licenses: []
91
+ metadata: {}
98
92
  post_install_message:
99
93
  rdoc_options: []
100
94
  require_paths:
101
95
  - lib
102
96
  required_ruby_version: !ruby/object:Gem::Requirement
103
- none: false
104
97
  requirements:
105
- - - ! '>='
98
+ - - ">="
106
99
  - !ruby/object:Gem::Version
107
100
  version: '0'
108
101
  required_rubygems_version: !ruby/object:Gem::Requirement
109
- none: false
110
102
  requirements:
111
- - - ! '>='
103
+ - - ">="
112
104
  - !ruby/object:Gem::Version
113
105
  version: '0'
114
106
  requirements: []
115
107
  rubyforge_project:
116
- rubygems_version: 1.8.25
108
+ rubygems_version: 2.2.0
117
109
  signing_key:
118
- specification_version: 3
110
+ specification_version: 4
119
111
  summary: Thrift client for ElasticSearch
120
112
  test_files:
121
113
  - test/config.yml
122
114
  - test/elastic_search_thrift/test_client.rb
123
115
  - test/elastic_search_thrift/test_tire_client.rb
124
116
  - test/test_helper.rb
125
- has_rdoc: