gem_toys 0.7.0 → 0.7.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: 1b8a68d7567f6698b428f46a2f69694259e066412bedb21b55eda4585b76c70b
4
- data.tar.gz: 74cfd96138c6e0a10eacec2235500f775d5f02b0f3ab215f88b0c911a8cf33a2
3
+ metadata.gz: 061a23d19180942f3cb7ca6f4b43bfc5e48b5247e1ca45ec77969c0308cdf3aa
4
+ data.tar.gz: b57ac1d9e07c4a7f72ffaa3ff0e9d366160a47ffb2695232a7b928821ee0484c
5
5
  SHA512:
6
- metadata.gz: 98da90d85c1cb6f361bdef8d7a0ec42d5c0ba500121f3fc9655dacb24f160f9a9c21599afb01bf9ed3672a954c9ef27df384e988b8ad382e505cb1bedb1e1cab
7
- data.tar.gz: d236a46c35fcedeb008aafbb4f1836e497c39d2b001b125634a60b114b555fd567b4236aa2294b50f708869a80dd416bf1998a585494c3854ba545128a0729a4
6
+ metadata.gz: cec712bb01c015ba34dde170c5d7d855f56008e7234da72df02d8ed342dd9eb458ee06d7e4175e473dad213bba8f0229ca356fbc28a16ef06b42fe92186ea1b6
7
+ data.tar.gz: 5f0475c31feef1a52e77f59f4e30965c55401baa04fc425ca5a8864e9d6c0900d85e5fa06eac8936e2b09af0c498651e013e513cc1138b03f30e638c2678f540
data/CHANGELOG.md CHANGED
@@ -2,8 +2,20 @@
2
2
 
3
3
  ## master (unreleased)
4
4
 
5
+ ## 0.7.1 (2021-03-04)
6
+
7
+ * Fix error about non-renamed `version` in one of aborts.
8
+ * Improve Regexp for date of existing release.
9
+ Catch only content inside the last parentheses.
10
+
5
11
  ## 0.7.0 (2021-03-04)
6
12
 
13
+ * Add `:changelog_file_name` option.
14
+ * Add `:version_tag_prefix` option.
15
+ * Change date format for `versions` tool.
16
+ * Add documentation about `:version_file_path` option.
17
+ * Split `release` tool into modules for RuboCop satisfaction.
18
+
7
19
  ## 0.6.1 (2021-02-10)
8
20
 
9
21
  * Gently abort when `unreleased_title` not found.
@@ -15,9 +15,9 @@ module GemToys
15
15
  existing_line = @changelog_lines.find { |line| line.start_with? "## #{@new_version} " }
16
16
 
17
17
  if existing_line
18
- return if (existing_date = existing_line.match(/\((.*)\)/)[1]) == @today
18
+ return if (existing_date = existing_line.scan(/\(([^()]+)\)/).last.first) == @today
19
19
 
20
- abort "There is already #{version} version with date #{existing_date}"
20
+ abort "There is already #{new_version} version with date #{existing_date}"
21
21
  end
22
22
 
23
23
  File.write changelog_file_path, new_changelog_content
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GemToys
4
- VERSION = '0.7.0'
4
+ VERSION = '0.7.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_toys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov