shinq 0.8.0 → 0.8.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 01d64906303f1f93f1c58963b07d97b8d5f63ac7
4
- data.tar.gz: 478a6b80464b1b399c19da69a8e37f4dc8dd7fbd
3
+ metadata.gz: 013b8f719198d810d0b9928008308196c17f4000
4
+ data.tar.gz: e48fca8300e77ad5f830c0c290f723cf89a0fc78
5
5
  SHA512:
6
- metadata.gz: b165ea04629a8dd68d9e2ea480a27cdd663d69530562721cc726e8ce360a86d61188b031dde01c7da7fbd35d8a639cd2d63441f39e947563043206ff3c82a077
7
- data.tar.gz: 7d8bef34453211d6e7e9bf6abc1ba19c881b7a42552dc76146d65d6e96bff947d090eeb68929e58c229a2998126fbb670a95adef3416f6e304f3aee5c5f20f5e
6
+ metadata.gz: 5d3dd629d17c5cd5865c3a7832f9cbf3c91437cc348a211a2abfb5063d776468cb8d511aede38acf8c4a811883a7fe469aa47308ccb0fcf048704084953bd12c
7
+ data.tar.gz: fff06dcd8d212d653a8445c201e8a983222b96a718c11ba7a3a267b86c7191acb9e7edcd42f653be66be846829e8417b586b70587ed94946e9747aeb6c28e276
data/lib/shinq/cli.rb CHANGED
@@ -112,8 +112,8 @@ module Shinq
112
112
  worker_type: 'process',
113
113
  pid_file: 'shinq.pid',
114
114
  workers: options.process,
115
- worker_graceful_kill_timeout: options.graceful_kill_timeout
116
- logger: options.daemonize ? Shinq.logger : nil
115
+ worker_graceful_kill_timeout: options.graceful_kill_timeout,
116
+ logger: options.daemonize ? Shinq.logger : nil,
117
117
  })
118
118
 
119
119
  se.run
data/shinq.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "shinq"
7
- spec.version = '0.8.0'
7
+ spec.version = '0.8.1'
8
8
  spec.authors = ["Ryoichi SEKIGUCHI"]
9
9
  spec.email = ["ryopeko@gmail.com"]
10
10
  spec.summary = %q{Worker and enqueuer for Q4M using the interface of ActiveJob.}
@@ -0,0 +1,20 @@
1
+ require 'spec_helper'
2
+ require 'shinq/cli'
3
+
4
+ describe Shinq::CLI do
5
+ describe '.new' do
6
+ context 'when there are no arguments' do
7
+ it { expect { Shinq::CLI.new(%w(--require shinq/cli)) }.not_to raise_error }
8
+ end
9
+ end
10
+
11
+ describe '#run' do
12
+ before do
13
+ allow_any_instance_of(ServerEngine::Daemon).to receive(:run).and_return(nil)
14
+ end
15
+
16
+ it 'launches Shinq::Launcher' do
17
+ Shinq::CLI.new(%w(--require shinq/cli)).run
18
+ end
19
+ end
20
+ end
data/spec/shinq_spec.rb CHANGED
@@ -73,8 +73,12 @@ describe Shinq do
73
73
  end
74
74
 
75
75
  describe ".logger" do
76
- context "when logger is present" do
77
- let(:shinq) { shinq_class }
76
+ context "when logger is not present" do
77
+ let(:shinq) {
78
+ shinq_class.tap {|s|
79
+ s.logger = nil
80
+ }
81
+ }
78
82
  it { expect(shinq.logger).to be nil }
79
83
  end
80
84
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shinq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryoichi SEKIGUCHI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-29 00:00:00.000000000 Z
11
+ date: 2017-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -216,6 +216,7 @@ files:
216
216
  - spec/config/database.yml
217
217
  - spec/db/structure.sql
218
218
  - spec/integration_spec.rb
219
+ - spec/shinq/cli_spec.rb
219
220
  - spec/shinq/configuration_spec.rb
220
221
  - spec/shinq_spec.rb
221
222
  - spec/spec_helper.rb
@@ -247,6 +248,7 @@ test_files:
247
248
  - spec/config/database.yml
248
249
  - spec/db/structure.sql
249
250
  - spec/integration_spec.rb
251
+ - spec/shinq/cli_spec.rb
250
252
  - spec/shinq/configuration_spec.rb
251
253
  - spec/shinq_spec.rb
252
254
  - spec/spec_helper.rb