logchange 1.0.0 → 1.0.1
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/README.md +1 -1
- data/changelog/2017.yaml +5 -0
- data/lib/logchange/dispatch.rb +2 -2
- data/lib/logchange/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3f1135a88af30efc947078a9eaa162ff8c3cded
|
4
|
+
data.tar.gz: de6b45c25bd425f939dfe3ae51522ac9ed744226
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4800c0786d4515d391de94f221d686e2b98bb4466164a1dddc123de0b796b76db9005baaf5c5979b880fe9174b06f6147bd71fe408966331b93e4a1d20300644
|
7
|
+
data.tar.gz: 0d44b31baac3baa347647717e1ef5090e5d8d9c9a3462f88ff5facda1977d04977ad47770b591f8893372ab4f194b0d0c18a80e26487fcf2beda7dea37cb106d
|
data/README.md
CHANGED
data/changelog/2017.yaml
CHANGED
data/lib/logchange/dispatch.rb
CHANGED
@@ -2,7 +2,7 @@ module Logchange
|
|
2
2
|
# Routes the user's command to appropriate handler.
|
3
3
|
class Dispatch
|
4
4
|
def execute
|
5
|
-
ensure_changelog_directory_exists
|
5
|
+
ensure_changelog_directory_exists if %i[new release].include?(command)
|
6
6
|
|
7
7
|
case command
|
8
8
|
when :init
|
@@ -25,7 +25,7 @@ module Logchange
|
|
25
25
|
def ensure_changelog_directory_exists
|
26
26
|
path = File.join(Logchange.configuration.changelog_directory_path, 'unreleased')
|
27
27
|
return if File.directory?(path)
|
28
|
-
|
28
|
+
abort("The changelog directory does not exist in this path. Run 'logchange init', or change to the correct path.")
|
29
29
|
end
|
30
30
|
|
31
31
|
def command
|
data/lib/logchange/version.rb
CHANGED