herdst_worker 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: c9d5a5ffa6aa3b5fcfeae78e88aee46567078ed0c34c751f4d0396a523debbb8
4
- data.tar.gz: 52ce41c7f10e65a8dea9b7e3afb3163ea8604bad592bc3b5606b5dc1890b70b5
3
+ metadata.gz: 86111f7971f9fa7a217a510a1f9dbf0f8dbb8ba1a570aceba28fffe5fffed0b6
4
+ data.tar.gz: 833aeb05a98d3b5eca6615727f382d81bc020ad438dd56c87dd9f8313e52eef4
5
5
  SHA512:
6
- metadata.gz: 48b2860290db0874e6da4f037511f9c4634df933154a771c5c9d3f535e8f8887e2bd91ea7dd8f3983ed1406dbf0318d32deca935f8891cc1e38d31bc3e97ff53
7
- data.tar.gz: 398ebb6a28106cf7693e7b6fc55c8dd0eba03f29c36032c00da88466ab076bbb8712c78652c26c36e70a7f0668d9b5145d72c5bb4ab026eed18c11141bce6635
6
+ metadata.gz: 9cf7894ad1ac6bb37a005ad40b8a38002b97c0532ae8ee5ec67746f1fc4ceb8a5736dc1d6abba7b9d5f5a2d0bcec2ac77f14e91aeb00b431382645fca033b8e4
7
+ data.tar.gz: c4d8231d2cc47e2b0e03434623b51b3189127204e616ea13fef1c6d01cd7b9eef130dcc10943ed770922a84d440b920c70f2926b7a9f6d05829946fe013c36c8
data/bin/herdst_worker CHANGED
@@ -1,14 +1,17 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- args = Hash[ ARGV.flat_map { |s| s.scan(/--?([^=\s]+)(?:=(\S+))?/) } ]
3
+ args = ARGV
4
+ .flat_map { |s| s.scan(/--?([^=\s]+)(?:=(\S+))?/) }
5
+ .select { |i| i[1] != "" }
4
6
 
5
- application_name = args["name"]
6
- application_file = args["application"] || "application.rb"
7
+ arg_pair = Hash[ args ]
8
+ application_name = arg_pair["name"]
9
+ application_file = arg_pair["application"] || "application.rb"
7
10
  application_path = "#{Dir.pwd}/#{application_file}"
8
- application_env = args["env"] || "production"
9
- queue_enabled = args["queue_enabled"] == "false" ? false : true
11
+ application_env = arg_pair["env"] || "production"
12
+ queue_enabled = arg_pair["queue_enabled"] == "false" ? false : true
10
13
 
11
- raise "Please specify a name for the application E.g. --name=[name]" unless application_name.present?
14
+ raise "Please specify a name for the application E.g. --name=[name]" unless application_name
12
15
 
13
16
  require_relative "../lib/herdst_worker"
14
17
 
@@ -1,3 +1,3 @@
1
1
  module HerdstWorker
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: herdst_worker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Herd.St
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-02 00:00:00.000000000 Z
11
+ date: 2021-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport