mina-thinking-sphinx 0.0.1

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.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/lib/mina/ts.rb +6 -0
  3. data/lib/mina/ts/tasks.rb +43 -0
  4. metadata +60 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e85a5f5c0b12332867a91b06bcee1db1cbd61330
4
+ data.tar.gz: 3e168a07ba4f3f9f04ae320c237f07bb1582557c
5
+ SHA512:
6
+ metadata.gz: 142747d55ba1bad6704f80e15ece8c496c7fd313b3932b856d0047bf8a644d94860fcdcf9d8ba56fa67999437ba0d303f6d78b2bc1450c6af096b9312e2db186
7
+ data.tar.gz: 4dae548dc155558a9612f270349902b2bb3de556f5d328b94c5227a16015982f4228983f8b6f76d458c30aefed4068f538a7e413e69041a79ca72524e5a3e687
data/lib/mina/ts.rb ADDED
@@ -0,0 +1,6 @@
1
+ require 'mina/ts/tasks'
2
+
3
+ module Mina
4
+ module TS
5
+ end
6
+ end
@@ -0,0 +1,43 @@
1
+ namespace :ts do
2
+ desc 'Start the Sphinx daemon'
3
+ task start: :remote_environment do
4
+ comment "Starting Sphinx"
5
+ in_path fetch(:current_path) do
6
+ command "RACK_ENV=#{fetch(:rails_env)} #{fetch(:bundle_bin)} exec rake ts:start"
7
+ end
8
+ end
9
+
10
+ desc 'Stop the Sphinx daemon'
11
+ task stop: :remote_environment do
12
+ comment "Stopping Sphinx"
13
+ in_path fetch(:current_path) do
14
+ command "RACK_ENV=#{fetch(:rails_env)} #{fetch(:bundle_bin)} exec rake ts:stop"
15
+ end
16
+ end
17
+
18
+ desc 'Restart the Sphinx daemon'
19
+ task restart: :remote_environment do
20
+ comment "Restarting Sphinx"
21
+ in_path fetch(:current_path) do
22
+ command "RACK_ENV=#{fetch(:rails_env)} #{fetch(:bundle_bin)} exec rake ts:restart"
23
+ end
24
+ end
25
+
26
+ desc 'Delete and regenerate Sphinx files, restart the daemon'
27
+ task rebuild: :remote_environment do
28
+ comment "Rebuilding indices"
29
+ in_path fetch(:current_path) do
30
+ command "RACK_ENV=#{fetch(:rails_env)} #{fetch(:bundle_bin)} exec rake ts:rebuild"
31
+ end
32
+ end
33
+
34
+ namespace :rt do
35
+ desc 'Delete and regenerate real-time Sphinx files, restart the daemon'
36
+ task rebuild: :remote_environment do
37
+ comment "Rebuilding real-time indices"
38
+ in_path fetch(:current_path) do
39
+ command "RACK_ENV=#{fetch(:rails_env)} #{fetch(:bundle_bin)} exec rake ts:rt:rebuild"
40
+ end
41
+ end
42
+ end
43
+ end
metadata ADDED
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mina-thinking-sphinx
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Vladimir Kozlov
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-08-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: mina
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ description:
28
+ email:
29
+ - nilstruct@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - lib/mina/ts.rb
35
+ - lib/mina/ts/tasks.rb
36
+ homepage: https://github.com/airled/mina-thinking-sphinx
37
+ licenses:
38
+ - MIT
39
+ metadata: {}
40
+ post_install_message:
41
+ rdoc_options: []
42
+ require_paths:
43
+ - lib
44
+ required_ruby_version: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ required_rubygems_version: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ requirements: []
55
+ rubyforge_project:
56
+ rubygems_version: 2.5.1
57
+ signing_key:
58
+ specification_version: 4
59
+ summary: Mina tasks for Thinking Sphinx
60
+ test_files: []