waistband 0.16.7 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70258bf10cf5f2ebee06a27c7fdc8cfecf2c1a0f
4
- data.tar.gz: 566ec0c1fcfb8cd1d26459c0e8f9063cfc357b4c
3
+ metadata.gz: f87e6b41460a84bed7fdc6624edffbe047d4d2e5
4
+ data.tar.gz: eca12065cf817dd784b9383b694617c5bda4738f
5
5
  SHA512:
6
- metadata.gz: b2df2fe6f5d4e7c80d35cc707d6063cddf0e2fa6e75fdaeac7dca93689e9903e0d2b177455f3f267a06aa799ddb971dbc16860b8faabd7b8baffc1cddb887439
7
- data.tar.gz: 965c5b904f29f111c96eaf7b77da126256150325abb83c8130bca6f73a6fdb37f3d81acca18a309bce89fa4bb66e05c6afb160f7f5eecf190700ac5b92fc4a58
6
+ metadata.gz: c2eed76001e1fd04ec2122ce19272e83812839f07f35d4440fc10e543b844aeae277cf27241f19e56b3c5ada449423c55291da7bb518723d155c6d6a61e01fd2
7
+ data.tar.gz: bc41d59f250958433a4b95ebb7f2844465dcb6ce0b2c1811d21bd23e4277856f3da81051294e5ecb78281ddcaad7b15a7aa906d421241da19b1a438f6b2d65b0
data/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [6.0.0] - 2019-02-04
8
+ ### Added
9
+ - Support for Elasticsearch 6.x
data/README.md CHANGED
@@ -26,6 +26,16 @@ Or install it yourself as:
26
26
 
27
27
  $ gem install waistband
28
28
 
29
+ ## Compatibility
30
+ Waistband relies on [elasticsearch-ruby](https://github.com/elastic/elasticsearch-ruby), which
31
+ mirrors its versioning with Elasticsearch.
32
+
33
+ | Gem Version | | Elasticsearch |
34
+ |:-------------:|:-:| :-----------: |
35
+ | 0.x | → | 1.x |
36
+ | 6.x | → | 6.x |
37
+ | master | → | 6.x |
38
+
29
39
  ## Configuration
30
40
 
31
41
  Configuration is generally pretty simple. First, create a folder where you'll store your Waistband configuration docs, usually under `#{APP_DIR}/config/waistband/`, you can also just throw it under `#{APP_DIR}/config/` if you want. The baseline config contains something like this:
@@ -81,7 +81,7 @@ module Waistband
81
81
 
82
82
  client.indices.create index: config_name, body: config.except('name', 'permissions', 'stringify', 'log_level')
83
83
  rescue Elasticsearch::Transport::Transport::Errors::BadRequest => ex
84
- raise ex unless ex.message.to_s =~ /IndexAlreadyExistsException/
84
+ raise ex unless ex.message.to_s =~ /already_exists_exception/
85
85
  raise ::Waistband::Errors::IndexExists.new("Index already exists")
86
86
  end
87
87
 
@@ -96,7 +96,7 @@ module Waistband
96
96
 
97
97
  client.indices.delete index: config_name
98
98
  rescue Elasticsearch::Transport::Transport::Errors::NotFound => ex
99
- raise ex unless ex.message.to_s =~ /IndexMissingException/
99
+ raise ex unless ex.message.to_s =~ /index_not_found_exception/
100
100
  raise ::Waistband::Errors::IndexNotFound.new("Index not found")
101
101
  end
102
102
 
@@ -1,3 +1,3 @@
1
1
  module Waistband
2
- VERSION = "0.16.7"
2
+ VERSION = "6.0.0"
3
3
  end
data/waistband.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_dependency 'activesupport'
22
- spec.add_dependency 'elasticsearch', '~> 1.0'
22
+ spec.add_dependency 'elasticsearch', '~> 6.0'
23
23
  spec.add_dependency 'json'
24
24
 
25
25
  spec.add_development_dependency "bundler", "~> 1.3"
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waistband
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.7
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Jairala
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-23 00:00:00.000000000 Z
11
+ date: 2019-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: elasticsearch
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.0'
33
+ version: '6.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.0'
40
+ version: '6.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: json
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.3'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '10.3'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '10.3'
83
83
  description: Handles configuration, index creation, quality of life, etc, of Elastic
@@ -88,11 +88,12 @@ executables: []
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
- - .gitignore
92
- - .rspec
93
- - .ruby-gemset
94
- - .ruby-version
95
- - .travis.yml
91
+ - ".gitignore"
92
+ - ".rspec"
93
+ - ".ruby-gemset"
94
+ - ".ruby-version"
95
+ - ".travis.yml"
96
+ - CHANGELOG.md
96
97
  - Gemfile
97
98
  - LICENSE.txt
98
99
  - README.md
@@ -138,17 +139,17 @@ require_paths:
138
139
  - lib
139
140
  required_ruby_version: !ruby/object:Gem::Requirement
140
141
  requirements:
141
- - - '>='
142
+ - - ">="
142
143
  - !ruby/object:Gem::Version
143
144
  version: '0'
144
145
  required_rubygems_version: !ruby/object:Gem::Requirement
145
146
  requirements:
146
- - - '>='
147
+ - - ">="
147
148
  - !ruby/object:Gem::Version
148
149
  version: '0'
149
150
  requirements: []
150
151
  rubyforge_project:
151
- rubygems_version: 2.0.14.1
152
+ rubygems_version: 2.5.2
152
153
  signing_key:
153
154
  specification_version: 4
154
155
  summary: Configuration and sensible defaults for ElasticSearch on Ruby