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.

Files changed (201) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +4 -1
  3. data/Appraisals +1 -1
  4. data/CHANGELOG.md +9 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +1 -1
  7. data/LICENSE.txt +21 -0
  8. data/bin/bench +1 -1
  9. data/lib/sidekiq-unique-jobs.rb +3 -1
  10. data/lib/sidekiq/simulator.rb +4 -10
  11. data/lib/sidekiq_unique_jobs/cli.rb +2 -0
  12. data/lib/sidekiq_unique_jobs/client/middleware.rb +2 -0
  13. data/lib/sidekiq_unique_jobs/config.rb +2 -0
  14. data/lib/sidekiq_unique_jobs/constants.rb +19 -17
  15. data/lib/sidekiq_unique_jobs/core_ext.rb +2 -0
  16. data/lib/sidekiq_unique_jobs/lock.rb +2 -0
  17. data/lib/sidekiq_unique_jobs/lock/until_and_while_executing.rb +2 -0
  18. data/lib/sidekiq_unique_jobs/lock/until_executed.rb +3 -1
  19. data/lib/sidekiq_unique_jobs/lock/until_executing.rb +2 -0
  20. data/lib/sidekiq_unique_jobs/lock/until_timeout.rb +2 -0
  21. data/lib/sidekiq_unique_jobs/lock/while_executing.rb +2 -0
  22. data/lib/sidekiq_unique_jobs/middleware.rb +2 -0
  23. data/lib/sidekiq_unique_jobs/normalizer.rb +2 -0
  24. data/lib/sidekiq_unique_jobs/options_with_fallback.rb +2 -0
  25. data/lib/sidekiq_unique_jobs/run_lock_failed.rb +2 -0
  26. data/lib/sidekiq_unique_jobs/script_mock.rb +2 -0
  27. data/lib/sidekiq_unique_jobs/scripts.rb +15 -10
  28. data/lib/sidekiq_unique_jobs/scripts/acquire_lock.rb +2 -0
  29. data/lib/sidekiq_unique_jobs/scripts/release_lock.rb +2 -0
  30. data/lib/sidekiq_unique_jobs/server/middleware.rb +2 -0
  31. data/lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb +2 -0
  32. data/lib/sidekiq_unique_jobs/testing.rb +2 -0
  33. data/lib/sidekiq_unique_jobs/testing/sidekiq_overrides.rb +2 -0
  34. data/lib/sidekiq_unique_jobs/timeout_calculator.rb +2 -0
  35. data/lib/sidekiq_unique_jobs/unique_args.rb +3 -1
  36. data/lib/sidekiq_unique_jobs/unlockable.rb +2 -0
  37. data/lib/sidekiq_unique_jobs/util.rb +5 -3
  38. data/lib/sidekiq_unique_jobs/version.rb +3 -1
  39. data/sidekiq-unique-jobs.gemspec +27 -23
  40. metadata +44 -200
  41. data/LICENSE +0 -13
  42. data/circle.yml +0 -41
  43. data/gemfiles/sidekiq_4.0.gemfile +0 -22
  44. data/gemfiles/sidekiq_4.1.gemfile +0 -22
  45. data/gemfiles/sidekiq_4.2.gemfile +0 -22
  46. data/gemfiles/sidekiq_5.0.gemfile +0 -22
  47. data/gemfiles/sidekiq_develop.gemfile +0 -22
  48. data/rails_example/.env +0 -12
  49. data/rails_example/.env.test +0 -12
  50. data/rails_example/.gitignore +0 -13
  51. data/rails_example/.rspec +0 -2
  52. data/rails_example/Gemfile +0 -38
  53. data/rails_example/Procfile +0 -2
  54. data/rails_example/README.rdoc +0 -28
  55. data/rails_example/Rakefile +0 -6
  56. data/rails_example/app/assets/images/.keep +0 -0
  57. data/rails_example/app/assets/javascripts/application.js +0 -16
  58. data/rails_example/app/assets/stylesheets/application.css +0 -15
  59. data/rails_example/app/channels/appearance_channel.rb +0 -17
  60. data/rails_example/app/channels/application_cable/channel.rb +0 -4
  61. data/rails_example/app/channels/application_cable/connection.rb +0 -9
  62. data/rails_example/app/channels/post_channel.rb +0 -5
  63. data/rails_example/app/controllers/application_controller.rb +0 -5
  64. data/rails_example/app/controllers/concerns/.keep +0 -0
  65. data/rails_example/app/controllers/work_controller.rb +0 -39
  66. data/rails_example/app/helpers/application_helper.rb +0 -2
  67. data/rails_example/app/mailers/.keep +0 -0
  68. data/rails_example/app/models/.keep +0 -0
  69. data/rails_example/app/models/application_record.rb +0 -3
  70. data/rails_example/app/models/concerns/.keep +0 -0
  71. data/rails_example/app/models/guest.rb +0 -18
  72. data/rails_example/app/models/post.rb +0 -2
  73. data/rails_example/app/views/layouts/application.html.erb +0 -15
  74. data/rails_example/app/workers/simple_worker.rb +0 -15
  75. data/rails_example/app/workers/slow_until_executing_worker.rb +0 -15
  76. data/rails_example/app/workers/spawn_simple_worker.rb +0 -10
  77. data/rails_example/app/workers/while_executing_worker.rb +0 -12
  78. data/rails_example/app/workers/without_args_worker.rb +0 -16
  79. data/rails_example/app/workers/without_argument_worker.rb +0 -12
  80. data/rails_example/bin/bundle +0 -3
  81. data/rails_example/bin/check_or_setup_db +0 -56
  82. data/rails_example/bin/docker-setup +0 -20
  83. data/rails_example/bin/rails +0 -4
  84. data/rails_example/bin/rake +0 -4
  85. data/rails_example/bin/setup +0 -34
  86. data/rails_example/bin/update +0 -29
  87. data/rails_example/cable.ru +0 -6
  88. data/rails_example/common-services.yml +0 -52
  89. data/rails_example/config.ru +0 -4
  90. data/rails_example/config/application.rb +0 -27
  91. data/rails_example/config/boot.rb +0 -3
  92. data/rails_example/config/cable.yml +0 -9
  93. data/rails_example/config/database.docker.yml +0 -12
  94. data/rails_example/config/database.yml +0 -19
  95. data/rails_example/config/environment.rb +0 -5
  96. data/rails_example/config/environments/development.rb +0 -54
  97. data/rails_example/config/environments/production.rb +0 -86
  98. data/rails_example/config/environments/test.rb +0 -42
  99. data/rails_example/config/initializers/application_controller_renderer.rb +0 -6
  100. data/rails_example/config/initializers/assets.rb +0 -11
  101. data/rails_example/config/initializers/backtrace_silencers.rb +0 -9
  102. data/rails_example/config/initializers/cookies_serializer.rb +0 -5
  103. data/rails_example/config/initializers/filter_parameter_logging.rb +0 -4
  104. data/rails_example/config/initializers/inflections.rb +0 -16
  105. data/rails_example/config/initializers/mime_types.rb +0 -4
  106. data/rails_example/config/initializers/new_framework_defaults.rb +0 -23
  107. data/rails_example/config/initializers/session_store.rb +0 -3
  108. data/rails_example/config/initializers/sidekiq.rb +0 -13
  109. data/rails_example/config/initializers/wrap_parameters.rb +0 -14
  110. data/rails_example/config/locales/en.yml +0 -23
  111. data/rails_example/config/puma.rb +0 -38
  112. data/rails_example/config/routes.rb +0 -8
  113. data/rails_example/config/secrets.yml +0 -22
  114. data/rails_example/config/sidekiq.yml +0 -6
  115. data/rails_example/config/spring.rb +0 -6
  116. data/rails_example/db/migrate/20160724111322_create_posts.rb +0 -12
  117. data/rails_example/db/schema.rb +0 -25
  118. data/rails_example/db/seeds.rb +0 -7
  119. data/rails_example/dev-entrypoint.sh +0 -55
  120. data/rails_example/dev.env +0 -12
  121. data/rails_example/docker-compose.yml +0 -71
  122. data/rails_example/docker/rails.Dockerfile +0 -27
  123. data/rails_example/lib/assets/.keep +0 -0
  124. data/rails_example/lib/tasks/.keep +0 -0
  125. data/rails_example/log/.keep +0 -0
  126. data/rails_example/public/404.html +0 -67
  127. data/rails_example/public/422.html +0 -67
  128. data/rails_example/public/500.html +0 -66
  129. data/rails_example/public/favicon.ico +0 -0
  130. data/rails_example/public/robots.txt +0 -5
  131. data/rails_example/simple.ru +0 -12
  132. data/rails_example/spec/controllers/work_controller_mock_spec.rb +0 -91
  133. data/rails_example/spec/controllers/work_controller_spec.rb +0 -77
  134. data/rails_example/spec/factories/posts.rb +0 -8
  135. data/rails_example/spec/models/post_spec.rb +0 -4
  136. data/rails_example/spec/rails_helper.rb +0 -20
  137. data/rails_example/spec/spec_helper.rb +0 -20
  138. data/rails_example/spec/support/sidekiq_meta.rb +0 -12
  139. data/rails_example/spec/workers/simple_worker_spec.rb +0 -4
  140. data/rails_example/vendor/assets/javascripts/.keep +0 -0
  141. data/rails_example/vendor/assets/stylesheets/.keep +0 -0
  142. data/spec/jobs/another_unique_job.rb +0 -13
  143. data/spec/jobs/custom_queue_job.rb +0 -5
  144. data/spec/jobs/custom_queue_job_with_filter_method.rb +0 -7
  145. data/spec/jobs/custom_queue_job_with_filter_proc.rb +0 -10
  146. data/spec/jobs/expiring_job.rb +0 -4
  147. data/spec/jobs/inline_worker.rb +0 -8
  148. data/spec/jobs/just_a_worker.rb +0 -7
  149. data/spec/jobs/long_running_job.rb +0 -6
  150. data/spec/jobs/main_job.rb +0 -7
  151. data/spec/jobs/my_job.rb +0 -12
  152. data/spec/jobs/my_unique_job.rb +0 -11
  153. data/spec/jobs/my_unique_job_with_filter_method.rb +0 -17
  154. data/spec/jobs/my_unique_job_with_filter_proc.rb +0 -15
  155. data/spec/jobs/notify_worker.rb +0 -10
  156. data/spec/jobs/plain_class.rb +0 -3
  157. data/spec/jobs/simple_worker.rb +0 -11
  158. data/spec/jobs/spawn_simple_worker.rb +0 -8
  159. data/spec/jobs/test_class.rb +0 -3
  160. data/spec/jobs/unique_job_with_conditional_parameter.rb +0 -14
  161. data/spec/jobs/unique_job_with_filter_method.rb +0 -18
  162. data/spec/jobs/unique_job_with_nil_unique_args.rb +0 -16
  163. data/spec/jobs/unique_job_with_no_unique_args_method.rb +0 -12
  164. data/spec/jobs/unique_job_withthout_unique_args_parameter.rb +0 -14
  165. data/spec/jobs/unique_on_all_queues_job.rb +0 -13
  166. data/spec/jobs/until_and_while_executing_job.rb +0 -7
  167. data/spec/jobs/until_executed_job.rb +0 -17
  168. data/spec/jobs/until_executing_job.rb +0 -7
  169. data/spec/jobs/until_global_timeout_job.rb +0 -8
  170. data/spec/jobs/until_timeout_job.rb +0 -8
  171. data/spec/jobs/while_executing_job.rb +0 -12
  172. data/spec/jobs/without_argument_job.rb +0 -9
  173. data/spec/lib/sidekiq_unique_jobs/cli_spec.rb +0 -183
  174. data/spec/lib/sidekiq_unique_jobs/client/middleware_spec.rb +0 -316
  175. data/spec/lib/sidekiq_unique_jobs/config_spec.rb +0 -84
  176. data/spec/lib/sidekiq_unique_jobs/core_ext_spec.rb +0 -25
  177. data/spec/lib/sidekiq_unique_jobs/lock/until_and_while_executing_spec.rb +0 -42
  178. data/spec/lib/sidekiq_unique_jobs/lock/until_executed_spec.rb +0 -37
  179. data/spec/lib/sidekiq_unique_jobs/lock/until_timeout_spec.rb +0 -26
  180. data/spec/lib/sidekiq_unique_jobs/lock/while_executing_spec.rb +0 -86
  181. data/spec/lib/sidekiq_unique_jobs/normalizer_spec.rb +0 -21
  182. data/spec/lib/sidekiq_unique_jobs/options_with_fallback_spec.rb +0 -113
  183. data/spec/lib/sidekiq_unique_jobs/queue_lock_timeout_calculator_spec.rb +0 -47
  184. data/spec/lib/sidekiq_unique_jobs/run_lock_timeout_calculator_spec.rb +0 -36
  185. data/spec/lib/sidekiq_unique_jobs/script_mock_spec.rb +0 -88
  186. data/spec/lib/sidekiq_unique_jobs/scripts/acquire_lock_spec.rb +0 -50
  187. data/spec/lib/sidekiq_unique_jobs/scripts/release_lock_spec.rb +0 -41
  188. data/spec/lib/sidekiq_unique_jobs/scripts_spec.rb +0 -68
  189. data/spec/lib/sidekiq_unique_jobs/server/middleware_spec.rb +0 -78
  190. data/spec/lib/sidekiq_unique_jobs/sidekiq_testing_enabled_spec.rb +0 -164
  191. data/spec/lib/sidekiq_unique_jobs/sidekiq_unique_ext_spec.rb +0 -75
  192. data/spec/lib/sidekiq_unique_jobs/sidekiq_unique_jobs_spec.rb +0 -41
  193. data/spec/lib/sidekiq_unique_jobs/timeout_calculator_spec.rb +0 -70
  194. data/spec/lib/sidekiq_unique_jobs/unique_args_spec.rb +0 -257
  195. data/spec/lib/sidekiq_unique_jobs/unlockable_spec.rb +0 -37
  196. data/spec/lib/sidekiq_unique_jobs/util_spec.rb +0 -81
  197. data/spec/spec_helper.rb +0 -92
  198. data/spec/support/matchers/redis_matchers.rb +0 -29
  199. data/spec/support/ruby_meta.rb +0 -17
  200. data/spec/support/sidekiq_meta.rb +0 -30
  201. 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
@@ -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
@@ -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
@@ -1,2 +0,0 @@
1
- --color
2
- --order random
@@ -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
@@ -1,2 +0,0 @@
1
- web: bundle exec rails server -p $PORT
2
- worker: bundle exec sidekiq -C config/sidekiq.yml
@@ -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>.
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
-
6
- Rails.application.load_tasks
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
@@ -1,4 +0,0 @@
1
- module ApplicationCable
2
- class Channel < ActionCable::Channel::Base
3
- end
4
- end
@@ -1,9 +0,0 @@
1
- module ApplicationCable
2
- class Connection < ActionCable::Connection::Base
3
- identified_by :current_user
4
-
5
- def connect
6
- self.current_user = Guest.new
7
- end
8
- end
9
- end
@@ -1,5 +0,0 @@
1
- class PostChannel < ApplicationCable::Channel
2
- def subscribed
3
- stream_from "post_#{params[:post_id]}"
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- # Prevent CSRF attacks by raising an exception.
3
- # For APIs, you may want to use :null_session instead.
4
- protect_from_forgery with: :exception
5
- 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
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
File without changes