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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3505d84792e31b47a707c42510c1e7a578e0606
4
- data.tar.gz: 6cf762f74375bdc467cd1e37421747653f223f86
3
+ metadata.gz: f3f1135a88af30efc947078a9eaa162ff8c3cded
4
+ data.tar.gz: de6b45c25bd425f939dfe3ae51522ac9ed744226
5
5
  SHA512:
6
- metadata.gz: 7598192ca0df05fad8438df4cb7798f08bf9b584dddfe5ac7efb511ed692712b19002c77ec27289d86bff6dc25c58ec753c979af2126c1c5b8fd1ccc9a57f9be
7
- data.tar.gz: cc428dd302ac30725dfb2b8b07e54f3b9cb9e3bc50f70e12f6641320b924abd388b22fa6c1ae09a19572afb73c7d578b688c85ab9452bc36620dea922430a52a
6
+ metadata.gz: 4800c0786d4515d391de94f221d686e2b98bb4466164a1dddc123de0b796b76db9005baaf5c5979b880fe9174b06f6147bd71fe408966331b93e4a1d20300644
7
+ data.tar.gz: 0d44b31baac3baa347647717e1ef5090e5d8d9c9a3462f88ff5facda1977d04977ad47770b591f8893372ab4f194b0d0c18a80e26487fcf2beda7dea37cb106d
data/README.md CHANGED
@@ -24,7 +24,7 @@ specific requirements. It also makes it easy to parse and _present_ the data on
24
24
 
25
25
  Add to your `Gemfile`:
26
26
 
27
- gem 'logchange', '~> 0.1'
27
+ gem 'logchange', '~> 1.0'
28
28
 
29
29
  And then:
30
30
 
data/changelog/2017.yaml CHANGED
@@ -1,5 +1,10 @@
1
1
  ---
2
2
  changelog:
3
+ - timestamp: '2017-05-30T14:56:19Z'
4
+ tag: v1.0.1
5
+ changes:
6
+ - timestamp: '2017-05-30T14:56:04Z'
7
+ title: Display error message instead of crashing for non-standard use.
3
8
  - timestamp: '2017-05-30T14:38:40Z'
4
9
  tag: v1.0.0
5
10
  changes:
@@ -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 unless command == :init
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
- raise "The changelog directory does not exist in this path. Run 'logchange init', or change to the correct path."
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
@@ -1,4 +1,4 @@
1
1
  module Logchange
2
2
  # Semantic Versioning. http://semver.org
3
- VERSION = -'1.0.0'
3
+ VERSION = -'1.0.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logchange
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hari Gopal