crono 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/lib/crono/cli.rb +1 -1
  3. data/lib/crono/job.rb +2 -2
  4. data/lib/crono/performer_proxy.rb +5 -4
  5. data/lib/crono/version.rb +1 -1
  6. data/spec/cli_spec.rb +3 -2
  7. data/spec/internal/db/crono_test.sqlite +0 -0
  8. data/spec/internal/log/test.log +2417 -0
  9. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/-3/-39xcDaxqOfT5_YbKGMC2VoOLHUFg1gyuxeTL-Eup7k.cache +0 -0
  10. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/1I/1IjQIP_VOqgJXKhZpmU6BzJwwAQQ13eyxAePeBRHXEg.cache +2 -0
  11. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/1b/1bH_3dMMKuACfI0TmmCeyB8zoKIiuiZsSSP6HhRXLbA.cache +3 -0
  12. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/2s/2sJPeHyInPjaKqPfsEWbBdNYaCzFtvcr5nk8VlQjHvY.cache +0 -0
  13. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/47/479UaX78ImQpq18DwAHbpTAKCQcaS_g9kEFwudRxxC8.cache +1 -0
  14. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/7H/7H6n_CYmS-913TL8a3U1alFRI5CWy18J8jnwdLL_Gro.cache +1 -0
  15. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/8b/8bJ6EwvIAjMXaNe9Ic4zq8rauZNb-xiW27gp1sQAY44.cache +1 -0
  16. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/B1/B1NZJ5pbmAf6UeZz0obPpXJm4h-n3_qQvYyzru-IRXM.cache +2 -0
  17. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/Bi/BicUSIwup1Ebl9N94HOoznAu2a8p4LqqIf0swCsboJk.cache +1 -0
  18. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/CT/CTH9PjxIhN-xu3gPlv5Xo1d1AFJOX0ETdUqvh74MZN4.cache +0 -0
  19. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/Cj/Cjzu7j1PyqHJD0alH5TiAYfJDN0Zbxhg4zFZegEzuYM.cache +0 -0
  20. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/EF/EF9qrwbJ3DwrJmsImyKeW0iiA0yZ-AZ1IbNlYGuXnVs.cache +1 -0
  21. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/Fi/FiX3vL70mZzXvdq98JwHM3hMmVjpV20ZRiPFXhrEw3A.cache +3 -0
  22. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/GW/GWdxGb7VI1UP5TTDis3jju2Ep7-oqCWjNmRUDRTfgNI.cache +0 -0
  23. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/LE/lEMT8eCBeJXLWA8GKsOLOQBRrEa21XylM_E5JCr4rgg.cache +1 -0
  24. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/LH/LHh7k1JlS1aIHCbv5fHLGjrvmMHH_Jz88vymBMjoCGk.cache +0 -0
  25. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/M2/M27EDDKK6_tC_Usl58dui_-zmw7oDqmzrrdQSIQY14Y.cache +1 -0
  26. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/M3/M34sNs1L2xLkDoLgxPZpTl1b_2gnlNorXfetzSSNFzQ.cache +0 -0
  27. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/MK/MKsj2fh8ePsAqeFVg9gjrj5TFKHFMhkpv3847HEtRCQ.cache +1 -0
  28. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/ML/MLV0jF0Mx0KJXC8UlPpWgJnHnCDmoZGYwvIY8iCScUo.cache +2 -0
  29. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/MM/MM4lzeaS_hxItA00rs1BMB2FiTSDW11M9YXnPe-tTis.cache +0 -0
  30. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/Ng/Ng6PnQ3Vuj0_W2vnfOllxbQzYvtwYSP-2fJkIBNIQp4.cache +3 -0
  31. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/Np/NpFyXvvOaE4AgXrrlhA8mGz0Zu3wiafGirgwSdbZdxM.cache +0 -0
  32. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/Nv/NvbZ3Hlpr70GgSBXU-Zu8vuInq35MP6A63TQASVMfr8.cache +2 -0
  33. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/O6/O6ubwnCL6c5Yy8zI3admUI6VD1-5gDM8cbdeT2iBZ_Y.cache +2 -0
  34. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/OH/OHcmhT_tBVMS3zWpgTX93KyKUXBtbWDJsoFzXiYnhVc.cache +3 -0
  35. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/Rq/RqtRjsxCy4uH845AVedRm0uhgG7RXL11Z72EYSDplIs.cache +1 -0
  36. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/Rw/RwnfCAubyGSPbqkRrfgNdC6gRBBVWkqYUodv_-hpQ7w.cache +0 -0
  37. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/VY/VYQF15XEQNHgoXSorUWaNjqn-HSfupp3CZtdyCL7ymU.cache +0 -0
  38. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/Vw/VwDJ5qrChK2CUSSnAwxLWSuLNUaForre3ZRxtFlW4Ac.cache +1 -0
  39. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/WI/WIYh9Gi9ndC88dKHN_bO8iFiJwSzUGaJI9gnhSO7Ji8.cache +0 -0
  40. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/X5/X5dT1Gdr8sbGtvrNlwW86aVIMgR2zTd-2kFQ9C3L7Wg.cache +0 -0
  41. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/Xo/XoLrhpxlw0kg9u3bMnDyQen8HXO2rqPRTCb8NYObL8Y.cache +0 -0
  42. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/Y1/Y1VBjwUHneW8QFgIGPmxOM0Ug3nZUTAUKXzkKah9AOs.cache +0 -0
  43. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/_t/_tr5uJ_M5iBr2N9uBonXFmxfqt1TxbYfFCxnfAiyiNU.cache +1 -0
  44. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/_w/_wDP8qm_JkjY5FPjc6RNCiP_dc_uBNRMyH64Sl8LJzY.cache +1 -0
  45. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/aW/aWSe6QsJ8Dk7ZAuTOYgjegrAoC2XYQtCCeo9KVzVVQs.cache +0 -0
  46. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/ap/apMxRwM7mSeCyECnYWAbxnWbsfoJLdJfwaxudP9Chi8.cache +1 -0
  47. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/at/ataSdIHBESkY5GN7sMG-XyOftCkIWDK0QaKEewVkqIU.cache +0 -0
  48. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/cm/cm54PMT0IiaHCIjq6T3ZTIMm7Yxo42XwnsyOgnCOXiM.cache +3 -0
  49. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/cm/cmUPiFXFgGEC8LObv4RZX5lwwWHkwS9sqRq1o37epy8.cache +2 -0
  50. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/dJ/dJn0Pwx5cPYGC5q_eHDfNfFt4JiC-fmQVaH5myKr0VA.cache +3 -0
  51. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/dq/dq3gHEjKxw3E013mazOcCiXNbDdPTz-A8oh-ehBXeLY.cache +2 -0
  52. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/em/emsg06Cc17Q7p1Y0IO1PFRtnyhMbj1u4-wVx6W8bgJs.cache +2 -0
  53. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/fu/fuVeiMpLNyElLwjOR6EBQP7-ZUwuJTsQe_Ie11TlX7Y.cache +0 -0
  54. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/iF/iF-qi7hkpBxivxIEuDhEbYCCUdo723aaitG7rholzuY.cache +3 -0
  55. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/iF/if_9bC6Uj3ZokQmIk9el665rc-6LTBoL6U4qR7gtoJU.cache +1 -0
  56. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/j1/j1GLMjXSyzOpsUCKPd35AfXExAXEMHejQdvPd8UErkQ.cache +1 -0
  57. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/j3/j3e_BmEvAiJhmSyXAU9VAE_CZACcKEbzRxeshc8FhJs.cache +0 -0
  58. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/jV/JVKq8sER4GK2hEv9E7tZ7mvXxh14vJeTVCDEnZC0JaM.cache +0 -0
  59. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/jn/jnZ8_zeT39edfDrXllxCW_oH5T-ynBUYGT8YNgyFU9c.cache +2 -0
  60. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/kw/kwNFhW24nxXy_HfVKYdXJyRqhu7ljgl9wR2DcJUo-nA.cache +0 -0
  61. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/nz/nZA-tpBPvlKlQKIbdV4_4NL_5GSce7A27-uejTdXxyo.cache +0 -0
  62. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/nz/nZH58NGgTuROXOSPMik3s7SjDoBucsgev57n0u9vlPA.cache +2 -0
  63. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/qB/qBg00KcV6F7tmpcxNC5tjzrdC3FWusHvOGhz1aV0zs8.cache +1 -0
  64. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/qZ/qZuwDOadKdP81QKNPTbE4G8CESQEnmrIE_INtDzerso.cache +1 -0
  65. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/sR/sRyvthBFPCFQfQ75moJFSYPaR71b7XeQRo9UwjvCWFc.cache +0 -0
  66. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/sl/sliQa4_eurm9yEqcshtJrfPPE6M-DF-t8REXVSOfyUQ.cache +1 -0
  67. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/tA/tAZH91Tm6zrf_sm00veerMt3qNaM2uC74u4Zuxv2gg0.cache +1 -0
  68. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/uY/uYA487PT8yb9JEmcxwo8syJu8nzceyQ2LExeSnyVu50.cache +1 -0
  69. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/vg/vgD37dvBvogssYiXikQ4Olm53D_b46IIW7PB9aAcCVM.cache +0 -0
  70. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/w2/w2_uibK0i1njL5U_7brQZhib5VYdXXvpvhE06yX1SqE.cache +1 -0
  71. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/wN/wNw4kAG0E_RrvLeFAizMmTp_0jh-HGw1ONLtRyw92z0.cache +0 -0
  72. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/xA/xAEcSwhjIYJzUW_4aTWYVRUc7moZTTeCKKkqkxLhrfg.cache +0 -0
  73. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/xn/xnt4dCDEEL7zX5DqWMpQag3bopptMKMDNFzvfvF5OPs.cache +1 -0
  74. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/yI/yI2MBOO01NRSHWPeRJfC5SFBMpefo4xeYfHeWEvkdks.cache +1 -0
  75. data/spec/internal/tmp/cache/assets/sprockets/v4.0.0/z_/z_2HCE5ElxkvIdf9isrro0NsgSdEU0oRSalWcYQss74.cache +1 -0
  76. data/spec/job_spec.rb +17 -6
  77. data/spec/performer_proxy_spec.rb +9 -3
  78. metadata +124 -2
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"0processors:type=text/css&file_type=text/css;TTI"kfile-digest:///Users/dima/.rvm/gems/ruby-3.1.2/gems/actiontext-7.0.3.1/app/assets/stylesheets/trix.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTF
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"vfile-digest:///Users/dima/.rvm/gems/ruby-3.1.2/gems/actioncable-7.0.3.1/app/assets/javascripts/actioncable.esm.js;TTF
@@ -0,0 +1 @@
1
+ I"�/Users/dima/dev/crono/app/assets/stylesheets/crono/application.css?type=text/css&pipeline=self&id=5dbabf684507654f25e6d29c160c82e57abb8fec5b7076f81c62eb3830477c1c:ET
@@ -0,0 +1 @@
1
+ I"�/Users/dima/.rvm/gems/ruby-3.1.2/gems/activestorage-7.0.3.1/app/assets/javascripts/activestorage.esm.js?type=application/javascript&pipeline=self&id=86b56242ae9b4f030066a1077ebc45321baa23d83d0d70cbc4945cfefd135ddb:ET
@@ -0,0 +1 @@
1
+ I"�/Users/dima/.rvm/gems/ruby-3.1.2/gems/actiontext-7.0.3.1/app/assets/javascripts/actiontext.js?type=application/javascript&pipeline=self&id=b4256b6e6b5d33fb8aecaff74baa67bf271f6e7b968bcaea98370daaa3105f34:ET
@@ -0,0 +1,2 @@
1
+ "%�غ�0��Fedz
2
+ �9���+�9x�d�=a
@@ -0,0 +1 @@
1
+ "%�x�i�{MŮ'qO�=���M��.�r�#
@@ -0,0 +1 @@
1
+ "%q�;w7CQ�qu�i�=��%*� ��������
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"jfile-digest:///Users/dima/.rvm/gems/ruby-3.1.2/gems/actiontext-7.0.3.1/app/assets/javascripts/trix.js;TTF
@@ -0,0 +1 @@
1
+ I"�/Users/dima/.rvm/gems/ruby-3.1.2/gems/actioncable-7.0.3.1/app/assets/javascripts/actioncable.js?type=application/javascript&id=7453b5170f13b407b4099813cb38c7352bb783c796659c3d229764c972872f1c:ET
@@ -0,0 +1 @@
1
+ I"�/Users/dima/dev/crono/app/assets/stylesheets/crono/application.css?type=text/css&id=6fbaffb652bdf4943b5166110937f8b8498faf40f8e7be1160715fb544f109a1:ET
@@ -0,0 +1 @@
1
+ I"�/Users/dima/.rvm/gems/ruby-3.1.2/gems/actioncable-7.0.3.1/app/assets/javascripts/actioncable.esm.js?type=application/javascript&pipeline=self&id=d423ddbe5039507ccbda28512f57b61bf5b0301c6792409973ffca275a8fbcd6:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"vfile-digest:///Users/dima/.rvm/gems/ruby-3.1.2/gems/activestorage-7.0.3.1/app/assets/javascripts/activestorage.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTF
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"kfile-digest:///Users/dima/.rvm/gems/ruby-3.1.2/gems/actiontext-7.0.3.1/app/assets/stylesheets/trix.css;TTF
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"jfile-digest:///Users/dima/.rvm/gems/ruby-3.1.2/gems/actiontext-7.0.3.1/app/assets/javascripts/trix.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTF
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"pfile-digest:///Users/dima/.rvm/gems/ruby-3.1.2/gems/actiontext-7.0.3.1/app/assets/javascripts/actiontext.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTF
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"zfile-digest:///Users/dima/.rvm/gems/ruby-3.1.2/gems/activestorage-7.0.3.1/app/assets/javascripts/activestorage.esm.js;TTF
@@ -0,0 +1 @@
1
+ "%�ɝQh݋6�d���)��^�I�{Hk����
@@ -0,0 +1 @@
1
+ I"�/Users/dima/.rvm/gems/ruby-3.1.2/gems/actioncable-7.0.3.1/app/assets/javascripts/actioncable.esm.js?type=application/javascript&id=37178a33fcdf343c944923dc6ecfafecfed9de514678569aa00837d67c0576f3:ET
@@ -0,0 +1 @@
1
+ I"�/Users/dima/.rvm/gems/ruby-3.1.2/gems/actiontext-7.0.3.1/app/assets/javascripts/trix.js?type=application/javascript&id=84044743440c117026d41d163e125c29ea7ab09557d6d8dad108be4dfadc64b9:ET
@@ -0,0 +1 @@
1
+ I"�/Users/dima/dev/crono/app/assets/stylesheets/crono/materialize.min.css?type=text/css&pipeline=self&id=b61762356ab65e20feb8a3a027214e27ca1fddfc9cba12bbad2c7a91f54effa8:ET
@@ -0,0 +1 @@
1
+ I"�/Users/dima/.rvm/gems/ruby-3.1.2/gems/actiontext-7.0.3.1/app/assets/stylesheets/trix.css?type=text/css&pipeline=self&id=e99864d694cb916ab462320241bb7999650c7e33714ca406bf348eb17ea864bb:ET
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"rfile-digest:///Users/dima/.rvm/gems/ruby-3.1.2/gems/actioncable-7.0.3.1/app/assets/javascripts/actioncable.js;TTF
@@ -0,0 +1,2 @@
1
+ "%k/�M�EF�ƹ/
2
+ 7�kUP ������N�
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"vfile-digest:///Users/dima/.rvm/gems/ruby-3.1.2/gems/activestorage-7.0.3.1/app/assets/javascripts/activestorage.js;TTF
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"zfile-digest:///Users/dima/.rvm/gems/ruby-3.1.2/gems/activestorage-7.0.3.1/app/assets/javascripts/activestorage.esm.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTF
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"rfile-digest:///Users/dima/.rvm/gems/ruby-3.1.2/gems/actioncable-7.0.3.1/app/assets/javascripts/actioncable.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTF
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"pfile-digest:///Users/dima/.rvm/gems/ruby-3.1.2/gems/actiontext-7.0.3.1/app/assets/javascripts/actiontext.js;TTF
@@ -0,0 +1 @@
1
+ I"�/Users/dima/.rvm/gems/ruby-3.1.2/gems/activestorage-7.0.3.1/app/assets/javascripts/activestorage.esm.js?type=application/javascript&id=e9e6d12fe9027141a740df9aef0cfd0a5187902d62041d367f1fcc65e079fb3e:ET
@@ -0,0 +1 @@
1
+ "%� ���f�b`�9f�o/�︰<tF4ؿ �^�T�
@@ -0,0 +1,2 @@
1
+ "%��=��v�
2
+ �ć�H�P�9�=m�-�B�{
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"vfile-digest:///Users/dima/.rvm/gems/ruby-3.1.2/gems/actioncable-7.0.3.1/app/assets/javascripts/actioncable.esm.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTF
@@ -0,0 +1 @@
1
+ I"�/Users/dima/dev/crono/app/assets/stylesheets/crono/materialize.min.css?type=text/css&id=2a1c6eba3261e014920be293b04d3b79feebd5ee858d9f470bd98bae57cde8b7:ET
@@ -0,0 +1 @@
1
+ I"�/Users/dima/.rvm/gems/ruby-3.1.2/gems/activestorage-7.0.3.1/app/assets/javascripts/activestorage.js?type=application/javascript&pipeline=self&id=785e41c7a2aceb85e54527508baa7270280ff7a93864300ea24d4ae7817977f1:ET
@@ -0,0 +1 @@
1
+ I"�/Users/dima/.rvm/gems/ruby-3.1.2/gems/actioncable-7.0.3.1/app/assets/javascripts/actioncable.js?type=application/javascript&pipeline=self&id=f2869f5aaa56044d8fc27111ee57c0f799ae60c11a0753cfdf078831c13e6724:ET
@@ -0,0 +1 @@
1
+ I"�/Users/dima/.rvm/gems/ruby-3.1.2/gems/actiontext-7.0.3.1/app/assets/javascripts/actiontext.js?type=application/javascript&id=c46543464308025d7580aa2ed2c78f2d7463856d97354025ad06154dd6e21c90:ET
@@ -0,0 +1 @@
1
+ I"}app/assets/config/manifest.js?type=application/javascript&id=b327601a2a10d3e7b64d8d5d7a9521efbbafcf99693fe56b252fa0b79dd1b0a8:ET
@@ -0,0 +1 @@
1
+ I"�/Users/dima/.rvm/gems/ruby-3.1.2/gems/activestorage-7.0.3.1/app/assets/javascripts/activestorage.js?type=application/javascript&id=87111ebc0b4d989c3b7146ec3a8d57e86d3d675fe283b67f12f8481dfbd8fdc9:ET
@@ -0,0 +1 @@
1
+ I"�/Users/dima/.rvm/gems/ruby-3.1.2/gems/actiontext-7.0.3.1/app/assets/stylesheets/trix.css?type=text/css&id=db8b65231459138cf78c9e1e49e4c2fc56c76a8822060538e01d0b4e3fc92fc1:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/config/manifest.js?type=application/javascript&pipeline=self&id=e2e409274f3f5539933e7ea45985174af55e6626de544bd510ffde58ead67370:ET
@@ -0,0 +1 @@
1
+ I"�/Users/dima/.rvm/gems/ruby-3.1.2/gems/actiontext-7.0.3.1/app/assets/javascripts/trix.js?type=application/javascript&pipeline=self&id=d9170718ad5f4d0d16365efe1fc21d533b5ff1d7ac0aa5711c8d08d7c9765e24:ET
data/spec/job_spec.rb CHANGED
@@ -1,23 +1,30 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  class TestJob
4
- def perform(args)
4
+ def perform(*args)
5
5
  puts 'Test!'
6
6
  end
7
7
  end
8
8
 
9
9
  class TestFailingJob
10
- def perform(args)
10
+ def perform(*args)
11
11
  raise 'Some error'
12
12
  end
13
13
  end
14
14
 
15
+ class TestNoArgsJob
16
+ def perform
17
+ puts 'Test!'
18
+ end
19
+ end
20
+
15
21
  describe Crono::Job do
16
22
  let(:period) { Crono::Period.new(2.day, at: '15:00') }
17
23
  let(:job_args) {[{some: 'data'}]}
18
24
  let(:job) { Crono::Job.new(TestJob, period, []) }
19
25
  let(:job_with_args) { Crono::Job.new(TestJob, period, job_args) }
20
26
  let(:failing_job) { Crono::Job.new(TestFailingJob, period, []) }
27
+ let(:not_args_job) { Crono::Job.new(TestJob, period) }
21
28
 
22
29
  it 'should contain performer and period' do
23
30
  expect(job.performer).to be TestJob
@@ -70,6 +77,10 @@ describe Crono::Job do
70
77
  test_preform_job_twice
71
78
  end
72
79
 
80
+ it 'should execute twice without args' do
81
+ test_preform_job_twice not_args_job
82
+ end
83
+
73
84
  it 'should execute twice without initialize execution_interval' do
74
85
  test_preform_job_twice
75
86
  end
@@ -88,10 +99,10 @@ describe Crono::Job do
88
99
  expect(thread).to be_stop
89
100
  end
90
101
 
91
- def test_preform_job_twice
92
- expect(job).to receive(:perform_job).twice
93
- job.perform.join
94
- thread = job.perform.join
102
+ def test_preform_job_twice(jon_instance = job)
103
+ expect(jon_instance).to receive(:perform_job).twice
104
+ jon_instance.perform.join
105
+ thread = jon_instance.perform.join
95
106
  expect(thread).to be_stop
96
107
  end
97
108
  end
@@ -26,13 +26,19 @@ describe Crono::PerformerProxy do
26
26
  end
27
27
 
28
28
  it 'should add job with args to schedule' do
29
- expect(Crono::Job).to receive(:new).with(TestJob, kind_of(Crono::Period), [:some, {some: 'data'}], nil)
29
+ expect(Crono::Job).to receive(:new).with(TestJob, kind_of(Crono::Period), :some, { some: 'data' })
30
30
  allow(Crono.scheduler).to receive(:add_job)
31
- Crono.perform(TestJob, :some, {some: 'data'}).every(2.days, at: '15:30')
31
+ Crono.perform(TestJob, :some, { some: 'data' }).every(2.days, at: '15:30')
32
+ end
33
+
34
+ it 'should add job without args to schedule' do
35
+ expect(Crono::Job).to receive(:new).with(TestJob, kind_of(Crono::Period), nil, nil)
36
+ allow(Crono.scheduler).to receive(:add_job)
37
+ Crono.perform(TestJob).every(2.days, at: '15:30')
32
38
  end
33
39
 
34
40
  it 'should add job with options to schedule' do
35
- expect(Crono::Job).to receive(:new).with(TestJob, kind_of(Crono::Period), [], {some_option: true})
41
+ expect(Crono::Job).to receive(:new).with(TestJob, kind_of(Crono::Period), nil, { some_option: true })
36
42
  allow(Crono.scheduler).to receive(:add_job)
37
43
  Crono.perform(TestJob).with_options(some_option: true).every(2.days, at: '15:30')
38
44
  end