ruby-clock 1.0.0 → 2.0.0.beta1

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.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +12 -11
  4. data/example-rails-app/.gitattributes +9 -0
  5. data/example-rails-app/.gitignore +35 -0
  6. data/example-rails-app/.ruby-version +1 -0
  7. data/example-rails-app/Clockfile +19 -0
  8. data/example-rails-app/Gemfile +74 -0
  9. data/example-rails-app/README.md +12 -0
  10. data/example-rails-app/Rakefile +6 -0
  11. data/example-rails-app/app/assets/config/manifest.js +4 -0
  12. data/example-rails-app/app/assets/images/.keep +0 -0
  13. data/example-rails-app/app/assets/stylesheets/application.css +15 -0
  14. data/example-rails-app/app/channels/application_cable/channel.rb +4 -0
  15. data/example-rails-app/app/channels/application_cable/connection.rb +4 -0
  16. data/example-rails-app/app/controllers/application_controller.rb +2 -0
  17. data/example-rails-app/app/controllers/concerns/.keep +0 -0
  18. data/example-rails-app/app/helpers/application_helper.rb +2 -0
  19. data/example-rails-app/app/javascript/application.js +3 -0
  20. data/example-rails-app/app/javascript/controllers/application.js +9 -0
  21. data/example-rails-app/app/javascript/controllers/hello_controller.js +7 -0
  22. data/example-rails-app/app/javascript/controllers/index.js +11 -0
  23. data/example-rails-app/app/jobs/application_job.rb +7 -0
  24. data/example-rails-app/app/mailers/application_mailer.rb +4 -0
  25. data/example-rails-app/app/models/application_record.rb +3 -0
  26. data/example-rails-app/app/models/concerns/.keep +0 -0
  27. data/example-rails-app/app/models/example.rb +2 -0
  28. data/example-rails-app/app/views/layouts/application.html.erb +16 -0
  29. data/example-rails-app/app/views/layouts/mailer.html.erb +13 -0
  30. data/example-rails-app/app/views/layouts/mailer.text.erb +1 -0
  31. data/example-rails-app/bin/bundle +114 -0
  32. data/example-rails-app/bin/importmap +4 -0
  33. data/example-rails-app/bin/rails +4 -0
  34. data/example-rails-app/bin/rake +4 -0
  35. data/example-rails-app/bin/setup +33 -0
  36. data/example-rails-app/config/application.rb +22 -0
  37. data/example-rails-app/config/boot.rb +4 -0
  38. data/example-rails-app/config/cable.yml +11 -0
  39. data/example-rails-app/config/credentials.yml.enc +1 -0
  40. data/example-rails-app/config/database.yml +25 -0
  41. data/example-rails-app/config/environment.rb +5 -0
  42. data/example-rails-app/config/environments/development.rb +70 -0
  43. data/example-rails-app/config/environments/production.rb +93 -0
  44. data/example-rails-app/config/environments/test.rb +60 -0
  45. data/example-rails-app/config/importmap.rb +7 -0
  46. data/example-rails-app/config/initializers/assets.rb +12 -0
  47. data/example-rails-app/config/initializers/content_security_policy.rb +25 -0
  48. data/example-rails-app/config/initializers/filter_parameter_logging.rb +8 -0
  49. data/example-rails-app/config/initializers/inflections.rb +16 -0
  50. data/example-rails-app/config/initializers/permissions_policy.rb +11 -0
  51. data/example-rails-app/config/locales/en.yml +33 -0
  52. data/example-rails-app/config/puma.rb +43 -0
  53. data/example-rails-app/config/routes.rb +6 -0
  54. data/example-rails-app/config/storage.yml +34 -0
  55. data/example-rails-app/config.ru +6 -0
  56. data/example-rails-app/db/migrate/20221001175928_create_examples.rb +8 -0
  57. data/example-rails-app/db/schema.rb +19 -0
  58. data/example-rails-app/db/seeds.rb +7 -0
  59. data/example-rails-app/lib/assets/.keep +0 -0
  60. data/example-rails-app/lib/tasks/.keep +0 -0
  61. data/example-rails-app/log/.keep +0 -0
  62. data/example-rails-app/public/404.html +67 -0
  63. data/example-rails-app/public/422.html +67 -0
  64. data/example-rails-app/public/500.html +66 -0
  65. data/example-rails-app/public/apple-touch-icon-precomposed.png +0 -0
  66. data/example-rails-app/public/apple-touch-icon.png +0 -0
  67. data/example-rails-app/public/favicon.ico +0 -0
  68. data/example-rails-app/public/robots.txt +1 -0
  69. data/example-rails-app/storage/.keep +0 -0
  70. data/example-rails-app/test/application_system_test_case.rb +5 -0
  71. data/example-rails-app/test/channels/application_cable/connection_test.rb +11 -0
  72. data/example-rails-app/test/controllers/.keep +0 -0
  73. data/example-rails-app/test/fixtures/files/.keep +0 -0
  74. data/example-rails-app/test/helpers/.keep +0 -0
  75. data/example-rails-app/test/integration/.keep +0 -0
  76. data/example-rails-app/test/mailers/.keep +0 -0
  77. data/example-rails-app/test/models/.keep +0 -0
  78. data/example-rails-app/test/system/.keep +0 -0
  79. data/example-rails-app/test/test_helper.rb +13 -0
  80. data/example-rails-app/tmp/.keep +0 -0
  81. data/example-rails-app/tmp/pids/.keep +0 -0
  82. data/example-rails-app/tmp/storage/.keep +0 -0
  83. data/example-rails-app/vendor/.keep +0 -0
  84. data/example-rails-app/vendor/javascript/.keep +0 -0
  85. data/exe/clock +6 -0
  86. data/lib/ruby-clock/version.rb +1 -1
  87. metadata +86 -5
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
File without changes
@@ -0,0 +1 @@
1
+ # See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
File without changes
@@ -0,0 +1,5 @@
1
+ require "test_helper"
2
+
3
+ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
4
+ driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
5
+ end
@@ -0,0 +1,11 @@
1
+ require "test_helper"
2
+
3
+ class ApplicationCable::ConnectionTest < ActionCable::Connection::TestCase
4
+ # test "connects with cookies" do
5
+ # cookies.signed[:user_id] = 42
6
+ #
7
+ # connect
8
+ #
9
+ # assert_equal connection.user_id, "42"
10
+ # end
11
+ end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,13 @@
1
+ ENV["RAILS_ENV"] ||= "test"
2
+ require_relative "../config/environment"
3
+ require "rails/test_help"
4
+
5
+ class ActiveSupport::TestCase
6
+ # Run tests in parallel with specified workers
7
+ parallelize(workers: :number_of_processors)
8
+
9
+ # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
10
+ fixtures :all
11
+
12
+ # Add more helper methods to be used by all tests here...
13
+ end
File without changes
File without changes
File without changes
File without changes
File without changes
data/exe/clock CHANGED
@@ -1,5 +1,11 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ begin
4
+ require './config/environment.rb'
5
+ puts "Detected rails app has been loaded."
6
+ rescue LoadError
7
+ end
8
+
3
9
  require 'ruby-clock'
4
10
  require 'method_source'
5
11
 
@@ -1,3 +1,3 @@
1
1
  module RubyClock
2
- VERSION = "1.0.0"
2
+ VERSION = "2.0.0.beta1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-clock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Bachir
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-16 00:00:00.000000000 Z
11
+ date: 2022-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rufus-scheduler
@@ -59,6 +59,87 @@ files:
59
59
  - example-app/Gemfile
60
60
  - example-app/Gemfile.lock
61
61
  - example-app/README.md
62
+ - example-rails-app/.gitattributes
63
+ - example-rails-app/.gitignore
64
+ - example-rails-app/.ruby-version
65
+ - example-rails-app/Clockfile
66
+ - example-rails-app/Gemfile
67
+ - example-rails-app/README.md
68
+ - example-rails-app/Rakefile
69
+ - example-rails-app/app/assets/config/manifest.js
70
+ - example-rails-app/app/assets/images/.keep
71
+ - example-rails-app/app/assets/stylesheets/application.css
72
+ - example-rails-app/app/channels/application_cable/channel.rb
73
+ - example-rails-app/app/channels/application_cable/connection.rb
74
+ - example-rails-app/app/controllers/application_controller.rb
75
+ - example-rails-app/app/controllers/concerns/.keep
76
+ - example-rails-app/app/helpers/application_helper.rb
77
+ - example-rails-app/app/javascript/application.js
78
+ - example-rails-app/app/javascript/controllers/application.js
79
+ - example-rails-app/app/javascript/controllers/hello_controller.js
80
+ - example-rails-app/app/javascript/controllers/index.js
81
+ - example-rails-app/app/jobs/application_job.rb
82
+ - example-rails-app/app/mailers/application_mailer.rb
83
+ - example-rails-app/app/models/application_record.rb
84
+ - example-rails-app/app/models/concerns/.keep
85
+ - example-rails-app/app/models/example.rb
86
+ - example-rails-app/app/views/layouts/application.html.erb
87
+ - example-rails-app/app/views/layouts/mailer.html.erb
88
+ - example-rails-app/app/views/layouts/mailer.text.erb
89
+ - example-rails-app/bin/bundle
90
+ - example-rails-app/bin/importmap
91
+ - example-rails-app/bin/rails
92
+ - example-rails-app/bin/rake
93
+ - example-rails-app/bin/setup
94
+ - example-rails-app/config.ru
95
+ - example-rails-app/config/application.rb
96
+ - example-rails-app/config/boot.rb
97
+ - example-rails-app/config/cable.yml
98
+ - example-rails-app/config/credentials.yml.enc
99
+ - example-rails-app/config/database.yml
100
+ - example-rails-app/config/environment.rb
101
+ - example-rails-app/config/environments/development.rb
102
+ - example-rails-app/config/environments/production.rb
103
+ - example-rails-app/config/environments/test.rb
104
+ - example-rails-app/config/importmap.rb
105
+ - example-rails-app/config/initializers/assets.rb
106
+ - example-rails-app/config/initializers/content_security_policy.rb
107
+ - example-rails-app/config/initializers/filter_parameter_logging.rb
108
+ - example-rails-app/config/initializers/inflections.rb
109
+ - example-rails-app/config/initializers/permissions_policy.rb
110
+ - example-rails-app/config/locales/en.yml
111
+ - example-rails-app/config/puma.rb
112
+ - example-rails-app/config/routes.rb
113
+ - example-rails-app/config/storage.yml
114
+ - example-rails-app/db/migrate/20221001175928_create_examples.rb
115
+ - example-rails-app/db/schema.rb
116
+ - example-rails-app/db/seeds.rb
117
+ - example-rails-app/lib/assets/.keep
118
+ - example-rails-app/lib/tasks/.keep
119
+ - example-rails-app/log/.keep
120
+ - example-rails-app/public/404.html
121
+ - example-rails-app/public/422.html
122
+ - example-rails-app/public/500.html
123
+ - example-rails-app/public/apple-touch-icon-precomposed.png
124
+ - example-rails-app/public/apple-touch-icon.png
125
+ - example-rails-app/public/favicon.ico
126
+ - example-rails-app/public/robots.txt
127
+ - example-rails-app/storage/.keep
128
+ - example-rails-app/test/application_system_test_case.rb
129
+ - example-rails-app/test/channels/application_cable/connection_test.rb
130
+ - example-rails-app/test/controllers/.keep
131
+ - example-rails-app/test/fixtures/files/.keep
132
+ - example-rails-app/test/helpers/.keep
133
+ - example-rails-app/test/integration/.keep
134
+ - example-rails-app/test/mailers/.keep
135
+ - example-rails-app/test/models/.keep
136
+ - example-rails-app/test/system/.keep
137
+ - example-rails-app/test/test_helper.rb
138
+ - example-rails-app/tmp/.keep
139
+ - example-rails-app/tmp/pids/.keep
140
+ - example-rails-app/tmp/storage/.keep
141
+ - example-rails-app/vendor/.keep
142
+ - example-rails-app/vendor/javascript/.keep
62
143
  - exe/clock
63
144
  - lib/ruby-clock.rb
64
145
  - lib/ruby-clock/version.rb
@@ -81,11 +162,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
81
162
  version: 2.3.0
82
163
  required_rubygems_version: !ruby/object:Gem::Requirement
83
164
  requirements:
84
- - - ">="
165
+ - - ">"
85
166
  - !ruby/object:Gem::Version
86
- version: '0'
167
+ version: 1.3.1
87
168
  requirements: []
88
- rubygems_version: 3.2.22
169
+ rubygems_version: 3.1.6
89
170
  signing_key:
90
171
  specification_version: 4
91
172
  summary: A "clock" process for invoking ruby code within a persistent runtime