stretcher 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore CHANGED
@@ -17,4 +17,5 @@ test/version_tmp
17
17
  tmp
18
18
  \#*#
19
19
  .\#*#
20
- .#*
20
+ .#*
21
+ test_logs
@@ -91,7 +91,7 @@ module Stretcher
91
91
  body = generic_opts
92
92
  end
93
93
 
94
- logger.info { "Stretcher Search: curl -XGET '#{uri}' -d '#{body.to_json}'" }
94
+ logger.info { "Stretcher Search: curl -XGET '#{uri_str}' -d '#{body.to_json}'" }
95
95
  response = @server.request(:get, path_uri(uri_str)) do |req|
96
96
  req.body = body
97
97
  end
@@ -1,3 +1,3 @@
1
1
  module Stretcher
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
@@ -1,7 +1,9 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe Stretcher::Index do
4
- let(:server) { Stretcher::Server.new(ES_URL) }
4
+ let(:server) {
5
+ Stretcher::Server.new(ES_URL, logger: DEBUG_LOGGER)
6
+ }
5
7
  let(:index) { server.index('foo') }
6
8
  let(:corpus) {
7
9
  [
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  require 'rspec'
2
2
  require 'stretcher'
3
3
 
4
+ DEBUG_LOGGER = Logger.new('test_logs')
5
+ DEBUG_LOGGER.level = Logger::DEBUG
4
6
  ES_URL = 'http://localhost:9200'
5
7
  require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib stretcher]))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stretcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-24 00:00:00.000000000 Z
12
+ date: 2013-02-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday