belated 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/CHANGELOG.md +1 -1
- data/Gemfile +2 -2
- data/Gemfile.lock +5 -1
- data/README.md +7 -1
- data/lib/belated.rb +5 -1
- data/lib/belated/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e16dfb18af8fa012bede8622dba2328f725884870aa921f1759350350e50382
|
4
|
+
data.tar.gz: 522d6992077f9fcc93c250ccc3dd20d818d60633a3dcf9874d0cc469d225c283
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28cc95841c797852585a165fabf2a9bab8d27da36d204e92daa7a3ec03db142a990d0e90647fef928d14e7520ad03499872187a6adfa10df8b1e55a15e1b0c88
|
7
|
+
data.tar.gz: 41b757722ecffe023764820b9992e3e0f007cd6bbe41ce473f8398aaf65d50a8d4e8e609acd61c79e0c6e58f3fdc8be57cc20424c1bf6bd11753be9cb95a5217
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -9,10 +9,10 @@ gem 'rake', '~> 13.0'
|
|
9
9
|
|
10
10
|
gem 'rspec', '~> 3.0'
|
11
11
|
|
12
|
-
gem 'rubocop', '~> 1.7'
|
13
|
-
|
14
12
|
gem 'database_cleaner-active_record'
|
15
13
|
gem 'rails', '>= 6.1.3'
|
16
14
|
gem 'rspec-rails'
|
15
|
+
gem 'rubocop', '~> 1.7'
|
16
|
+
gem 'rubocop-performance', require: false
|
17
17
|
gem 'sqlite3'
|
18
18
|
gem 'stackprof'
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
belated (0.5.
|
4
|
+
belated (0.5.3)
|
5
5
|
drb
|
6
6
|
dry-configurable
|
7
7
|
|
@@ -169,6 +169,9 @@ GEM
|
|
169
169
|
unicode-display_width (>= 1.4.0, < 3.0)
|
170
170
|
rubocop-ast (1.7.0)
|
171
171
|
parser (>= 3.0.1.1)
|
172
|
+
rubocop-performance (1.11.4)
|
173
|
+
rubocop (>= 1.7.0, < 2.0)
|
174
|
+
rubocop-ast (>= 0.4.0)
|
172
175
|
ruby-progressbar (1.11.0)
|
173
176
|
sprockets (4.0.2)
|
174
177
|
concurrent-ruby (~> 1.0)
|
@@ -200,6 +203,7 @@ DEPENDENCIES
|
|
200
203
|
rspec (~> 3.0)
|
201
204
|
rspec-rails
|
202
205
|
rubocop (~> 1.7)
|
206
|
+
rubocop-performance
|
203
207
|
sqlite3
|
204
208
|
stackprof
|
205
209
|
|
data/README.md
CHANGED
@@ -136,9 +136,15 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
136
136
|
|
137
137
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
138
138
|
|
139
|
+
|
140
|
+
# Possible problems
|
141
|
+
|
142
|
+
If you have the port 8788 already in use, you can check the ports in use in Linux with the following command:
|
143
|
+
|
144
|
+
$ sudo lsof -i -P -n | grep LISTEN
|
139
145
|
## Contributing
|
140
146
|
|
141
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/sampokuokkanen/belated. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/sampokuokkanen/belated/blob/master/CODE_OF_CONDUCT.md).
|
147
|
+
Bug reports, questions and pull requests are welcome on GitHub at https://github.com/sampokuokkanen/belated. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/sampokuokkanen/belated/blob/master/CODE_OF_CONDUCT.md).
|
142
148
|
|
143
149
|
## License
|
144
150
|
|
data/lib/belated.rb
CHANGED
@@ -91,13 +91,17 @@ class Belated
|
|
91
91
|
def enqueue_future_jobs
|
92
92
|
log 'starting future jobs thread'
|
93
93
|
loop do
|
94
|
+
sleep 0.1
|
95
|
+
if @@queue.future_jobs.empty?
|
96
|
+
sleep 1
|
97
|
+
next
|
98
|
+
end
|
94
99
|
@@queue.future_jobs.each_with_index do |job, i|
|
95
100
|
if job.at <= Time.now.utc
|
96
101
|
log "Deleting #{@@queue.future_jobs.delete_at(i)} from future jobs"
|
97
102
|
@@queue.push(job)
|
98
103
|
end
|
99
104
|
end
|
100
|
-
sleep 0.01
|
101
105
|
end
|
102
106
|
end
|
103
107
|
|
data/lib/belated/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: belated
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sampo Kuokkanen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: drb
|