solr_wrapper 0.14.0 → 0.15.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5211f8f7af81378325cf44e24cb8f93f06662e53
4
- data.tar.gz: 0251f3cdb0be7e96b17873f50671a73f3bd60214
3
+ metadata.gz: 9950ef7e06d96d351e3a3ecbcf98c7cff0b0d089
4
+ data.tar.gz: ed92365b20dcaeee35568a3d418c530591748642
5
5
  SHA512:
6
- metadata.gz: fc74ab3b9c410159b831eebbfbc289ffbd0bd33d83d241c4c8d7ee907cab31f81e869eb7f0cd96db830de8ab6a6cf4944490b22afdfc83218c0b1b26864ecbba
7
- data.tar.gz: 7c1e5a503b6834218d6621f6a95a4abd744f74b5f68e26846f472cad50ee6276ad588235a91c80209c51ae43bc59d4ba648582f342f13d485a320a48e0845d8d
6
+ metadata.gz: 65fa2844dc9ed1a39ae2e2384c7211535d4edb0c6a327a1d1db1377e35f0599e491cf986d2039a37a1bbf98b58240adabc194120e4262e4d215277c11cec4049
7
+ data.tar.gz: 13b96435a5e0d3865e5d05dc26d9981d69b5f4f838fe87cd463c068ec3c29ac94f605f625cc0d5ec53c9baa081c85974e4b6e74d589d410274cd2490f58bca08
data/README.md CHANGED
@@ -44,7 +44,7 @@ SolrWrapper.wrap port: 8983,
44
44
  | ignore_md5sum | (Boolean) |
45
45
  | solr_options | (Hash) |
46
46
  | env | (Hash) |
47
- | preserve | (Boolean) Preserves the data in you collection between startups |
47
+ | persist | (Boolean) Preserves the data in you collection between startups |
48
48
 
49
49
  ```ruby
50
50
  solr.with_collection(name: 'collection_name', dir: 'path_to_solr_configs')
data/exe/solr_wrapper CHANGED
@@ -81,7 +81,10 @@ subcommands = {
81
81
  begin
82
82
  args.order!
83
83
  command = ARGV.shift
84
- subcommands[command].order! if command
84
+ if command
85
+ raise "Bad subcommand: #{command}" unless subcommands[command]
86
+ subcommands[command].order!
87
+ end
85
88
  args.parse!
86
89
  rescue => error
87
90
  $stderr.puts "ERROR: #{error}\n"
@@ -89,9 +92,6 @@ rescue => error
89
92
  exit 1
90
93
  end
91
94
 
92
- # default to verbose
93
- options[:verbose] = true if options[:verbose].nil?
94
-
95
95
  instance = SolrWrapper.instance(options)
96
96
 
97
97
  if command == 'clean'
@@ -111,6 +111,8 @@ instance.wrap do |conn|
111
111
  begin
112
112
  conn.wait
113
113
  rescue Interrupt
114
+ Signal.trap("SIGTERM") {"IGNORE"}
115
+ Signal.trap("SIGINT") {"IGNORE"}
114
116
  $stderr.puts "Solr is shutting down."
115
117
  end
116
118
  end
@@ -1,3 +1,3 @@
1
1
  module SolrWrapper
2
- VERSION = '0.14.0'
2
+ VERSION = '0.15.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solr_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-07 00:00:00.000000000 Z
11
+ date: 2016-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
202
  version: '0'
203
203
  requirements: []
204
204
  rubyforge_project:
205
- rubygems_version: 2.6.4
205
+ rubygems_version: 2.5.1
206
206
  signing_key:
207
207
  specification_version: 4
208
208
  summary: Solr 5 service wrapper