upperkut 0.4.2 → 0.4.3
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 +4 -4
- data/lib/upperkut/cli.rb +18 -3
- data/lib/upperkut/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0f14e4a7d808332518409862efb32023d4ce63c2b6763316926224466e4da26
|
4
|
+
data.tar.gz: cfb90ce922010cf730b1fe431f5faae1b4ef76669335832063ece76de6d7fe26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efa7ae73e7f9830c4ddd163d66a54a730591d417f86233b780d80c033fd2f4301e7e0a819251a4c80e81830c9655fd6ebf9cbd16f58b2b11bf05684fad860686
|
7
|
+
data.tar.gz: c49347c38e4bdce0c14933297b15c456a3f258047fb67d6bc70a2e75a899f1582908d38259bd62d23e96f1be4e6b8073373555a93211ca6e95a411906ff03b0b
|
data/lib/upperkut/cli.rb
CHANGED
@@ -13,8 +13,23 @@ module Upperkut
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def start
|
16
|
-
if
|
17
|
-
|
16
|
+
if target_required = @options[:require]
|
17
|
+
if File.directory?(target_required)
|
18
|
+
require 'rails'
|
19
|
+
if ::Rails::VERSION::MAJOR == 4
|
20
|
+
require File.expand_path("#{@options[:require]}/config/application.rb")
|
21
|
+
::Rails::Application.initializer "upperkut.eager_load" do
|
22
|
+
::Rails.application.config.eager_load = true
|
23
|
+
end
|
24
|
+
|
25
|
+
require File.expand_path("#{@options[:require]}/config/environment.rb")
|
26
|
+
else
|
27
|
+
require 'sidekiq/rails'
|
28
|
+
require File.expand_path("#{@options[:require]}/config/environment.rb")
|
29
|
+
end
|
30
|
+
else
|
31
|
+
require file
|
32
|
+
end
|
18
33
|
end
|
19
34
|
|
20
35
|
if log_level = @options[:log_level]
|
@@ -71,7 +86,7 @@ module Upperkut
|
|
71
86
|
@options[:worker] = arg
|
72
87
|
end
|
73
88
|
o.on('-r', '--require FILE', 'Indicate a file to be required') do |arg|
|
74
|
-
@options[:
|
89
|
+
@options[:require] = arg
|
75
90
|
end
|
76
91
|
o.on('-c', '--concurrency INT', 'Numbers of threads to spawn') do |arg|
|
77
92
|
@options[:concurrency] = Integer(arg)
|
data/lib/upperkut/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: upperkut
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nando Sousa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|