easy_changelog 0.2.0 → 0.3.0

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: 21835b5eb789e18516da3e0999774650180baa9fa09dcc6c5673089b179d2ce9
4
- data.tar.gz: 4bbdd3915868d1795114f24139af6989e6d0a24b636ae0eb7b3b5ed2f5e90cf1
3
+ metadata.gz: 3e89d4e58c276528951204d915ae67f2082004de2986bceea7b9645dae3a97bb
4
+ data.tar.gz: b812c744a04357a41f1326d560e9ef34020ecc4c40e0730823c8b489bc5e9801
5
5
  SHA512:
6
- metadata.gz: deb7ac871213f284a3d3e99fff0b20172038b6e946b96d6f0b2d076599673c21df58330841c96925f985a7992fb4ae6e78fd85e4e5a5f8ccde7d5e09039ca4a9
7
- data.tar.gz: 5130b516e4e1207bac5dc5b7be5e05d3279dd03aa94e106d44ce8b7b28446385b9fcfcfd9b263f4a9a93129cf29e939b6c5cc3499af3af5125d580ab107847c0
6
+ metadata.gz: c17d7429a5903e0103785cf0567ee085e19dc0f1283db2b6d4c50967cefbfc6aaa68d031c5b4b2714fc772e5c78f4514d29f188de9e877bc211a4e093eb9fcab
7
+ data.tar.gz: 9c8a60a1b48e7a634b3479bd2438a0417e3cf489f149eafda5749db9716d0dc16072e49c33779f41fbf653a4e63bacf747453c1d27645fb2075e47144a979f1e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # Changelog
2
2
 
3
3
  ## master (unreleased)
4
+
5
+ ## 0.3.0 (2025-01-22)
6
+ ### New features
7
+
8
+ * [#beb193a](https://github.com/ivan05almeida/easy_changelog/commit/beb193a): Add release count method. ([@ivan05almeida][])
9
+ * [#1623408](https://github.com/ivan05almeida/easy_changelog/commit/1623408): Allow custom body entry. ([@ivan05almeida][])
10
+
11
+ ## 0.2.0 (2025-01-22)
4
12
  ### New features
5
13
 
6
14
  * [#b0faf01](https://github.com/ivan05almeida/easy_changelog/commit/b0faf01): Initialize EasyChangelog gem. ([@ivan05almeida][])
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- easy_changelog (0.2.0)
4
+ easy_changelog (0.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -11,6 +11,7 @@ class EasyChangelog
11
11
 
12
12
  opts.banner = "Usage: rake changelog:#{type} [options]"
13
13
 
14
+ opts.on('-b', '--body=ARG', 'Changelog Body Entry') { |arg| options[:body] = arg }
14
15
  opts.on('-r', '--ref-id=ARG', 'Ref ID') { |arg| options[:ref_id] = arg }
15
16
  opts.on('-R', '--ref-type=ARG', 'Ref type (issues|pull|commit)') { |arg| options[:ref_type] = arg }
16
17
  opts.on('-t', '--task-id=ARG', 'Task ID') { |arg| options[:task_id] = arg }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class EasyChangelog
4
- VERSION = '0.2.0'
4
+ VERSION = '0.3.0'
5
5
  end
@@ -43,6 +43,10 @@ class EasyChangelog
43
43
  def read_entries
44
44
  entry_paths.to_h { |path| [path, File.read(path)] }
45
45
  end
46
+
47
+ def release_count(pattern)
48
+ File.read(EasyChangelog.configuration.changelog_filename).scan(pattern).size
49
+ end
46
50
  end
47
51
 
48
52
  attr_reader :header, :entries
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_changelog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan de Paula Almeida Filho