funktor 0.6.1 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 357405d047824118d033a5f3c44647cd7d12be3abfa223601610b024cd628b1b
4
- data.tar.gz: 3a8b194790369119da18ef7df48709eed99230624bcacf8ec46874abc6b19696
3
+ metadata.gz: c92c5b6465ea858b39776c939ca3ac42e4680b19bae5071660e212b80ad5fa23
4
+ data.tar.gz: 54b4a61d1ae01a7e06a1ce3bd027f2aaf55faccda40e4e1789d698b60ff4a57d
5
5
  SHA512:
6
- metadata.gz: 15126b57c4f665a5562c652ec5a58f3d32eca58535feea3dba93b22dae8a007675eb6f6bc05dc2125aadf01585922a7949ade860e2d8ace1089e3c4b30e4da59
7
- data.tar.gz: d24d6bb591af9d975322da414ff1af9c53f4af3daf9be26eb6ef6bdfc1aa6001399836261e357e90f9fdc023ad0e572f008282126f14908cb09b1d8f1546cb61
6
+ metadata.gz: fb515d5ed863cf279cee8ebcafa1ee352b0a470146c0795ed7d51d8b11d83cf0bdb577d90f0abdc5155d81a3d2446058401f2d138cf2a92ac283c54f3236bf34
7
+ data.tar.gz: 92add3f0a131296bd1e11d3cc9c87b97e257647d6ef2ac54e00c28bbc2aaa98961672128318cab465d7d5553094b931bf8f6078bb985530d6f41cf1c73fc6299
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- funktor (0.6.1)
4
+ funktor (0.6.5)
5
5
  activesupport
6
6
  aws-sdk-dynamodb (~> 1.62)
7
7
  aws-sdk-sqs (~> 1.37)
@@ -10,10 +10,10 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activejob (6.1.4)
14
- activesupport (= 6.1.4)
13
+ activejob (6.1.4.1)
14
+ activesupport (= 6.1.4.1)
15
15
  globalid (>= 0.3.6)
16
- activesupport (6.1.4)
16
+ activesupport (6.1.4.1)
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
18
  i18n (>= 1.6, < 2)
19
19
  minitest (>= 5.1)
@@ -42,8 +42,8 @@ GEM
42
42
  crack (0.4.5)
43
43
  rexml
44
44
  diff-lcs (1.4.4)
45
- docile (1.3.5)
46
- globalid (0.5.1)
45
+ docile (1.4.0)
46
+ globalid (0.5.2)
47
47
  activesupport (>= 5.0)
48
48
  hashdiff (1.0.1)
49
49
  i18n (1.8.10)
@@ -84,7 +84,7 @@ GEM
84
84
  simplecov-html (~> 0.11)
85
85
  simplecov_json_formatter (~> 0.1)
86
86
  simplecov-html (0.12.3)
87
- simplecov_json_formatter (0.1.2)
87
+ simplecov_json_formatter (0.1.3)
88
88
  sinatra (2.1.0)
89
89
  mustermann (~> 1.0)
90
90
  rack (~> 2.2)
@@ -95,8 +95,8 @@ GEM
95
95
  timecop (0.9.4)
96
96
  tzinfo (2.0.4)
97
97
  concurrent-ruby (~> 1.0)
98
- webmock (3.12.2)
99
- addressable (>= 2.3.6)
98
+ webmock (3.14.0)
99
+ addressable (>= 2.8.0)
100
100
  crack (>= 0.3.2)
101
101
  hashdiff (>= 0.4.0, < 2.0.0)
102
102
  zeitwerk (2.4.2)
@@ -16,21 +16,18 @@ module ActiveJob
16
16
  "worker" => JobWrapper.to_s,
17
17
  "wrapped" => job.class,
18
18
  "queue" => job.class.work_queue,
19
- "delay" => 0,
19
+ "perform_at" => Time.now.utc,
20
20
  "worker_params" => [ job.serialize ]
21
21
  })
22
22
  end
23
23
 
24
24
  def enqueue_at(job, timestamp) # :nodoc:
25
- delay = (Time.at(timestamp).utc - Time.now.utc).round
26
- if delay < 0
27
- delay = 0
28
- end
25
+ time = Time.at(timestamp).utc
29
26
  job.provider_job_id = Funktor.job_pusher.push({
30
27
  "worker" => JobWrapper.to_s,
31
28
  "wrapped" => job.class,
32
29
  "queue" => job.class.work_queue,
33
- "delay" => delay,
30
+ "perform_at" => time,
34
31
  "worker_params" => [ job.serialize ]
35
32
  })
36
33
  end
@@ -1,3 +1,3 @@
1
1
  module Funktor
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.5"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  <h1>Retries</h1>
2
- <form action="/update_jobs" method="post" accept-charset="utf-8">
2
+ <form action="./update_jobs" method="post" accept-charset="utf-8">
3
3
  <input type="hidden" name="source" value="retry" />
4
4
  <%= erb :table_stats_with_buttons, locals: { jobs: jobs, stat_category: 'retries' } %>
5
5
  <table role="grid">
@@ -1,5 +1,5 @@
1
1
  <h1>Scheduled</h1>
2
- <form action="/update_jobs" method="post" accept-charset="utf-8">
2
+ <form action="./update_jobs" method="post" accept-charset="utf-8">
3
3
  <input type="hidden" name="source" value="scheduled" />
4
4
  <%= erb :table_stats_with_buttons, locals: { jobs: jobs, stat_category: 'scheduled' } %>
5
5
  <table role="grid">
@@ -2,7 +2,7 @@
2
2
  <tr>
3
3
  <td><h5>Funktor</h5></td>
4
4
  <% @activity_stats.each_pair do |stat, value| %>
5
- <td><a href="/<%= stat %>"><%= stat %>: <%= value %></a></td>
5
+ <td><a href="./<%= stat %>"><%= stat %>: <%= value %></a></td>
6
6
  <% end %>
7
7
  <td>Current time UTC: <%= Time.now.utc %></td>
8
8
  </tr>
data/lib/funktor/web.rb CHANGED
@@ -1 +1 @@
1
- include 'funktor/web/application'
1
+ require 'funktor/web/application'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: funktor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Green