aoc_rb 0.2.4 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e7022fa9b1978076b33de4b63e0161f63ac1359b0cabf42f5eb89ba0fea309f
4
- data.tar.gz: 5ecae3ef947b0cef0719278644af8c211946fff6b985e046f4225f044fa0c2cb
3
+ metadata.gz: 9221e43617852ea0a93f97cc13df1dc604b7e597030dffced06b24ee3e3810a6
4
+ data.tar.gz: 943e273cf7026634f134ae3cc4914187a9ec7f28af2cbdc203d401915a9e66b3
5
5
  SHA512:
6
- metadata.gz: 86b1cd0f4090056041bd9e53c215684ad598d97b394c2a724a8b71ef6e4497e5aa1a66197ad09c651c48ad910b58654349f33e9ad142e36e2a5defa850576c1b
7
- data.tar.gz: 430b19f6c60a9bc95e487e63cbffcb3bb5cf0f86f93921e41d7269c1addbfdc1c7473a255a2b41ebe5b29f6495346a267aceeb4299e12926d28378624b62dd17
6
+ metadata.gz: 76b52a53c7a2cf3e81b0ab3d84c55ab6c12733ebe2586921999d9a728cdc172deea72389d29439cdb6b9bc752938a81a2152d3d4f15d6a536231b7c0f8ca0068
7
+ data.tar.gz: db4138ca832aaee0996101a3b2efa5e2facd617c4253e7ef1853912f9062f985da7091caca3af6f29498f5aaa53f908512967d105decfaca19a5cef6185d07c0
data/.gitignore CHANGED
@@ -12,3 +12,10 @@
12
12
  .rspec_status
13
13
  /.idea/
14
14
 
15
+ # environment files
16
+ .ruby-gemset
17
+ .ruby-version
18
+
19
+ # gem build files
20
+ *.gem
21
+
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.4...HEAD
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
- spec_dir = File.join("spec", year.to_s, AocRb::Puzzle.padded(day))
125
-
126
- Kernel.exec( "bundle exec rspec #{spec_dir}" )
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
@@ -8,6 +8,10 @@ require "thor"
8
8
 
9
9
  module AocRb
10
10
  class Cli < Thor
11
+ def self.exit_on_failure?
12
+ false
13
+ end
14
+
11
15
  desc "new NAME", "Creates a new AoC project with the given name"
12
16
 
13
17
  def new(name)
@@ -1,3 +1,3 @@
1
1
  module AocRb
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
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
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-02 00:00:00.000000000 Z
11
+ date: 2022-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv