advent_of_code_cli 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -0
- data/lib/advent_of_code_cli/commands/scaffold.rb +5 -2
- data/lib/advent_of_code_cli/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: fafb31340023aa316aa09e4f83c7d2ba63e02dd66aa5c1afa6fa4c900dad7935
|
4
|
+
data.tar.gz: '0949b3376ac9cd59d92bf84a7a89696d32ad32b894639419df55c4824497ec2e'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72315061ee6c919bca45feded5dd46ccbb7e4b32cdc75804af2e3f0565a183f8920679d6f4186eabfd88a92992d9f8cd60d27173b704d70ba2bfa27b8ffee1f3
|
7
|
+
data.tar.gz: 43aa6003c89045004c957ebda87ade5cdc31cac13c04abd88aeffc978a0100a643fb91a8b286c4b3d9ded9cf778adad25bf57601767fd1bfd16e14cb5d9185fd
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -65,6 +65,7 @@ In order for this to work, you must provide your Advent of Code session cookie t
|
|
65
65
|
```bash
|
66
66
|
export AOC_COOKIE=your-cookie
|
67
67
|
```
|
68
|
+
To obtain the cookie, sign into Advent of Code through your browser, then use the developer tools to examine the headers for a page request. The `cookie:` header should contain a value like `session=a1b2c3...`. The part from `a1b2c3...` onwards is what your need for `AOC_COOKIE`.
|
68
69
|
|
69
70
|
Once the environment variable is set, you can request your personal input for any day.
|
70
71
|
|
@@ -4,8 +4,11 @@ module AdventOfCode
|
|
4
4
|
module Commands
|
5
5
|
class Scaffold < Command
|
6
6
|
def execute
|
7
|
-
|
8
|
-
|
7
|
+
|
8
|
+
unless File.exist?(solution_file_name)
|
9
|
+
say("Creating file: #{solution_file_name}...")
|
10
|
+
create_file(solution_file_name, solution_file_contents)
|
11
|
+
end
|
9
12
|
|
10
13
|
unless Dir.exist?("inputs")
|
11
14
|
say("Creating inputs directory...")
|
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.
|
4
|
+
version: 0.1.6
|
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-
|
11
|
+
date: 2022-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|