chmd 1.0 → 1.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
  SHA256:
3
- metadata.gz: 6825fc3e2a7dcc568b5404a092a5a8e832c27cbf408fa13e493ef0af5aebd9eb
4
- data.tar.gz: 9d1cd4a0bb320b61d7ecdb92b189e35c3934611c86c0cf986e63ac207192999d
3
+ metadata.gz: ae69ce36a33ad9e161ed09ddd000f6032bfbb3cc749af00c18499f4ece00b01b
4
+ data.tar.gz: e4b67e558130f2c9cb3d14779574e19063f4420f4a1b15fe2d8cebed6e0538b5
5
5
  SHA512:
6
- metadata.gz: ae30762304183340673eba0b8aab893647d13f52cbf699caf1de33e592cda1986f311319f09ce253eda85caffaeb5268d2c1f3b4e51299cb396fcdd5192250c1
7
- data.tar.gz: '079cec0602b258cb64ff24250aca44b43dfe50f385d62acfdf2b96be28ffb270e79222a5a62f336d8dd74e1dca5761f565fb575fe3dc75577be8b8138bfed913'
6
+ metadata.gz: d7a08dd3388b094ffc5cb7570c889757bd3e5effbca81f407750d065db786d4f3c8e24994b95d3fea4cfad6e7016720afe304acd0de7ee30d87efacec983552f
7
+ data.tar.gz: b63b2f9f0d338f742be0053a81b9703505793d87ef07009a8a11fe635a6ea71ee774cbc4d092579975631491fb041b5a746f14b0542a1392e8a11bd969c1c6cd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chmd (1.0)
4
+ chmd (1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,9 +1,13 @@
1
1
  # `chmd`
2
2
 
3
- - Make CHANGELOG.md from git-log and git-tag
3
+ ![Gem](https://img.shields.io/gem/v/chmd)
4
+
5
+ - Make CHANGELOG.md from git log and tags of repositorywhich origin exists on github.
4
6
 
5
7
  ## Syntax
6
8
 
9
+ - See example: [chmd/CHANGELOG.md](CHANGELOG.md)
10
+
7
11
  ```txt
8
12
  # Changelog
9
13
  <blank line>
@@ -19,34 +23,31 @@
19
23
  <blank line>
20
24
  ```
21
25
 
22
- ## Usage
26
+ ## Install
23
27
 
24
28
  ```bash
25
- $ curl -L https://git.io/JRuUu -o chmd && chmod +x $_
26
- # inside git repo
27
- $ ./chmd | less # check output
28
- $ ./chmd > CHANGELOG.md
29
- # outside git repo
30
- $ ./chmd
31
- Error: outside git repo, or git is not installed.
29
+ gem install chmd
32
30
  ```
33
31
 
34
- - If you want to globally run this command,
32
+ ## Usage
35
33
 
36
- ```bash
37
- $ sudo install -m 755 chmd /usr/local/bin/chmd
38
- $ which chmd
39
- /usr/local/bin/mkch
40
- ```
34
+ - Within git repo:
41
35
 
42
- ## Sample
36
+ ```txt
37
+ $ chmd
38
+ # Changelog
39
+
40
+ ...(output)...
43
41
 
44
- - [face-symmetrizer/CHANGELOG.md](https://github.com/eggplants/face-symmetrizer/blob/master/CHANGELOG.md)
45
- - Made by `chmd`
42
+ $ chmd > CHANGELOG.md
43
+ ```
46
44
 
47
- ## Requirements
45
+ - Raise an error when executing outside git repo:
48
46
 
49
- - Ruby
47
+ ```txt
48
+ $ chmd
49
+ Error: You are not in a git repo.
50
+ ```
50
51
 
51
52
  ## License
52
53
 
data/chmd.gemspec CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
27
27
  spec.require_paths = ['lib']
28
28
 
29
- spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
29
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
30
30
 
31
31
  spec.add_development_dependency 'bundler'
32
32
  spec.add_development_dependency 'rake'
data/lib/chmd.rb CHANGED
@@ -101,7 +101,7 @@ module Chmd
101
101
  system 'git rev-parse --show-toplevel', %i[out err] => File::NULL
102
102
  return if $CHILD_STATUS.success?
103
103
 
104
- warn 'Error: You are outside git repo.'
104
+ warn 'Error: You are not in a git repo.'
105
105
  exit 1
106
106
  end
107
107
  end
data/lib/chmd/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Chmd
4
- VERSION = '1.0'
4
+ VERSION = '1.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chmd
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: '1.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - eggplants
@@ -82,7 +82,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
82
82
  requirements:
83
83
  - - ">="
84
84
  - !ruby/object:Gem::Version
85
- version: 2.5.0
85
+ version: 2.7.0
86
86
  required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - ">="