contextualized_logs 0.0.4.pre.demo → 0.0.5.pre.alpha
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/README.md +6 -0
- data/Rakefile +16 -2
- data/config/initializers/sidekiq.rb +6 -20
- data/db/development.sqlite3 +0 -0
- data/db/test.sqlite3 +0 -0
- data/lib/contextualized_logs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16bd851a5a11a3d3d836efe39623fb5d67549b150fc73c3615a6c2acbbed5bcc
|
4
|
+
data.tar.gz: 1ef959584c9c06b5393c69f376b610e9e4c9ed57f36d79cdbe97dd5e617cb343
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '027493a85bc5e2b0bdc54cc3b4dceb35960a1da5a47462f2a01c6e9ab4f4fc19025aa2e6a3989b7a03376428e014f743edb4f9cc65cdaa018b7008e7fbb047ef'
|
7
|
+
data.tar.gz: 326236b9e0fb097cb481c00ee1a4700103692d9f4c40fd12c6feffe928a32166ae10567662b8e18d07f2bbad4a515f86f9aad20855e63e84d7fc65d72455ecf0
|
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -17,8 +17,22 @@ end
|
|
17
17
|
require 'bundler/gem_tasks'
|
18
18
|
require "rspec/core/rake_task"
|
19
19
|
|
20
|
-
|
21
|
-
|
20
|
+
desc "Play a demo of contextualized_logs"
|
21
|
+
task :demo do
|
22
|
+
prompt = TTY::Prompt.new
|
23
|
+
if `which asciinema`.empty?
|
24
|
+
if `which brew`.empty
|
25
|
+
return unless prompt.yes?('Install brew')
|
26
|
+
`/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"`
|
27
|
+
|
28
|
+
return unless prompt.yes?('Install asciinema using brew?')
|
29
|
+
`brew install asciinema`
|
30
|
+
end
|
31
|
+
end
|
32
|
+
prompt.warn('press [space] continuesly to play demo line by line, or just press [space] to play')
|
33
|
+
exec('asciinema play -i 1 -s 1 demo.cast')
|
34
|
+
end
|
35
|
+
|
22
36
|
task :default => :spec
|
23
37
|
# # Add your own tasks in files placed in lib/tasks ending in .rake,
|
24
38
|
# # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
@@ -1,23 +1,9 @@
|
|
1
|
-
# Sidekiq::Extensions.enable_delay!
|
2
|
-
|
3
|
-
# Perform Sidekiq jobs immediately in development, so you don't have to run a separate process.
|
4
1
|
require 'sidekiq'
|
5
|
-
# Sidekiq::Testing.inline!
|
6
2
|
|
7
|
-
|
8
|
-
|
9
|
-
|
3
|
+
Sidekiq.configure_server do |config|
|
4
|
+
config.redis = { url: 'redis://127.0.0.1:6379/1' }
|
5
|
+
end
|
10
6
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
# chain.add ContextualizedLogs::Sidekiq::Middleware::Server::RestoreCurrentContext
|
15
|
-
# end
|
16
|
-
# end
|
17
|
-
#
|
18
|
-
# Sidekiq.configure_client do |config|
|
19
|
-
# config.redis = { url: 'redis://127.0.0.1:6379/1' }
|
20
|
-
# config.client_middleware do |chain|
|
21
|
-
# chain.add ContextualizedLogs::Sidekiq::Middleware::Client::InjectCurrentContext
|
22
|
-
# end
|
23
|
-
# end
|
7
|
+
Sidekiq.configure_client do |config|
|
8
|
+
config.redis = { url: 'redis://127.0.0.1:6379/1' }
|
9
|
+
end
|
data/db/development.sqlite3
CHANGED
Binary file
|
data/db/test.sqlite3
CHANGED
Binary file
|