jobly 0.5.8 → 0.5.9

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: f35017a905b84ee3c8009dbc307e3f790bf935345a879f957d1c9229763f7956
4
- data.tar.gz: 2475f17453db7e5e5c75db80a7fa7b2d3d7086a1918c7433be506689c9ccb6d5
3
+ metadata.gz: 86e63cbb0978b92130eaa7d290327ad6b3b0e9926c6f69b7f7c739a7cf673c6e
4
+ data.tar.gz: c73a27dd12848d658bef7fbbf14984de572b21582ee9a2a8afb942d51e585e21
5
5
  SHA512:
6
- metadata.gz: 930202c34a62f26ecefef9cf2f0847f6a767d8ff7406f145ed45c345c58dbaae1ead2c2d787c2b05ddc9e6ef6db92785efe2081ff630498f1514a790a6a73117
7
- data.tar.gz: 7e48a6455f7d7e66e2f91d4dc222fffd271ff839f311b3327449d0012b35edd736129fc62129d125e33795e529fa010cdebaad8d52e4be7a5f310c176db029c3
6
+ metadata.gz: cc3986a7042c1c5d59183fdb22edd4bd9c12c494bce99c47f8100dc60e943f9593ade23bf541faa981711ea4b4e5b6ae81f868f801908c78d26770c935db8eea
7
+ data.tar.gz: aa8f0b09e681bcd2541a7a105090c3ed50b3e706847feb4ac37ba912b44f85fb4d9a379c972ea969b50a19bc15c754fd033362ae69e016f6f4ad4422d63d653d
@@ -25,6 +25,7 @@ module Jobly
25
25
  log: ENV['JOBLY_LOG'],
26
26
  log_level: ENV['JOBLY_LOG_LEVEL'] || 'info',
27
27
  auth: ENV['JOBLY_AUTH'],
28
+ secret: ENV['JOBLY_SECRET'] || 'change-this-cookie-secret',
28
29
  shell_dry_run: ENV['JOBLY_SHELL_DRY_RUN'],
29
30
  mounts: nil,
30
31
  }
data/lib/jobly/server.rb CHANGED
@@ -17,7 +17,7 @@ module Jobly
17
17
 
18
18
  Rack::Builder.new do
19
19
  use Rack::MethodOverride
20
- use Rack::Session::Cookie
20
+ use Rack::Session::Cookie, secret: Jobly.secret
21
21
 
22
22
  if Jobly.auth
23
23
  user, pass = Jobly.auth.split ':'
@@ -15,5 +15,6 @@ Jobly.configure do |config|
15
15
  # config.slack_channel = '#debug'
16
16
  # config.slack_user = 'Jobly'
17
17
  # config.auth = 'admin:secret'
18
+ # config.secret = 'there is no spoon'
18
19
  # config.shell_dry_run = false
19
20
  end
@@ -10,6 +10,7 @@ export JOBLY_STATUS_EXPIRATION=30
10
10
  export JOBLY_JOBS_NAMESPACE=Jobs
11
11
  export JOBLY_LOG=logs/jobs.log
12
12
  export JOBLY_AUTH=admin:secret
13
+ export JOBLY_SECRET=secret-for-session
13
14
  export JOBLY_SLACK_WEBHOOK=https://hooks.slack.com/services/...
14
15
  export JOBLY_SLACK_CHANNEL=#debug
15
16
  export JOBLY_SLACK_USER=Botly
data/lib/jobly/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jobly
2
- VERSION = "0.5.8"
2
+ VERSION = "0.5.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jobly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.8
4
+ version: 0.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-25 00:00:00.000000000 Z
11
+ date: 2021-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
19
+ version: '5.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.0'
26
+ version: '5.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pretty_trace
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -120,14 +120,14 @@ dependencies:
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: '1.1'
123
+ version: '2.0'
124
124
  type: :runtime
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
- version: '1.1'
130
+ version: '2.0'
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: sinatra
133
133
  requirement: !ruby/object:Gem::Requirement
@@ -321,7 +321,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
321
321
  - !ruby/object:Gem::Version
322
322
  version: '0'
323
323
  requirements: []
324
- rubygems_version: 3.2.16
324
+ rubygems_version: 3.2.25
325
325
  signing_key:
326
326
  specification_version: 4
327
327
  summary: Compact job server with API, CLI, Web UI and a Sidekiq heart