aoc_rb 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +7 -0
- data/CHANGELOG.md +14 -1
- data/lib/aoc_rb/app.rb +11 -3
- data/lib/aoc_rb/cli.rb +4 -0
- data/lib/aoc_rb/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: 9221e43617852ea0a93f97cc13df1dc604b7e597030dffced06b24ee3e3810a6
|
4
|
+
data.tar.gz: 943e273cf7026634f134ae3cc4914187a9ec7f28af2cbdc203d401915a9e66b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76b52a53c7a2cf3e81b0ab3d84c55ab6c12733ebe2586921999d9a728cdc172deea72389d29439cdb6b9bc752938a81a2152d3d4f15d6a536231b7c0f8ca0068
|
7
|
+
data.tar.gz: db4138ca832aaee0996101a3b2efa5e2facd617c4253e7ef1853912f9062f985da7091caca3af6f29498f5aaa53f908512967d105decfaca19a5cef6185d07c0
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
## [Unreleased]
|
8
8
|
- No unreleased changes!
|
9
9
|
|
10
|
+
## [0.2.5]
|
11
|
+
### Added
|
12
|
+
- New spec --all task to run all tests (by [@kauredo](https://github.com/kauredo))
|
13
|
+
- Tests for output task (by [@kauredo](https://github.com/kauredo))
|
14
|
+
|
15
|
+
### Changed
|
16
|
+
- Updated gitignore to exclude ruby environment and gem build files
|
17
|
+
- Updated all specs to use the generated test app folder, rather than the gem root dir ([#21](https://github.com/pacso/aoc_rb/pull/21) by [@pacso](https://github.com/pacso))
|
18
|
+
|
19
|
+
### Fixed
|
20
|
+
- Thor exit_on_failure deprecation warning (by [@kauredo](https://github.com/kauredo))
|
21
|
+
|
10
22
|
## [0.2.4]
|
11
23
|
### Fixed
|
12
24
|
- Output task fixed (by [@kauredo](https://github.com/kauredo))
|
@@ -46,7 +58,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
46
58
|
|
47
59
|
Initial release.
|
48
60
|
|
49
|
-
[Unreleased]: https://github.com/pacso/aoc_rb/compare/v0.2.
|
61
|
+
[Unreleased]: https://github.com/pacso/aoc_rb/compare/v0.2.5...HEAD
|
62
|
+
[0.2.5]: https://github.com/pacso/aoc_rb/compare/v0.2.4...v0.2.5
|
50
63
|
[0.2.4]: https://github.com/pacso/aoc_rb/compare/v0.2.3...v0.2.4
|
51
64
|
[0.2.3]: https://github.com/pacso/aoc_rb/compare/v0.2.2...v0.2.3
|
52
65
|
[0.2.2]: https://github.com/pacso/aoc_rb/compare/v0.2.1...v0.2.2
|
data/lib/aoc_rb/app.rb
CHANGED
@@ -29,6 +29,10 @@ end
|
|
29
29
|
|
30
30
|
module AocRb
|
31
31
|
class App < Thor
|
32
|
+
def self.exit_on_failure?
|
33
|
+
false
|
34
|
+
end
|
35
|
+
|
32
36
|
desc "fetch", "Downloads the input file and problem statement for today, or an optionally specified year / day", hide: true
|
33
37
|
method_option :year, aliases: "-y", type: :numeric, default: Time.now.year
|
34
38
|
method_option :day, aliases: "-d", type: :numeric, default: Time.now.day
|
@@ -119,11 +123,15 @@ module AocRb
|
|
119
123
|
desc "spec", "runs tests for today, or the specified date"
|
120
124
|
method_option :year, aliases: "-y", type: :numeric, default: Time.now.year
|
121
125
|
method_option :day, aliases: "-d", type: :numeric, default: Time.now.day
|
126
|
+
method_option :all, :type => :boolean, :aliases => "--all"
|
122
127
|
|
123
128
|
def spec(year = options[:year], day = options[:day])
|
124
|
-
|
125
|
-
|
126
|
-
|
129
|
+
if options[:all]
|
130
|
+
Kernel.exec( "bundle exec rspec" )
|
131
|
+
else
|
132
|
+
spec_dir = File.join("spec", year.to_s, AocRb::Puzzle.padded(day))
|
133
|
+
Kernel.exec( "bundle exec rspec #{spec_dir}" )
|
134
|
+
end
|
127
135
|
end
|
128
136
|
|
129
137
|
desc "prep", "preps everything you need for a new puzzle"
|
data/lib/aoc_rb/cli.rb
CHANGED
data/lib/aoc_rb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aoc_rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Pascoe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|