lex-tasker 0.3.4 → 0.3.5
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.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +4 -4
- data/.rubocop.yml +9 -43
- data/CHANGELOG.md +5 -0
- data/Gemfile +1 -0
- data/lib/legion/extensions/tasker/client.rb +1 -1
- data/lib/legion/extensions/tasker/helpers/task_finder.rb +6 -6
- data/lib/legion/extensions/tasker/version.rb +1 -1
- data/lib/legion/extensions/tasker.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7ae5eef5d0fe12134463ff0ab7935fba5f4902420933867f1402f8e1dd9720fa
|
|
4
|
+
data.tar.gz: 61e61364b924d210f90ff3470053c92a18a8641d9dfca42c44e3bf21bb019efc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c93314899efe9674545a49fdccae74429bfd6fcc581915039682f0fe7a8c591bed8322bb430469bd528fb0a0a62905c6e347c8ba772264d0235ccd7d97545aa8
|
|
7
|
+
data.tar.gz: 64e0899931e7981cde68d136da0e7fa059da37b51d35a62224c1c02ffe6e9dd896b70f6ff5f47366076226bffb4278252a188828d966d21b7f755b9bef1739ee
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -10,8 +10,8 @@ jobs:
|
|
|
10
10
|
ci:
|
|
11
11
|
uses: LegionIO/.github/.github/workflows/ci.yml@main
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
uses: LegionIO/.github/.github/workflows/
|
|
13
|
+
excluded-files:
|
|
14
|
+
uses: LegionIO/.github/.github/workflows/excluded-files.yml@main
|
|
15
15
|
|
|
16
16
|
security:
|
|
17
17
|
uses: LegionIO/.github/.github/workflows/security-scan.yml@main
|
|
@@ -27,8 +27,8 @@ jobs:
|
|
|
27
27
|
uses: LegionIO/.github/.github/workflows/stale.yml@main
|
|
28
28
|
|
|
29
29
|
release:
|
|
30
|
-
needs: [ci,
|
|
30
|
+
needs: [ci, excluded-files]
|
|
31
31
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
32
32
|
uses: LegionIO/.github/.github/workflows/release.yml@main
|
|
33
33
|
secrets:
|
|
34
|
-
rubygems-api-key: ${{ secrets.RUBYGEMS_API_KEY }}
|
|
34
|
+
rubygems-api-key: ${{ secrets.RUBYGEMS_API_KEY }}
|
data/.rubocop.yml
CHANGED
|
@@ -1,48 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
NewCops: enable
|
|
4
|
-
SuggestExtensions: false
|
|
1
|
+
inherit_gem:
|
|
2
|
+
rubocop-legion: config/lex.yml
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Layout/SpaceAroundEqualsInParameterDefault:
|
|
10
|
-
EnforcedStyle: space
|
|
11
|
-
|
|
12
|
-
Layout/HashAlignment:
|
|
13
|
-
EnforcedHashRocketStyle: table
|
|
14
|
-
EnforcedColonStyle: table
|
|
15
|
-
|
|
16
|
-
Metrics/MethodLength:
|
|
17
|
-
Max: 50
|
|
18
|
-
|
|
19
|
-
Metrics/ClassLength:
|
|
20
|
-
Max: 1500
|
|
21
|
-
|
|
22
|
-
Metrics/ModuleLength:
|
|
23
|
-
Max: 1500
|
|
24
|
-
|
|
25
|
-
Metrics/BlockLength:
|
|
26
|
-
Max: 40
|
|
27
|
-
|
|
28
|
-
Metrics/AbcSize:
|
|
29
|
-
Max: 60
|
|
30
|
-
|
|
31
|
-
Metrics/CyclomaticComplexity:
|
|
32
|
-
Max: 15
|
|
33
|
-
|
|
34
|
-
Metrics/PerceivedComplexity:
|
|
35
|
-
Max: 17
|
|
36
|
-
|
|
37
|
-
Style/Documentation:
|
|
4
|
+
# Actor defines `def time` as instance method — cop looks for DSL call, false positive
|
|
5
|
+
Legion/Extension/EveryActorRequiresTime:
|
|
38
6
|
Enabled: false
|
|
39
7
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
Style/FrozenStringLiteralComment:
|
|
44
|
-
Enabled: true
|
|
45
|
-
EnforcedStyle: always
|
|
8
|
+
# data_required? true but uses legion-data tables (no own migrations directory)
|
|
9
|
+
Legion/Extension/DataRequiredWithoutMigrations:
|
|
10
|
+
Enabled: false
|
|
46
11
|
|
|
47
|
-
|
|
12
|
+
# Private helpers and non-runner methods return non-Hash values by design
|
|
13
|
+
Legion/Extension/RunnerReturnHash:
|
|
48
14
|
Enabled: false
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
|
@@ -17,7 +17,7 @@ module Legion
|
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
def log
|
|
20
|
-
@log ||= defined?(Legion::Logging) ? Legion::Logging : Logger.new($stdout)
|
|
20
|
+
@log ||= defined?(Legion::Logging) ? Legion::Logging : Logger.new($stdout) # rubocop:disable Legion/HelperMigration/LoggingGuard
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
def settings
|
|
@@ -6,18 +6,18 @@ module Legion
|
|
|
6
6
|
module Helpers
|
|
7
7
|
module TaskFinder
|
|
8
8
|
def cache_get(key)
|
|
9
|
-
return nil unless defined?(Legion::Cache) && Legion::Cache.respond_to?(:connected?) &&
|
|
9
|
+
return nil unless defined?(Legion::Cache) && Legion::Cache.respond_to?(:connected?) && cache_connected?
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
rescue StandardError
|
|
11
|
+
cache_get("tasker:#{key}")
|
|
12
|
+
rescue StandardError => _e
|
|
13
13
|
nil
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def cache_set(key, value, ttl: 60)
|
|
17
|
-
return unless defined?(Legion::Cache) && Legion::Cache.respond_to?(:connected?) &&
|
|
17
|
+
return unless defined?(Legion::Cache) && Legion::Cache.respond_to?(:connected?) && cache_connected?
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
rescue StandardError
|
|
19
|
+
cache_set("tasker:#{key}", value, ttl)
|
|
20
|
+
rescue StandardError => _e
|
|
21
21
|
nil
|
|
22
22
|
end
|
|
23
23
|
|
|
@@ -5,7 +5,7 @@ require 'legion/extensions/tasker/version'
|
|
|
5
5
|
module Legion
|
|
6
6
|
module Extensions
|
|
7
7
|
module Tasker
|
|
8
|
-
extend Legion::Extensions::Core if Legion::Extensions.const_defined? :Core
|
|
8
|
+
extend Legion::Extensions::Core if Legion::Extensions.const_defined? :Core, false
|
|
9
9
|
|
|
10
10
|
def self.data_required?
|
|
11
11
|
true
|