postjob 0.5.12 → 0.5.13

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
  SHA1:
3
- metadata.gz: 175e2a30ec560a1728f3b3a62750bd5afb38df3d
4
- data.tar.gz: 54328faf7c7966c21743575ab8d7a9c94b66180d
3
+ metadata.gz: ea97cd68e46a41fba036626fe135d0f26b4d5101
4
+ data.tar.gz: 70aeba175c25b96599938a07a51d5c2da9212503
5
5
  SHA512:
6
- metadata.gz: 98960758ed5262988f82ac8cb046752be425b15bd91b2355e575f69007d43b7161580d2796af4d4bd6ebcea71d87f955d442f061ad43ba720efb02a2da172584
7
- data.tar.gz: 5f1bdd2b015c706cddc7e5874bcbfada7ebc4d3c22f34511d6f5d14eb0c3f28261eebd834670cbd1e68920776b1132a20482d7c0bc58e4a13d55edbb175ee996
6
+ metadata.gz: 05ff417059270346ccf28181ba189e1305aa581f6aeed613f8e03a5723123a1166d4ce7019ca90edfe736b296ab11d3a41b6dcc47a377f0215333d7ea6d27435
7
+ data.tar.gz: b3ac4ab2d61d7cdc37de9e3f3f9d5a16128a970a8ea15a2e0f3fed4e43092ed2c37198316b633c82da3cd4cdafaf715a18b85601c3326c0fb1c2f526a5a263d6
@@ -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, into: Hash)
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["RACK_ENV"] != "test"
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
@@ -1,4 +1,4 @@
1
- ENV["RACK_ENV"] = "test"
1
+ ENV["POSTJOB_ENV"] = "test"
2
2
 
3
3
  require "rspec"
4
4
  require "pry"
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.12
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-20 00:00:00.000000000 Z
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.15
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.15
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.8
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.8
156
+ version: 0.2.10
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: table_print
159
159
  requirement: !ruby/object:Gem::Requirement