sidekiq-unique-jobs 5.0.2 → 5.0.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sidekiq-unique-jobs might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -1
- data/Appraisals +1 -1
- data/CHANGELOG.md +9 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +1 -1
- data/LICENSE.txt +21 -0
- data/bin/bench +1 -1
- data/lib/sidekiq-unique-jobs.rb +3 -1
- data/lib/sidekiq/simulator.rb +4 -10
- data/lib/sidekiq_unique_jobs/cli.rb +2 -0
- data/lib/sidekiq_unique_jobs/client/middleware.rb +2 -0
- data/lib/sidekiq_unique_jobs/config.rb +2 -0
- data/lib/sidekiq_unique_jobs/constants.rb +19 -17
- data/lib/sidekiq_unique_jobs/core_ext.rb +2 -0
- data/lib/sidekiq_unique_jobs/lock.rb +2 -0
- data/lib/sidekiq_unique_jobs/lock/until_and_while_executing.rb +2 -0
- data/lib/sidekiq_unique_jobs/lock/until_executed.rb +3 -1
- data/lib/sidekiq_unique_jobs/lock/until_executing.rb +2 -0
- data/lib/sidekiq_unique_jobs/lock/until_timeout.rb +2 -0
- data/lib/sidekiq_unique_jobs/lock/while_executing.rb +2 -0
- data/lib/sidekiq_unique_jobs/middleware.rb +2 -0
- data/lib/sidekiq_unique_jobs/normalizer.rb +2 -0
- data/lib/sidekiq_unique_jobs/options_with_fallback.rb +2 -0
- data/lib/sidekiq_unique_jobs/run_lock_failed.rb +2 -0
- data/lib/sidekiq_unique_jobs/script_mock.rb +2 -0
- data/lib/sidekiq_unique_jobs/scripts.rb +15 -10
- data/lib/sidekiq_unique_jobs/scripts/acquire_lock.rb +2 -0
- data/lib/sidekiq_unique_jobs/scripts/release_lock.rb +2 -0
- data/lib/sidekiq_unique_jobs/server/middleware.rb +2 -0
- data/lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb +2 -0
- data/lib/sidekiq_unique_jobs/testing.rb +2 -0
- data/lib/sidekiq_unique_jobs/testing/sidekiq_overrides.rb +2 -0
- data/lib/sidekiq_unique_jobs/timeout_calculator.rb +2 -0
- data/lib/sidekiq_unique_jobs/unique_args.rb +3 -1
- data/lib/sidekiq_unique_jobs/unlockable.rb +2 -0
- data/lib/sidekiq_unique_jobs/util.rb +5 -3
- data/lib/sidekiq_unique_jobs/version.rb +3 -1
- data/sidekiq-unique-jobs.gemspec +27 -23
- metadata +44 -200
- data/LICENSE +0 -13
- data/circle.yml +0 -41
- data/gemfiles/sidekiq_4.0.gemfile +0 -22
- data/gemfiles/sidekiq_4.1.gemfile +0 -22
- data/gemfiles/sidekiq_4.2.gemfile +0 -22
- data/gemfiles/sidekiq_5.0.gemfile +0 -22
- data/gemfiles/sidekiq_develop.gemfile +0 -22
- data/rails_example/.env +0 -12
- data/rails_example/.env.test +0 -12
- data/rails_example/.gitignore +0 -13
- data/rails_example/.rspec +0 -2
- data/rails_example/Gemfile +0 -38
- data/rails_example/Procfile +0 -2
- data/rails_example/README.rdoc +0 -28
- data/rails_example/Rakefile +0 -6
- data/rails_example/app/assets/images/.keep +0 -0
- data/rails_example/app/assets/javascripts/application.js +0 -16
- data/rails_example/app/assets/stylesheets/application.css +0 -15
- data/rails_example/app/channels/appearance_channel.rb +0 -17
- data/rails_example/app/channels/application_cable/channel.rb +0 -4
- data/rails_example/app/channels/application_cable/connection.rb +0 -9
- data/rails_example/app/channels/post_channel.rb +0 -5
- data/rails_example/app/controllers/application_controller.rb +0 -5
- data/rails_example/app/controllers/concerns/.keep +0 -0
- data/rails_example/app/controllers/work_controller.rb +0 -39
- data/rails_example/app/helpers/application_helper.rb +0 -2
- data/rails_example/app/mailers/.keep +0 -0
- data/rails_example/app/models/.keep +0 -0
- data/rails_example/app/models/application_record.rb +0 -3
- data/rails_example/app/models/concerns/.keep +0 -0
- data/rails_example/app/models/guest.rb +0 -18
- data/rails_example/app/models/post.rb +0 -2
- data/rails_example/app/views/layouts/application.html.erb +0 -15
- data/rails_example/app/workers/simple_worker.rb +0 -15
- data/rails_example/app/workers/slow_until_executing_worker.rb +0 -15
- data/rails_example/app/workers/spawn_simple_worker.rb +0 -10
- data/rails_example/app/workers/while_executing_worker.rb +0 -12
- data/rails_example/app/workers/without_args_worker.rb +0 -16
- data/rails_example/app/workers/without_argument_worker.rb +0 -12
- data/rails_example/bin/bundle +0 -3
- data/rails_example/bin/check_or_setup_db +0 -56
- data/rails_example/bin/docker-setup +0 -20
- data/rails_example/bin/rails +0 -4
- data/rails_example/bin/rake +0 -4
- data/rails_example/bin/setup +0 -34
- data/rails_example/bin/update +0 -29
- data/rails_example/cable.ru +0 -6
- data/rails_example/common-services.yml +0 -52
- data/rails_example/config.ru +0 -4
- data/rails_example/config/application.rb +0 -27
- data/rails_example/config/boot.rb +0 -3
- data/rails_example/config/cable.yml +0 -9
- data/rails_example/config/database.docker.yml +0 -12
- data/rails_example/config/database.yml +0 -19
- data/rails_example/config/environment.rb +0 -5
- data/rails_example/config/environments/development.rb +0 -54
- data/rails_example/config/environments/production.rb +0 -86
- data/rails_example/config/environments/test.rb +0 -42
- data/rails_example/config/initializers/application_controller_renderer.rb +0 -6
- data/rails_example/config/initializers/assets.rb +0 -11
- data/rails_example/config/initializers/backtrace_silencers.rb +0 -9
- data/rails_example/config/initializers/cookies_serializer.rb +0 -5
- data/rails_example/config/initializers/filter_parameter_logging.rb +0 -4
- data/rails_example/config/initializers/inflections.rb +0 -16
- data/rails_example/config/initializers/mime_types.rb +0 -4
- data/rails_example/config/initializers/new_framework_defaults.rb +0 -23
- data/rails_example/config/initializers/session_store.rb +0 -3
- data/rails_example/config/initializers/sidekiq.rb +0 -13
- data/rails_example/config/initializers/wrap_parameters.rb +0 -14
- data/rails_example/config/locales/en.yml +0 -23
- data/rails_example/config/puma.rb +0 -38
- data/rails_example/config/routes.rb +0 -8
- data/rails_example/config/secrets.yml +0 -22
- data/rails_example/config/sidekiq.yml +0 -6
- data/rails_example/config/spring.rb +0 -6
- data/rails_example/db/migrate/20160724111322_create_posts.rb +0 -12
- data/rails_example/db/schema.rb +0 -25
- data/rails_example/db/seeds.rb +0 -7
- data/rails_example/dev-entrypoint.sh +0 -55
- data/rails_example/dev.env +0 -12
- data/rails_example/docker-compose.yml +0 -71
- data/rails_example/docker/rails.Dockerfile +0 -27
- data/rails_example/lib/assets/.keep +0 -0
- data/rails_example/lib/tasks/.keep +0 -0
- data/rails_example/log/.keep +0 -0
- data/rails_example/public/404.html +0 -67
- data/rails_example/public/422.html +0 -67
- data/rails_example/public/500.html +0 -66
- data/rails_example/public/favicon.ico +0 -0
- data/rails_example/public/robots.txt +0 -5
- data/rails_example/simple.ru +0 -12
- data/rails_example/spec/controllers/work_controller_mock_spec.rb +0 -91
- data/rails_example/spec/controllers/work_controller_spec.rb +0 -77
- data/rails_example/spec/factories/posts.rb +0 -8
- data/rails_example/spec/models/post_spec.rb +0 -4
- data/rails_example/spec/rails_helper.rb +0 -20
- data/rails_example/spec/spec_helper.rb +0 -20
- data/rails_example/spec/support/sidekiq_meta.rb +0 -12
- data/rails_example/spec/workers/simple_worker_spec.rb +0 -4
- data/rails_example/vendor/assets/javascripts/.keep +0 -0
- data/rails_example/vendor/assets/stylesheets/.keep +0 -0
- data/spec/jobs/another_unique_job.rb +0 -13
- data/spec/jobs/custom_queue_job.rb +0 -5
- data/spec/jobs/custom_queue_job_with_filter_method.rb +0 -7
- data/spec/jobs/custom_queue_job_with_filter_proc.rb +0 -10
- data/spec/jobs/expiring_job.rb +0 -4
- data/spec/jobs/inline_worker.rb +0 -8
- data/spec/jobs/just_a_worker.rb +0 -7
- data/spec/jobs/long_running_job.rb +0 -6
- data/spec/jobs/main_job.rb +0 -7
- data/spec/jobs/my_job.rb +0 -12
- data/spec/jobs/my_unique_job.rb +0 -11
- data/spec/jobs/my_unique_job_with_filter_method.rb +0 -17
- data/spec/jobs/my_unique_job_with_filter_proc.rb +0 -15
- data/spec/jobs/notify_worker.rb +0 -10
- data/spec/jobs/plain_class.rb +0 -3
- data/spec/jobs/simple_worker.rb +0 -11
- data/spec/jobs/spawn_simple_worker.rb +0 -8
- data/spec/jobs/test_class.rb +0 -3
- data/spec/jobs/unique_job_with_conditional_parameter.rb +0 -14
- data/spec/jobs/unique_job_with_filter_method.rb +0 -18
- data/spec/jobs/unique_job_with_nil_unique_args.rb +0 -16
- data/spec/jobs/unique_job_with_no_unique_args_method.rb +0 -12
- data/spec/jobs/unique_job_withthout_unique_args_parameter.rb +0 -14
- data/spec/jobs/unique_on_all_queues_job.rb +0 -13
- data/spec/jobs/until_and_while_executing_job.rb +0 -7
- data/spec/jobs/until_executed_job.rb +0 -17
- data/spec/jobs/until_executing_job.rb +0 -7
- data/spec/jobs/until_global_timeout_job.rb +0 -8
- data/spec/jobs/until_timeout_job.rb +0 -8
- data/spec/jobs/while_executing_job.rb +0 -12
- data/spec/jobs/without_argument_job.rb +0 -9
- data/spec/lib/sidekiq_unique_jobs/cli_spec.rb +0 -183
- data/spec/lib/sidekiq_unique_jobs/client/middleware_spec.rb +0 -316
- data/spec/lib/sidekiq_unique_jobs/config_spec.rb +0 -84
- data/spec/lib/sidekiq_unique_jobs/core_ext_spec.rb +0 -25
- data/spec/lib/sidekiq_unique_jobs/lock/until_and_while_executing_spec.rb +0 -42
- data/spec/lib/sidekiq_unique_jobs/lock/until_executed_spec.rb +0 -37
- data/spec/lib/sidekiq_unique_jobs/lock/until_timeout_spec.rb +0 -26
- data/spec/lib/sidekiq_unique_jobs/lock/while_executing_spec.rb +0 -86
- data/spec/lib/sidekiq_unique_jobs/normalizer_spec.rb +0 -21
- data/spec/lib/sidekiq_unique_jobs/options_with_fallback_spec.rb +0 -113
- data/spec/lib/sidekiq_unique_jobs/queue_lock_timeout_calculator_spec.rb +0 -47
- data/spec/lib/sidekiq_unique_jobs/run_lock_timeout_calculator_spec.rb +0 -36
- data/spec/lib/sidekiq_unique_jobs/script_mock_spec.rb +0 -88
- data/spec/lib/sidekiq_unique_jobs/scripts/acquire_lock_spec.rb +0 -50
- data/spec/lib/sidekiq_unique_jobs/scripts/release_lock_spec.rb +0 -41
- data/spec/lib/sidekiq_unique_jobs/scripts_spec.rb +0 -68
- data/spec/lib/sidekiq_unique_jobs/server/middleware_spec.rb +0 -78
- data/spec/lib/sidekiq_unique_jobs/sidekiq_testing_enabled_spec.rb +0 -164
- data/spec/lib/sidekiq_unique_jobs/sidekiq_unique_ext_spec.rb +0 -75
- data/spec/lib/sidekiq_unique_jobs/sidekiq_unique_jobs_spec.rb +0 -41
- data/spec/lib/sidekiq_unique_jobs/timeout_calculator_spec.rb +0 -70
- data/spec/lib/sidekiq_unique_jobs/unique_args_spec.rb +0 -257
- data/spec/lib/sidekiq_unique_jobs/unlockable_spec.rb +0 -37
- data/spec/lib/sidekiq_unique_jobs/util_spec.rb +0 -81
- data/spec/spec_helper.rb +0 -92
- data/spec/support/matchers/redis_matchers.rb +0 -29
- data/spec/support/ruby_meta.rb +0 -17
- data/spec/support/sidekiq_meta.rb +0 -30
- data/spec/support/unique_macros.rb +0 -71
data/LICENSE
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
2
|
-
Version 2, December 2004
|
3
|
-
|
4
|
-
Copyright (C) 2015 Mikael Henriksson <mikael@zoolutions.se>
|
5
|
-
|
6
|
-
Everyone is permitted to copy and distribute verbatim or modified
|
7
|
-
copies of this license document, and changing it is allowed as long
|
8
|
-
as the name is changed.
|
9
|
-
|
10
|
-
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
11
|
-
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
12
|
-
|
13
|
-
0. You just DO WHAT THE FUCK YOU WANT TO.
|
data/circle.yml
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
machine:
|
2
|
-
ruby:
|
3
|
-
version:
|
4
|
-
2.3.0
|
5
|
-
java:
|
6
|
-
version: oraclejdk8
|
7
|
-
environment:
|
8
|
-
JRUBY_OPTS: '-J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -X-C -Xcompile.invokedynamic=false --1.9 -J-Xmx1g'
|
9
|
-
|
10
|
-
dependencies:
|
11
|
-
pre:
|
12
|
-
- rvm install jruby-9.0.0.0
|
13
|
-
- rvm install jruby-1.7
|
14
|
-
- rvm install rbx-2
|
15
|
-
- rvm install 2.0.0
|
16
|
-
- rvm install 2.1.7
|
17
|
-
- rvm install 2.2.3
|
18
|
-
override:
|
19
|
-
- rvm-exec jruby-9.0.0.0 bundle install
|
20
|
-
- rvm-exec jruby-1.7 bundle install
|
21
|
-
- rvm-exec rbx-2 bundle install
|
22
|
-
- rvm-exec 2.0.0 bundle install
|
23
|
-
- rvm-exec 2.1.8 bundle install
|
24
|
-
- rvm-exec 2.2.4 bundle install
|
25
|
-
- rvm-exec jruby-9.0.0.0 bundle exec appraisal install
|
26
|
-
- rvm-exec jruby-1.7 bundle exec appraisal install
|
27
|
-
- rvm-exec rbx-2 bundle exec appraisal install
|
28
|
-
- rvm-exec 2.0.0 bundle exec appraisal install
|
29
|
-
- rvm-exec 2.1.7 bundle exec appraisal install
|
30
|
-
- rvm-exec 2.2.3 bundle exec appraisal install
|
31
|
-
- rvm-exec 2.3.0 bundle exec appraisal install
|
32
|
-
|
33
|
-
test:
|
34
|
-
override:
|
35
|
-
- rvm-exec jruby-9.0.0.0 bundle exec appraisal rspec
|
36
|
-
- rvm-exec jruby-1.7 bundle exec appraisal rspec
|
37
|
-
- rvm-exec rbx-2 bundle exec appraisal rspec
|
38
|
-
- rvm-exec 2.0.0 bundle exec appraisal rspec
|
39
|
-
- rvm-exec 2.1.7 bundle exec appraisal rspec
|
40
|
-
- rvm-exec 2.2.3 bundle exec appraisal rspec
|
41
|
-
- rvm-exec 2.3.0 bundle exec appraisal rspec
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "appraisal", "~> 2.0.0"
|
6
|
-
gem "rspec-its", :require => false
|
7
|
-
gem "rspec-wait", :require => false
|
8
|
-
gem "sidekiq", "~> 4.0.0"
|
9
|
-
|
10
|
-
platforms :mri_24 do
|
11
|
-
gem "benchmark-ips", :require => false
|
12
|
-
gem "codeclimate-test-reporter", :require => false
|
13
|
-
gem "fasterer", :require => false
|
14
|
-
gem "memory_profiler", :require => false
|
15
|
-
gem "mock_redis", :require => false
|
16
|
-
gem "pry-byebug", :require => false
|
17
|
-
gem "rubocop", :require => false
|
18
|
-
gem "simplecov-json", :require => false
|
19
|
-
gem "travis", :require => false
|
20
|
-
end
|
21
|
-
|
22
|
-
gemspec :path => "../"
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "appraisal", "~> 2.0.0"
|
6
|
-
gem "rspec-its", :require => false
|
7
|
-
gem "rspec-wait", :require => false
|
8
|
-
gem "sidekiq", "~> 4.1.0"
|
9
|
-
|
10
|
-
platforms :mri_24 do
|
11
|
-
gem "benchmark-ips", :require => false
|
12
|
-
gem "codeclimate-test-reporter", :require => false
|
13
|
-
gem "fasterer", :require => false
|
14
|
-
gem "memory_profiler", :require => false
|
15
|
-
gem "mock_redis", :require => false
|
16
|
-
gem "pry-byebug", :require => false
|
17
|
-
gem "rubocop", :require => false
|
18
|
-
gem "simplecov-json", :require => false
|
19
|
-
gem "travis", :require => false
|
20
|
-
end
|
21
|
-
|
22
|
-
gemspec :path => "../"
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "appraisal", "~> 2.0.0"
|
6
|
-
gem "rspec-its", :require => false
|
7
|
-
gem "rspec-wait", :require => false
|
8
|
-
gem "sidekiq", "~> 4.2.0"
|
9
|
-
|
10
|
-
platforms :mri_24 do
|
11
|
-
gem "benchmark-ips", :require => false
|
12
|
-
gem "codeclimate-test-reporter", :require => false
|
13
|
-
gem "fasterer", :require => false
|
14
|
-
gem "memory_profiler", :require => false
|
15
|
-
gem "mock_redis", :require => false
|
16
|
-
gem "pry-byebug", :require => false
|
17
|
-
gem "rubocop", :require => false
|
18
|
-
gem "simplecov-json", :require => false
|
19
|
-
gem "travis", :require => false
|
20
|
-
end
|
21
|
-
|
22
|
-
gemspec :path => "../"
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "appraisal", "~> 2.0.0"
|
6
|
-
gem "rspec-its", :require => false
|
7
|
-
gem "rspec-wait", :require => false
|
8
|
-
gem "sidekiq", ">= 5.0.0.beta", "< 6"
|
9
|
-
|
10
|
-
platforms :mri_24 do
|
11
|
-
gem "benchmark-ips", :require => false
|
12
|
-
gem "codeclimate-test-reporter", :require => false
|
13
|
-
gem "fasterer", :require => false
|
14
|
-
gem "memory_profiler", :require => false
|
15
|
-
gem "mock_redis", :require => false
|
16
|
-
gem "pry-byebug", :require => false
|
17
|
-
gem "rubocop", :require => false
|
18
|
-
gem "simplecov-json", :require => false
|
19
|
-
gem "travis", :require => false
|
20
|
-
end
|
21
|
-
|
22
|
-
gemspec :path => "../"
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "appraisal", "~> 2.0.0"
|
6
|
-
gem "rspec-its", :require => false
|
7
|
-
gem "rspec-wait", :require => false
|
8
|
-
gem "sidekiq", :github => "mperham/sidekiq"
|
9
|
-
|
10
|
-
platforms :mri_24 do
|
11
|
-
gem "benchmark-ips", :require => false
|
12
|
-
gem "codeclimate-test-reporter", :require => false
|
13
|
-
gem "fasterer", :require => false
|
14
|
-
gem "memory_profiler", :require => false
|
15
|
-
gem "mock_redis", :require => false
|
16
|
-
gem "pry-byebug", :require => false
|
17
|
-
gem "rubocop", :require => false
|
18
|
-
gem "simplecov-json", :require => false
|
19
|
-
gem "travis", :require => false
|
20
|
-
end
|
21
|
-
|
22
|
-
gemspec :path => "../"
|
data/rails_example/.env
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
SECRET_KEY_BASE=10167c7f7654ed02b3557b05b88ece1866a9748a2e8e064016f76cb74ddae38264f7403ba65f301d63c21d770e0ee2ac6906f245e904b3b140d12297f67e0db1
|
2
|
-
APP_DOMAIN=localhost
|
3
|
-
APP_WEB_URL=http://localhost:3000
|
4
|
-
APP_CABLE_URL=ws://localhost:28080
|
5
|
-
WEB_CONSOLE_WHITELISTED_IPS=127.0.0.1 ::1 127.0.0.0/8 ::1
|
6
|
-
DB_HOST=localhost
|
7
|
-
DB_PORT=5432
|
8
|
-
DB_USERNAME=mhenrixon
|
9
|
-
DB_PASSWORD=
|
10
|
-
DB_POOL=25
|
11
|
-
DB_TIMEOUT=5000
|
12
|
-
DB_REAPING_FREQUENCY=10
|
data/rails_example/.env.test
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
SECRET_KEY_BASE=10167c7f7654ed02b3557b05b88ece1866a9748a2e8e064016f76cb74ddae38264f7403ba65f301d63c21d770e0ee2ac6906f245e904b3b140d12297f67e0db1
|
2
|
-
APP_DOMAIN=localhost
|
3
|
-
APP_WEB_URL=http://localhost:3000
|
4
|
-
APP_CABLE_URL=ws://localhost:28080
|
5
|
-
WEB_CONSOLE_WHITELISTED_IPS=127.0.0.1 ::1 127.0.0.0/8 ::1
|
6
|
-
DB_HOST=localhost
|
7
|
-
DB_PORT=5432
|
8
|
-
DB_USERNAME=postgres
|
9
|
-
DB_PASSWORD=3x4mpl3
|
10
|
-
DB_POOL=25
|
11
|
-
DB_TIMEOUT=5000
|
12
|
-
DB_REAPING_FREQUENCY=10
|
data/rails_example/.gitignore
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
2
|
-
#
|
3
|
-
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
-
# or operating system, you probably want to add a global ignore instead:
|
5
|
-
# git config --global core.excludesfile '~/.gitignore_global'
|
6
|
-
|
7
|
-
# Ignore bundler config.
|
8
|
-
/.bundle
|
9
|
-
|
10
|
-
# Ignore all logfiles and tempfiles.
|
11
|
-
/log/*
|
12
|
-
!/log/.keep
|
13
|
-
/tmp
|
data/rails_example/.rspec
DELETED
data/rails_example/Gemfile
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org' # rubocop:disable Style/FileName
|
2
|
-
|
3
|
-
ruby '2.4.1'
|
4
|
-
|
5
|
-
gem 'bigdecimal'
|
6
|
-
gem 'json'
|
7
|
-
gem 'puma'
|
8
|
-
gem 'rails', '~> 5.0'
|
9
|
-
|
10
|
-
platforms :ruby do
|
11
|
-
gem 'pg'
|
12
|
-
gem 'pry-byebug'
|
13
|
-
gem 'ruby-prof'
|
14
|
-
end
|
15
|
-
|
16
|
-
platforms :jruby do
|
17
|
-
gem 'activerecord-jdbc-adapter'
|
18
|
-
gem 'jdbc-pg'
|
19
|
-
gem 'jruby-openssl'
|
20
|
-
end
|
21
|
-
|
22
|
-
# gem 'sidekiq-unique-jobs'
|
23
|
-
gem 'rack-protection' # , github: 'sinatra/rack-protection'
|
24
|
-
gem 'sidekiq-unique-jobs', path: '../'
|
25
|
-
gem 'sinatra', github: 'sinatra/sinatra'
|
26
|
-
|
27
|
-
group :development do
|
28
|
-
gem 'foreman'
|
29
|
-
gem 'web-console'
|
30
|
-
end
|
31
|
-
|
32
|
-
group :development, :test do
|
33
|
-
gem 'dockerspec'
|
34
|
-
gem 'factory_girl_rails'
|
35
|
-
gem 'fuubar'
|
36
|
-
gem 'mock_redis'
|
37
|
-
gem 'rspec-rails'
|
38
|
-
end
|
data/rails_example/Procfile
DELETED
data/rails_example/README.rdoc
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
== README
|
2
|
-
|
3
|
-
This README would normally document whatever steps are necessary to get the
|
4
|
-
application up and running.
|
5
|
-
|
6
|
-
Things you may want to cover:
|
7
|
-
|
8
|
-
* Ruby version
|
9
|
-
|
10
|
-
* System dependencies
|
11
|
-
|
12
|
-
* Configuration
|
13
|
-
|
14
|
-
* Database creation
|
15
|
-
|
16
|
-
* Database initialization
|
17
|
-
|
18
|
-
* How to run the test suite
|
19
|
-
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
21
|
-
|
22
|
-
* Deployment instructions
|
23
|
-
|
24
|
-
* ...
|
25
|
-
|
26
|
-
|
27
|
-
Please feel free to use a different markup language if you do not plan to run
|
28
|
-
<tt>rake doc:app</tt>.
|
data/rails_example/Rakefile
DELETED
File without changes
|
@@ -1,16 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file.
|
9
|
-
//
|
10
|
-
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
-
// about supported directives.
|
12
|
-
//
|
13
|
-
//= require jquery
|
14
|
-
//= require jquery_ujs
|
15
|
-
//= require turbolinks
|
16
|
-
//= require_tree .
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any styles
|
10
|
-
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
11
|
-
* file per style scope.
|
12
|
-
*
|
13
|
-
*= require_tree .
|
14
|
-
*= require_self
|
15
|
-
*/
|
@@ -1,17 +0,0 @@
|
|
1
|
-
class AppearanceChannel < ApplicationCable::Channel
|
2
|
-
def subscribed
|
3
|
-
current_user.appear
|
4
|
-
end
|
5
|
-
|
6
|
-
def unsubscribed
|
7
|
-
current_user.disappear
|
8
|
-
end
|
9
|
-
|
10
|
-
def appear(data)
|
11
|
-
current_user.appear on: data['appearing_on']
|
12
|
-
end
|
13
|
-
|
14
|
-
def away
|
15
|
-
current_user.away
|
16
|
-
end
|
17
|
-
end
|
File without changes
|
@@ -1,39 +0,0 @@
|
|
1
|
-
class WorkController < ApplicationController
|
2
|
-
def duplicate_simple
|
3
|
-
4.times { SimpleWorker.perform_async(unique_argument) }
|
4
|
-
|
5
|
-
redirect_to '/sidekiq'
|
6
|
-
end
|
7
|
-
|
8
|
-
def duplicate_slow
|
9
|
-
4.times { SlowUntilExecutingWorker.perform_async(unique_argument) }
|
10
|
-
|
11
|
-
redirect_to '/sidekiq'
|
12
|
-
end
|
13
|
-
|
14
|
-
def duplicate_nested
|
15
|
-
4.times { SpawnSimpleWorker.perform_async(unique_argument) }
|
16
|
-
|
17
|
-
redirect_to '/sidekiq'
|
18
|
-
end
|
19
|
-
|
20
|
-
def duplicate_without_args
|
21
|
-
4.times { WithoutArgsWorker.perform_async }
|
22
|
-
|
23
|
-
redirect_to '/sidekiq'
|
24
|
-
end
|
25
|
-
|
26
|
-
def duplicate_with_args
|
27
|
-
4.times { WithoutArgsWorker.perform_async 1 }
|
28
|
-
|
29
|
-
redirect_to '/sidekiq'
|
30
|
-
end
|
31
|
-
|
32
|
-
def unique_argument
|
33
|
-
params[:id]
|
34
|
-
end
|
35
|
-
|
36
|
-
def safe_params
|
37
|
-
params.permit!(:id)
|
38
|
-
end
|
39
|
-
end
|
File without changes
|