elastics-admin 1.0.10 → 1.1.0

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/README.md CHANGED
@@ -17,4 +17,4 @@ Special thanks for their sponsorship to [Escalate Media](http://www.escalatemedi
17
17
  ## Copyright
18
18
 
19
19
  Copyright (c) 2012-2013 by [Domizio Demichelis](mailto://dd.nexus@gmail.com)<br>
20
- See [LICENSE](https://github.com/elastics/elastics/blob/master/elastics-admin/LICENSE) for details.
20
+ See [LICENSE](https://github.com/elastics/elastics/blob/master/elastics/LICENSE) for details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.10
1
+ 1.1.0
@@ -1,5 +1,6 @@
1
1
  require 'date'
2
- version = File.read(File.expand_path('../VERSION', __FILE__)).strip
2
+ version_path = %w[../VERSION ../../VERSION].detect{|v| File.exist?(File.expand_path(v, __FILE__))}
3
+ version = File.read(File.expand_path(version_path, __FILE__)).strip
3
4
 
4
5
  Gem::Specification.new do |s|
5
6
  s.name = 'elastics-admin'
@@ -9,7 +10,7 @@ Gem::Specification.new do |s|
9
10
  s.authors = ["Domizio Demichelis"]
10
11
  s.email = 'dd.nexus@gmail.com'
11
12
  s.executables = %w[elastics-admin]
12
- s.files = `git ls-files -z`.split("\0")
13
+ s.files = `git ls-files -z`.split("\0") + %w[VERSION LICENSE]
13
14
  s.version = version
14
15
  s.date = Date.today.to_s
15
16
  s.required_rubygems_version = ">= 1.3.6"
@@ -178,8 +178,8 @@ module Elastics
178
178
  @indices.each do |index|
179
179
  Elastics.delete_index :index => index,
180
180
  :raise => false # may not exist
181
- Elastics.put_index_alias :alias => index,
182
- :index => @timestamp + index
181
+ Elastics.post_index_aliases :actions => [{ :add => { :alias => index,
182
+ :index => @timestamp + index } }]
183
183
  end
184
184
  # after the execution of this method the user should deploy the new code and then resume the regular app processing
185
185
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastics-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.1.0
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-09-03 00:00:00.000000000 Z
12
+ date: 2013-09-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: elastics-client
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.0.10
21
+ version: 1.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 1.0.10
29
+ version: 1.1.0
30
30
  description: Provides binary and rake tasks to dump, load and optionally rename indices.
31
31
  Implements live-reindex with hot-swap of old code/index with new code/index.
32
32
  email: dd.nexus@gmail.com
@@ -35,15 +35,15 @@ executables:
35
35
  extensions: []
36
36
  extra_rdoc_files: []
37
37
  files:
38
- - LICENSE
39
38
  - README.md
40
- - VERSION
41
39
  - bin/elastics-admin
42
40
  - elastics-admin.gemspec
43
41
  - lib/elastics-admin.rb
44
42
  - lib/elastics/admin.rb
45
43
  - lib/elastics/admin_live_reindex.rb
46
44
  - lib/tasks.rake
45
+ - VERSION
46
+ - LICENSE
47
47
  homepage: http://elastics.github.io/elastics
48
48
  licenses:
49
49
  - MIT