postjob 0.5.12 → 0.5.13
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/postjob/cli/helpers.rb +1 -1
- data/lib/postjob/host.rb +1 -1
- data/lib/postjob.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ea97cd68e46a41fba036626fe135d0f26b4d5101
|
|
4
|
+
data.tar.gz: 70aeba175c25b96599938a07a51d5c2da9212503
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 05ff417059270346ccf28181ba189e1305aa581f6aeed613f8e03a5723123a1166d4ce7019ca90edfe736b296ab11d3a41b6dcc47a377f0215333d7ea6d27435
|
|
7
|
+
data.tar.gz: b3ac4ab2d61d7cdc37de9e3f3f9d5a16128a970a8ea15a2e0f3fed4e43092ed2c37198316b633c82da3cd4cdafaf715a18b85601c3326c0fb1c2f526a5a263d6
|
data/lib/postjob/cli/helpers.rb
CHANGED
|
@@ -15,7 +15,7 @@ module Postjob::CLI
|
|
|
15
15
|
puts "\n=== #{title} =======================================\n\n"
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
records = Simple::SQL.print(query
|
|
18
|
+
records = Simple::SQL.print(query)
|
|
19
19
|
|
|
20
20
|
if records.total_count && records.total_count > records.length
|
|
21
21
|
logger.warn "Output limited up to limit #{records.length}. Use the --limit=<NN> command line option for a different limit."
|
data/lib/postjob/host.rb
CHANGED
|
@@ -40,7 +40,7 @@ class Postjob::Host < Postjob::Record
|
|
|
40
40
|
# would be even better - however, our systems do not have a user-writable /var).
|
|
41
41
|
def storage_path
|
|
42
42
|
@storage_path ||= begin
|
|
43
|
-
env = ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development"
|
|
43
|
+
env = ENV["POSTJOB_ENV"] || ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development"
|
|
44
44
|
storage_path = File.join Dir.tmpdir, "postjob.#{env}.#{Process.uid}.host_id"
|
|
45
45
|
Postjob.logger.info "Keeping host identifier in #{storage_path}"
|
|
46
46
|
storage_path
|
data/lib/postjob.rb
CHANGED
|
@@ -202,7 +202,7 @@ module Postjob
|
|
|
202
202
|
#
|
|
203
203
|
# A call to start_worker_session! is valid only during tests.
|
|
204
204
|
if @worker_session
|
|
205
|
-
raise ArgumentError, "You cannot restart a worker session" if ENV["
|
|
205
|
+
raise ArgumentError, "You cannot restart a worker session" if ENV["POSTJOB_ENV"] != "test"
|
|
206
206
|
raise ArgumentError, "You cannot restart a worker_session with different queues" if @worker_session.queues != queues
|
|
207
207
|
|
|
208
208
|
return @worker_session
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: postjob
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- radiospiel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-08-
|
|
11
|
+
date: 2018-08-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -123,7 +123,7 @@ dependencies:
|
|
|
123
123
|
version: '0.4'
|
|
124
124
|
- - ">="
|
|
125
125
|
- !ruby/object:Gem::Version
|
|
126
|
-
version: 0.4.
|
|
126
|
+
version: 0.4.17
|
|
127
127
|
type: :runtime
|
|
128
128
|
prerelease: false
|
|
129
129
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -133,7 +133,7 @@ dependencies:
|
|
|
133
133
|
version: '0.4'
|
|
134
134
|
- - ">="
|
|
135
135
|
- !ruby/object:Gem::Version
|
|
136
|
-
version: 0.4.
|
|
136
|
+
version: 0.4.17
|
|
137
137
|
- !ruby/object:Gem::Dependency
|
|
138
138
|
name: simple-cli
|
|
139
139
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -143,7 +143,7 @@ dependencies:
|
|
|
143
143
|
version: '0'
|
|
144
144
|
- - ">="
|
|
145
145
|
- !ruby/object:Gem::Version
|
|
146
|
-
version: 0.2.
|
|
146
|
+
version: 0.2.10
|
|
147
147
|
type: :runtime
|
|
148
148
|
prerelease: false
|
|
149
149
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -153,7 +153,7 @@ dependencies:
|
|
|
153
153
|
version: '0'
|
|
154
154
|
- - ">="
|
|
155
155
|
- !ruby/object:Gem::Version
|
|
156
|
-
version: 0.2.
|
|
156
|
+
version: 0.2.10
|
|
157
157
|
- !ruby/object:Gem::Dependency
|
|
158
158
|
name: table_print
|
|
159
159
|
requirement: !ruby/object:Gem::Requirement
|