advent 0.1.5 → 0.1.6
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 +4 -4
- data/lib/advent/cli.rb +3 -2
- data/lib/advent/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: a49571ac28572d7a91bcc6a26ecb7253b4f10690dfe2c529a86eca8d310b059b
|
|
4
|
+
data.tar.gz: 470af342600d4fac184e63837dd0f0cdfbd27d34268d34d4a191ef65ce59b960
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e94342f2d83c40b0bd360478d7535583da1076517b218c045b44ead0d455e389c174e58c92321da978f63cecbd41abfff0904927552b1acaeb08853b74874a34
|
|
7
|
+
data.tar.gz: 5d2af6a890fc835148f7e1bc054ef49a3e69e641d7a93528ae184b8b39d48a8c69ce4cdf166c29750525750167278c8c84350d8c2d766df77c8d2a2b30f4e502
|
data/lib/advent/cli.rb
CHANGED
|
@@ -8,6 +8,7 @@ require "thor"
|
|
|
8
8
|
module Advent
|
|
9
9
|
class CLI < Thor
|
|
10
10
|
include Thor::Actions
|
|
11
|
+
EXCLUDED_ROOT_COMMANDS = %w[help init version]
|
|
11
12
|
|
|
12
13
|
class_option :http_module, default: Net::HTTP, check_default_type: false
|
|
13
14
|
|
|
@@ -16,8 +17,8 @@ module Advent
|
|
|
16
17
|
|
|
17
18
|
source_paths << File.expand_path("templates", __dir__)
|
|
18
19
|
|
|
19
|
-
# Don't try to load Advent.root if we're
|
|
20
|
-
unless args.last[:current_command]&.name
|
|
20
|
+
# Don't try to load Advent.root if we're a command that doesn't need it
|
|
21
|
+
unless EXCLUDED_ROOT_COMMANDS.include? args.last[:current_command]&.name
|
|
21
22
|
self.destination_root = Advent.root
|
|
22
23
|
end
|
|
23
24
|
end
|
data/lib/advent/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: advent
|
|
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
|
- Daniel Grieve
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-12-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|