Skip to content

Commit 8f231f5

Browse files
authored
Release 0.2.7 (#31)
* Update version * Update changelog * Update readme with chrome instructions for accessing the session cookie * Update readme with command help examples
1 parent f65866f commit 8f231f5

4 files changed

Lines changed: 29 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
- No unreleased changes!
9+
10+
## [0.2.7]
811
### Added
912
- 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))
1013

@@ -63,7 +66,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6366

6467
Initial release.
6568

66-
[Unreleased]: https://github.com/pacso/aoc_rb/compare/v0.2.6...HEAD
69+
[Unreleased]: https://github.com/pacso/aoc_rb/compare/v0.2.7...HEAD
70+
[0.2.7]: https://github.com/pacso/aoc_rb/compare/v0.2.6...v0.2.7
6771
[0.2.6]: https://github.com/pacso/aoc_rb/compare/v0.2.5...v0.2.6
6872
[0.2.5]: https://github.com/pacso/aoc_rb/compare/v0.2.4...v0.2.5
6973
[0.2.4]: https://github.com/pacso/aoc_rb/compare/v0.2.3...v0.2.4

README.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,36 @@ Before running any commands, you must set up your `AOC_COOKIE` environment varia
2929
$ cp .env-template .env
3030

3131
You'll need to log in to the [Advent of Code](https://adventofcode.com) website and then grab a copy of your session key from your cookies.
32-
In Chrome you can do this via [chrome settings](chrome://settings/cookies/detail?site=adventofcode.com) by entering `chrome://settings/cookies/detail?site=adventofcode.com` in your address bar. Just click on `session` and copy your key from the `Content` section.
32+
In Chrome you can do this by opening the `Developer Tools` window (`⌥ ⌘ I` on Mac) when browsing the Advent of Code website. Within the `Application` tab, expand `Cookies` under `Storage` in the side menu and select `https://adventofcode.com`. This will then show you all of the cookies set by the website. You need to select the `session` cookie and copy the value.
3333

3434
Now edit the new `.env` file, so that it looks like the following, replacing `ABCDE12345` with the session key you just copied:
3535

3636
AOC_COOKIE=ABCDE12345
3737

3838
You're now able to run all the `aoc` commands provided by this gem.
3939

40-
You'll see you have a few options when running the `aoc` command within your project.
40+
You'll see you have a few options when running the `aoc` command within your project. Running `aoc help` will show you all of your options:
41+
42+
$ aoc help
43+
Commands:
44+
aoc exec # executes and optionally submits the puzzle for today, or the specified date
45+
aoc help [COMMAND] # Describe available commands or one specific command
46+
aoc output # outputs results from your solution for the given day
47+
aoc prep # preps everything you need for a new puzzle
48+
aoc spec # runs tests for today, or the specified date
49+
aoc version # prints the current installed version of AocRb
50+
51+
If you want to see you options for a given command:
52+
53+
$ aoc help prep
54+
Usage:
55+
aoc prep
56+
57+
Options:
58+
-y, [--year=N]
59+
-d, [--day=N]
4160

42-
`prep` will set everything up for a new daily puzzle. It defaults to the puzzle for today, but you can work with older puzzles by passing the year and day:
61+
Running `aoc prep` will set everything up for a new daily puzzle. It defaults to the puzzle for today, but you can work with older puzzles by passing the year and day:
4362

4463
$ aoc prep 2017 12
4564

lib/aoc_rb/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module AocRb
2-
VERSION = "0.2.6"
2+
VERSION = "0.2.7"
33
end

spec/lib/aoc_rb_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
RSpec.describe AocRb do
66
it "has the expected version number" do
7-
expect(AocRb::VERSION).to eq "0.2.6"
7+
expect(AocRb::VERSION).to eq "0.2.7"
88
end
99
end

0 commit comments

Comments
 (0)