foreman-tasks 9.0.0 → 9.0.1

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: 0212d001904e6c636b7bc695f2fc1d77316e75ffa56e74a171cb373e1f897553
4
- data.tar.gz: 6dc6aa46d9ed25c553e3c396418573f8aa3d503b013913390dc3ebfda566bd4e
3
+ metadata.gz: c07047587cf02128c555096e198c263c44e0309511968150c6ffad1014611ccc
4
+ data.tar.gz: 0a67b8fa80f6a9c6ab2d15659adea5c067fc2ccff70ae1fab6df679580fc28cc
5
5
  SHA512:
6
- metadata.gz: c6d99828feaf9620e12d9e458a54b5ed0b74559af943f08336c2ca233852e5976cbd9ba27a330bb963ae1d7c70fcb7e67708c9583daff26fbf644cb541c928c4
7
- data.tar.gz: 14c2fc0363926da571c5d59613e9f82d2677c5cddec9a3656878ad13e7d320e968ffd87644481a53b78a16347ef3be912aa33a2a28f2edc1d5162224f6547aaf
6
+ metadata.gz: 1144a9f0f759891f5e99ecffbae42f9342f20eb6bd63adfeea0c7ded40cc38254be051024dbf344e3cebc40191098b4aa4ffe7d2d005c73e28b06fbd0e4a9349
7
+ data.tar.gz: ba9a9c54f9c924a0ccb49f93b9cb22bad9132e4665b1d7a764667f3209d2cc26d6edff9d5e58a818b70500fe604d6074b2dc92a0aba3b0acdfab4b7078f3869e
@@ -6,4 +6,4 @@ attributes :id, :cron_line, :end_time, :iteration, :task_group_id, :state,
6
6
  node(:task_count) { |rl| rl.tasks.count }
7
7
  node(:action) { |rl| rl.tasks.first.try(:action) }
8
8
  node(:last_occurence) { |rl| rl.last_task&.started_at }
9
- node(:next_occurence) { |rl| rl.next_task&.start_at }
9
+ node(:next_occurence) { |rl| rl.next_task&.start_at if rl.state == 'active' }
@@ -1,3 +1,3 @@
1
1
  module ForemanTasks
2
- VERSION = '9.0.0'.freeze
2
+ VERSION = '9.0.1'.freeze
3
3
  end
@@ -10,12 +10,18 @@ if gettext_find_task
10
10
  storage_file = "#{locale_path}/action_names.rb"
11
11
  puts "writing action translations to: #{storage_file}"
12
12
 
13
+ klasses = Actions::EntryAction
14
+ .subclasses
15
+ .uniq
16
+ .select do |action|
17
+ src, = Object.const_source_location(action.to_s)
18
+ src.start_with? @engine.root.to_s
19
+ end
20
+
13
21
  File.write storage_file,
14
22
  "# Autogenerated!\n" +
15
- Actions::EntryAction
16
- .all_action_names
17
- .uniq
18
- .map { |n| %[_("#{n}")] }
23
+ klasses
24
+ .map { |klass| %[_("#{klass.allocate.humanized_name}")] }
19
25
  .sort
20
26
  .join("\n") + "\n"
21
27
  end
@@ -8,8 +8,8 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: foreman_tasks 1.0.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2023-11-01 11:07+0100\n"
12
- "PO-Revision-Date: 2023-11-01 11:07+0100\n"
11
+ "POT-Creation-Date: 2023-11-28 22:09+0100\n"
12
+ "PO-Revision-Date: 2023-11-28 22:09+0100\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -165,8 +165,7 @@ msgstr ""
165
165
  #: ../db/seeds.d/30-notification_blueprints.rb:54
166
166
  #: ../lib/foreman_tasks/engine.rb:25 ../lib/foreman_tasks/engine.rb:54
167
167
  #: ../webpack/ForemanTasks/Components/TasksTable/SubTasksPage.js:10
168
- #: ../webpack/ForemanTasks/Components/TasksTable/TasksIndexPage.js:7
169
- #: ../webpack/ForemanTasks/Components/TasksTable/TasksTablePage.js:150
168
+ #: ../webpack/ForemanTasks/Components/TasksTable/TasksTablePage.js:151
170
169
  msgid "Tasks"
171
170
  msgstr ""
172
171
 
@@ -317,11 +316,11 @@ msgstr ""
317
316
  msgid "Bulk action"
318
317
  msgstr ""
319
318
 
320
- #: ../app/lib/actions/bulk_action.rb:59
319
+ #: ../app/lib/actions/bulk_action.rb:62
321
320
  msgid "Empty bulk action"
322
321
  msgstr ""
323
322
 
324
- #: ../app/lib/actions/bulk_action.rb:61
323
+ #: ../app/lib/actions/bulk_action.rb:64
325
324
  msgid "The targets are of different types"
326
325
  msgstr ""
327
326
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.0.0
4
+ version: 9.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-23 00:00:00.000000000 Z
11
+ date: 2024-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dynflow