luban-elasticsearch 0.1.5 → 0.1.6

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: d82fd94764a5ed6bb5d23a835e40546a9e9f372c
4
- data.tar.gz: 4ea442ef569dd2a5d52f42d6bb9cca14199d017e
3
+ metadata.gz: 3295bb8dbd44372eea73e88fb140ba2f74689650
4
+ data.tar.gz: fb4e77d1b018ee633920d70d4055a8eff0d73556
5
5
  SHA512:
6
- metadata.gz: fc2d2c3104183d735fc50caf1c3077857c16d7cb99915ee50ff325534b59a702ca75e4ce3b23ce93672bb734f960400b2545969f10c19a551b55356bd8ddfd2a
7
- data.tar.gz: 2c501e2aee218c4a4f1513a518f69fbf5632da881e2efc8144b3b2faed48aab4dcf9a44e1c9375e5f35b0372e6ecfd92461349d92cc44b5e0de7096fb1341dcc
6
+ metadata.gz: 3017dc8321b9131af2ee626cd338eebbbee3d6811dbfea748d93b73fbbd975e10b5fc6bd1798ea69c04f29c5183357dc79237c8182310297f13ecd5f0ba1997c
7
+ data.tar.gz: 7a9d936d99e61b80ffe0c58f3f35fa45ec541c989775dc3fea475b9da0b327761338db95b7f1e07c71330c3f60b8516677daab187e46a1e7bb8084f95a086fcf
data/CHANGLOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Change log
2
2
 
3
+ ## Version 0.1.6 (Oct 23, 2016)
4
+
5
+ Minor enhancements:
6
+ * Added a new parameter, #network_host, in Elasticsearch configuration
7
+ * Cleaned up the design and implementation of app parameters in a deployment project
8
+ * As a result, bump up gem dependency on Luban to version 0.9.10
9
+
3
10
  ## Version 0.1.5 (Oct 19, 2016)
4
11
 
5
12
  Minor enhancements:
@@ -12,28 +12,14 @@ module Luban
12
12
  end
13
13
  end
14
14
 
15
- module Parameters
16
- extend Luban::Deployment::Parameters::Base
15
+ DefaultPort = 9200
16
+ DefaultNetworkHost = `hostname -f`.chomp
17
17
 
18
- DefaultPort = 9200
19
- parameter :port
20
-
21
- protected
22
-
23
- def set_default_elasticsearch_parameters
24
- set_default :port, DefaultPort
25
- end
26
- end
27
-
28
- include Parameters
18
+ parameter :port, default: DefaultPort
19
+ parameter :network_host, default: DefaultNetworkHost
29
20
 
30
21
  protected
31
22
 
32
- def set_default_parameters
33
- super
34
- set_default_elasticsearch_parameters
35
- end
36
-
37
23
  def include_default_templates_path
38
24
  default_templates_paths.unshift(base_templates_path(__FILE__))
39
25
  end
@@ -4,7 +4,6 @@ module Luban
4
4
  class Elasticsearch
5
5
  class Configurator < Luban::Deployment::Service::Configurator
6
6
  include Paths
7
- include Parameters
8
7
  include Controller::Commands
9
8
  end
10
9
  end
@@ -26,7 +26,6 @@ module Luban
26
26
  end
27
27
 
28
28
  include Paths
29
- include Parameters
30
29
  include Commands
31
30
  end
32
31
  end
@@ -51,7 +51,7 @@ bootstrap.mlockall: true
51
51
  #
52
52
  # Set the bind address to a specific IP (IPv4 or IPv6):
53
53
  #
54
- # network.host: 192.168.0.1
54
+ network.host: [<%= network_host %>, _local_]
55
55
  #
56
56
  # Set a custom port for HTTP:
57
57
  #
@@ -2,7 +2,7 @@ module Luban
2
2
  module Deployment
3
3
  module Packages
4
4
  class Elasticsearch
5
- VERSION = '0.1.5'
5
+ VERSION = '0.1.6'
6
6
  end
7
7
  end
8
8
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.required_ruby_version = ">= 2.1.0"
23
- spec.add_dependency 'luban', ">= 0.9.8"
23
+ spec.add_dependency 'luban', ">= 0.9.10"
24
24
 
25
25
  spec.add_development_dependency "bundler", "~> 1.12"
26
26
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luban-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rubyist Chi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-19 00:00:00.000000000 Z
11
+ date: 2016-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: luban
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.8
19
+ version: 0.9.10
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
- version: 0.9.8
26
+ version: 0.9.10
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement