advent_of_code_cli 0.1.6 → 0.1.7

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: fafb31340023aa316aa09e4f83c7d2ba63e02dd66aa5c1afa6fa4c900dad7935
4
- data.tar.gz: '0949b3376ac9cd59d92bf84a7a89696d32ad32b894639419df55c4824497ec2e'
3
+ metadata.gz: e99e30130801298c54dc4fe7e79088c257bd7a2591f82ffaf20b64f70c0135e2
4
+ data.tar.gz: eeba2b9eb878ba526f92c96d7a02c15b89239715ef864f2fd3b1d434c2ecbf04
5
5
  SHA512:
6
- metadata.gz: 72315061ee6c919bca45feded5dd46ccbb7e4b32cdc75804af2e3f0565a183f8920679d6f4186eabfd88a92992d9f8cd60d27173b704d70ba2bfa27b8ffee1f3
7
- data.tar.gz: 43aa6003c89045004c957ebda87ade5cdc31cac13c04abd88aeffc978a0100a643fb91a8b286c4b3d9ded9cf778adad25bf57601767fd1bfd16e14cb5d9185fd
6
+ metadata.gz: 9bdff2486e12240e0f7fb939fac4250cd81c2664ab9059013f732c30198a6177aa98792844342dda53600716bec69650627994b27a1c5adff2f40e50af9e9223
7
+ data.tar.gz: f827594163b990ca24f5c0f535e196fc50a4663a5a5adb3b4ff0e4c144b720d5e7bbbfef921fc29f7cd1cdd6449fa1b2db1c2bd131a4f781b28ad05a36ce6c30
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- advent_of_code_cli (0.1.6)
4
+ advent_of_code_cli (0.1.7)
5
5
  thor (>= 1.2.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -20,7 +20,7 @@ Run `bundle install`.
20
20
 
21
21
  ### Scaffold
22
22
 
23
- This command will set up the files for any day of Advent of Code. It takes a nubmer between 1 and 25 as an argument.
23
+ This command will set up the files for any day of Advent of Code. It takes a number between 1 and 25 as an argument.
24
24
 
25
25
  ```bash
26
26
  bundle exec aoc_cli scaffold 1
@@ -51,6 +51,8 @@ module AdventOfCode
51
51
  end
52
52
 
53
53
  say "Took #{end_time - start_time} seconds to solve"
54
+ rescue NotImplementedError
55
+ say "Part #{part} has not yet been implemented", :yellow
54
56
  end
55
57
 
56
58
  def expected_answers
@@ -15,8 +15,10 @@ module AdventOfCode
15
15
  Dir.mkdir("inputs")
16
16
  end
17
17
 
18
- say("Creating file: #{input_file_name}...")
19
- create_file(input_file_name)
18
+ unless File.exist?(input_file_name)
19
+ say("Creating file: #{input_file_name}...")
20
+ create_file(input_file_name)
21
+ end
20
22
 
21
23
  unless Dir.exist?("examples")
22
24
  say("Creating examples directory...")
@@ -33,6 +33,8 @@ module AdventOfCode
33
33
 
34
34
  say "Part #{part} result: #{result}"
35
35
  say "Took #{end_time - start_time} seconds to solve"
36
+ rescue NotImplementedError
37
+ say "Part #{part} has not yet been implemented", :yellow
36
38
  end
37
39
  end
38
40
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AdventOfCode
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.7"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: advent_of_code_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emily Samp
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-06 00:00:00.000000000 Z
11
+ date: 2022-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor