aoc_cli 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bee1d6efc3fabf9d4f218f642989d57a3623de2726834c59ec71d4349958725f
4
- data.tar.gz: bd8b87f6998e73b607f79e669c051071432ee8e5553171ad78976f8684f2748f
3
+ metadata.gz: 48d955e92e44900dc1e8055d26e2e8ce92bd1516ac57c18dd946cb6e53ad7666
4
+ data.tar.gz: b9138b981d6d99454f247f1fe20767923e563dce0189cc2b231868dc23a20f83
5
5
  SHA512:
6
- metadata.gz: 9af542a18643e3a8c642ef1ec70284e76b93b0aef184827f1510e9e02479649724e34fc219a3e193f17de01b07831a5361f4a6c40f30fea1df3de27ff0e11a84
7
- data.tar.gz: a7eb8b816eb983a7a346d80ea81e2c711c3a1cc856b57541552de52c4a467170a0d18eed01d990ab5c6400a6c1774357c7f67a8bfe9040f7548be5b39c1cbab6
6
+ metadata.gz: 88766c1b68f745590eb203475e20336e07e9a228519745b5a46bdfb1fe5e5137cf4f48867f818a219b84e500ca581c6584465aa1c47154b59e5d91b5a536411c
7
+ data.tar.gz: c9801850f6b949c5a87e601fcb0d61359e43770bbf693208f711c7a543b91fabf9461781f757c4cb854a160e875b4081985eb95f04ea11d400ba2260cae35ba3
data/.gitignore CHANGED
@@ -1,3 +1,5 @@
1
1
  tags
2
2
  pkg/**
3
+ tests/**
4
+ tests
3
5
  pkg
data/CHANGELOG.md CHANGED
@@ -23,3 +23,9 @@
23
23
  ### 0.2.1
24
24
  - Add day_dir_prefix option
25
25
  - Add functionality to prevent duplicate incorrect attempts
26
+
27
+ ## 22-02-21
28
+ ### 0.2.2
29
+ - Year refresh now creates the calendar table if it does not exist
30
+ - Update terminal-table version requirements
31
+ - Add version flag
data/README.md CHANGED
@@ -4,7 +4,31 @@
4
4
 
5
5
  A command-line interface to interact with Advent of Code puzzles, built in Ruby.
6
6
 
7
- ## New to 0.2.0
7
+ ## Main Features
8
+ - Download puzzles as markdown and raw inputs directly from the command line
9
+ - Submit answers for puzzles and receive feedback
10
+ - Track progress through your calendar file which is automatically updated as you progress
11
+ - View data about how you answer puzzles, for example your previous attempts, how long it takes to solve a puzzle successfully and how many attempts it took you
12
+ - Inputs and puzzles are cached locally to prevent strain on AoC server
13
+ - Automatic git initialisation
14
+ - Hot keys to open solution megathreads in Reddit if you get stuck
15
+ - Support for multiple AoC accounts by use of session-key aliases
16
+
17
+ ### Note to Existing Users
18
+ - If you are having any issues with the calendar table, run `aoc -r` in your year directory to update and refresh your directory
19
+
20
+ ## Whats New
21
+
22
+ ### New to 0.2.2
23
+ - Year refresh now creates the calendar table if it does not exist
24
+ - Update terminal-table version requirements
25
+ - Add version flag
26
+
27
+ ### New to 0.2.1
28
+ - Day subdir prefix functionality
29
+ - Duplicate incorrect attempts prevented
30
+
31
+ ### New to 0.2.0
8
32
  - Calendar progress tables
9
33
  - Quick-print calendar from any directory
10
34
  - Configuration expansion
@@ -16,16 +40,6 @@ A command-line interface to interact with Advent of Code puzzles, built in Ruby.
16
40
  - Better default alias handling
17
41
  - General bug fixes
18
42
 
19
- ## Main Features
20
- - Download puzzles as markdown and raw inputs directly from the command line
21
- - Submit answers for puzzles and receive feedback
22
- - Track progress through your calendar file which is automatically updated as you progress
23
- - View data about how you answer puzzles, for example your previous attempts, how long it takes to solve a puzzle successfully and how many attempts it took you
24
- - Inputs and puzzles are cached locally to prevent strain on AoC server
25
- - Automatic git initialisation
26
- - Hot keys to open solution megathreads in Reddit if you get stuck
27
- - Support for multiple AoC accounts by use of session-key aliases
28
-
29
43
 
30
44
  ## Installation
31
45
 
data/aoc_cli.gemspec CHANGED
@@ -26,5 +26,5 @@ Gem::Specification.new do |spec|
26
26
  spec.add_dependency("git")
27
27
  spec.add_dependency("pandoc-ruby")
28
28
  spec.add_dependency("sqlite3")
29
- spec.add_dependency("terminal-table")
29
+ spec.add_dependency("terminal-table", "~> 3.0.0")
30
30
  end
data/lib/aoc_cli/help.rb CHANGED
@@ -16,13 +16,16 @@ Advent of Code - cli, version #{AocCli::VERSION}
16
16
  #{title("Usage")}
17
17
  #{" aoc".bold + " -flag".italic.yellow + " value".bold.blue}
18
18
 
19
+ #{title("General")}
20
+ #{flag("-v","--version")}Print version
21
+ #{flag("-h","--help")}Print this screen
22
+
19
23
  #{title("Setup")}
20
24
  - Store session cookie keys to access AoC
21
25
 
22
26
  #{flag("-k","--key")}Store a session cookie to use the cli.
23
27
  #{flag("-u","--user")}Set alias for key (default: "main")
24
28
  #{flag("-U","--default")}Get/set default alias
25
- #{flag("-h","--help")}Print this screen
26
29
 
27
30
  #{title("Year Directory")}
28
31
  - Initialise a year directory to use aoc-cli.
@@ -64,6 +64,8 @@ module AocCli
64
64
  when "-U", "--default"
65
65
  @cmd = :DefaultAlias
66
66
  args[:user] = ARGV.shift
67
+ when "-v", "--version"
68
+ abort "aoc-cli(#{VERSION})"
67
69
  when "-y", "--init-year"
68
70
  @cmd = :YearInit
69
71
  args[:year] = Validate.year(ARGV.shift.to_i)
@@ -1,3 +1,3 @@
1
1
  module AocCli
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
data/lib/aoc_cli/year.rb CHANGED
@@ -4,6 +4,7 @@ module AocCli
4
4
  puts "- Updating calendar...".blue
5
5
  Year::Meta.new.write
6
6
  Year::Progress.new.write
7
+ .init_calendar_db
7
8
  end
8
9
  class Meta
9
10
  attr_reader :user, :year, :paths
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aoc_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Welham
@@ -84,16 +84,16 @@ dependencies:
84
84
  name: terminal-table
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: 3.0.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: 3.0.0
97
97
  description: A command-line interface for the Advent of Code puzzles. Features include
98
98
  downloading puzzles and inputs, solving puzzles and tracking year progress from
99
99
  within the terminal