asgard 0.3.3 → 0.4.1

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.
data/mkdocs.yml CHANGED
@@ -158,6 +158,7 @@ nav:
158
158
  - Subcommands: subcommands.md
159
159
  - Shell Helpers: shell.md
160
160
  - Environment: environment.md
161
+ - Scheduled Tasks: schedule.md
161
162
  - Task Files: task-files.md
162
163
  - API Reference: api.md
163
164
  - Examples: examples.md
data/quality.loki CHANGED
@@ -1,10 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
  # Quality gate tasks — imported by .loki
3
3
 
4
+ require "shellwords"
5
+
4
6
  class Tasks
7
+ # One process for every test/test_*.rb, so SimpleCov sees the whole suite.
8
+ TEST_LOADER = %q(Dir["test/test_*.rb"].each { |f| require File.expand_path(f) }).shellescape.freeze
9
+
5
10
  desc "Run the test suite"
6
11
  def test_check
7
- output = `bundle exec ruby -Ilib:test test/test_asgard.rb 2>&1`
12
+ output = `bundle exec ruby -Ilib:test -e #{TEST_LOADER} 2>&1`
8
13
  result = $?.success? ? :pass : :fail
9
14
  File.write("test_output.txt", output)
10
15
  summary = output.lines.reverse.find { |l| l =~ /\d+ runs,/ }&.strip || result.to_s
@@ -14,7 +19,7 @@ class Tasks
14
19
 
15
20
  desc "Run the test suite with verbose output"
16
21
  def test_verbose
17
- sh "bundle exec ruby -Ilib:test test/test_asgard.rb -v"
22
+ sh "bundle exec ruby -Ilib:test -e #{TEST_LOADER} -- -v"
18
23
  end
19
24
 
20
25
  desc "Run every *_check quality gate task in parallel"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asgard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dewayne VanHoozer
@@ -37,10 +37,25 @@ dependencies:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
39
  version: '3.0'
40
+ - !ruby/object:Gem::Dependency
41
+ name: tty-table
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '0.12'
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '0.12'
40
54
  description: |
41
55
  A powerful Ruby-based task runner for any kind of project with task dependency tracking
42
56
  and concurrent execution of designated tasks. Uses Thor for its rich CLI options, var
43
- declarations, dotenv, sh/shebang helpers, and importable task files.
57
+ declarations, dotenv, sh/shebang helpers, importable task files, and scheduled
58
+ execution of tasks via launchd (macOS) or systemd timers (Linux).
44
59
  email:
45
60
  - dewayne@vanhoozer.me
46
61
  executables:
@@ -74,6 +89,7 @@ files:
74
89
  - docs/helpers.md
75
90
  - docs/index.md
76
91
  - docs/options.md
92
+ - docs/schedule.md
77
93
  - docs/shell.md
78
94
  - docs/subcommands.md
79
95
  - docs/task-files.md
@@ -103,7 +119,14 @@ files:
103
119
  - lib/asgard/doctor.rb
104
120
  - lib/asgard/doctor/report.rb
105
121
  - lib/asgard/doctor/task_sections.rb
122
+ - lib/asgard/errors.rb
106
123
  - lib/asgard/kernel_methods.rb
124
+ - lib/asgard/schedule.rb
125
+ - lib/asgard/schedule/commands.rb
126
+ - lib/asgard/schedule/declaration.rb
127
+ - lib/asgard/schedule/launchd.rb
128
+ - lib/asgard/schedule/systemd.rb
129
+ - lib/asgard/schedule/table.rb
107
130
  - lib/asgard/shell.rb
108
131
  - lib/asgard/tasks.rb
109
132
  - lib/asgard/version.rb
@@ -134,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
157
  - !ruby/object:Gem::Version
135
158
  version: '0'
136
159
  requirements: []
137
- rubygems_version: 4.0.19
160
+ rubygems_version: 4.0.22
138
161
  specification_version: 4
139
162
  summary: A powerful Ruby-based task runner
140
163
  test_files: []