aoc_rb 0.2.7 → 0.2.9

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: 02b8501bb62be5f7f1103b8b7a1b032bdde616ea8ce384bbf9ea6ef95b0974a5
4
- data.tar.gz: c298a15ee511530586a1189254564383ab1a8bdcc3e8b1edf2d4a012544adf66
3
+ metadata.gz: 345d1c7554bb6930b1e8a174ecf2699a45d3608831e9e62c11a2c030b3a4b91c
4
+ data.tar.gz: 4d6baad5f40942b06e8e80c30e1dc1db12366c750e4345214fa8d78209abd14a
5
5
  SHA512:
6
- metadata.gz: 4dee4989b3bd15376712a7dcb2207598c24f8df82ee9d955c130c59dbf2695f0cf5c1413bfe2f1c7aca04f48b947daa0aa63b077e62f619218c3a16d2a6d48d9
7
- data.tar.gz: ce87654277f3c3ed7e4a7d296790044ec0b6da6de41ef721e35b76ea7c3c2dca6bf66f918951717bb53f7391da272ba82b4862d040bdee5185cf36b45aa7898a
6
+ metadata.gz: 57720a17dd3dcac43a7a97af1966df7b8db885129e25fdb0e3f3e4969582d885c6bffbbaa8f26a03336320f9e093893c538c700b811b055b76fa064bc09447c9
7
+ data.tar.gz: 7fd8702c9e6ae60de0978b1346ac2928dacd8435012097e18f918789222284912290db98b9fcd74f106f12a4699d7f0998835a824897ed30262e8278af8ea1b3
data/CHANGELOG.md CHANGED
@@ -7,6 +7,14 @@ 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.9]
11
+ ### Changed
12
+ - Added missing require to `lib/aoc_rb/app.rb` ([#33](https://github.com/pacso/aoc_rb/pull/33) by [@pacso](https://github.com/pacso))
13
+
14
+ ## [0.2.8]
15
+ ### Changed
16
+ - Updated the aoc command to self-heal the `bin/aoc` stub with the expected `AocRb::App.start` command ([#32](https://github.com/pacso/aoc_rb/pull/32) by [@pacso](https://github.com/pacso))
17
+
10
18
  ## [0.2.7]
11
19
  ### Added
12
20
  - Version command, which outputs the installed version of the gem ([#30](https://github.com/pacso/aoc_rb/pull/30) by [@pacso](https://github.com/pacso))
@@ -66,7 +74,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66
74
 
67
75
  Initial release.
68
76
 
69
- [Unreleased]: https://github.com/pacso/aoc_rb/compare/v0.2.7...HEAD
77
+ [Unreleased]: https://github.com/pacso/aoc_rb/compare/v0.2.9...HEAD
78
+ [0.2.9]: https://github.com/pacso/aoc_rb/compare/v0.2.8...v0.2.9
79
+ [0.2.8]: https://github.com/pacso/aoc_rb/compare/v0.2.7...v0.2.8
70
80
  [0.2.7]: https://github.com/pacso/aoc_rb/compare/v0.2.6...v0.2.7
71
81
  [0.2.6]: https://github.com/pacso/aoc_rb/compare/v0.2.5...v0.2.6
72
82
  [0.2.5]: https://github.com/pacso/aoc_rb/compare/v0.2.4...v0.2.5
data/lib/aoc_rb/app.rb CHANGED
@@ -8,6 +8,7 @@ require 'aoc_rb/puzzle'
8
8
  require 'aoc_rb/puzzle_input'
9
9
  require 'aoc_rb/puzzle_solution'
10
10
  require 'aoc_rb/puzzle_source'
11
+ require 'aoc_rb/version'
11
12
 
12
13
  shared_files = File.join(Dir.getwd, "challenges", "shared", "**", "*.rb")
13
14
  Dir[shared_files].each do |file|
@@ -27,6 +28,24 @@ Dir[src_files].each do |file|
27
28
  end
28
29
  end
29
30
 
31
+ def ensure_aoc_start_in_bin
32
+ bin_path = File.join(Dir.pwd, 'bin/aoc')
33
+
34
+ return unless File.exist?(bin_path)
35
+
36
+ unless File.read(bin_path).include?('AocRb::App.start')
37
+ puts "Adding missing `AocRb::App.start` line to `bin/aoc`..."
38
+
39
+ File.open(bin_path, 'a') do |file|
40
+ file.puts "\nAocRb::App.start\n"
41
+ end
42
+
43
+ puts "`AocRb::App.start` has been added to `bin/aoc`.\n\nPlease re-run your aoc command."
44
+ end
45
+ end
46
+
47
+ ensure_aoc_start_in_bin
48
+
30
49
  module AocRb
31
50
  class App < Thor
32
51
  def self.exit_on_failure?
@@ -1,3 +1,3 @@
1
1
  module AocRb
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.9"
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.7
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Pascoe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-05 00:00:00.000000000 Z
11
+ date: 2024-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv