toys-release 0.8.1 → 0.8.2

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: 47ff25758499e3839e71107bc08db7e14ca27c25b20143139ad99c1155cddcdc
4
- data.tar.gz: 0b3d9c559e6a12d667ce6f9c590e34252b9683961ab53b31fd695d92ca17c224
3
+ metadata.gz: 573b7d3f7188a3f500acad829f4a1ff7b638659a7ab599d2aee0ec5f2658eec7
4
+ data.tar.gz: a704f1f772e03130705f2ce6d508936fbd1158a1b8d18c30f6f9e2ce2091d403
5
5
  SHA512:
6
- metadata.gz: ec452098715991d0ac13f0b46913a9f33181fbcdde149161c03c8a64520b664cdd99915001d3a8bc034e2723ee61553b478225e64a502f2c6e445e30108ec12b
7
- data.tar.gz: e5221ac9b7e80611db119c8bdb08175c14bb24437893d1c26216a91852900ec44aa935cb9d4d79300a0fdef9b456a6d09deea2affd36ff00a270b3ac0dc2ac44
6
+ metadata.gz: ed1092a3679da88cc40525e692100388578f9433c38e21863dcbcbb2ecacffc7cc7b24ff7fbb7531d4a49ba115399d66c2a517c8e9de14b26e9fa759414e2256
7
+ data.tar.gz: e0c3aa955c45e64676e1f516f885b8f8bc4adb4ca147109b98ee805908c17593813bc51df3dc9bce844740fce1d76b2070b27e17bba8b0e64f0ef9d70dec35e3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History
2
2
 
3
+ ### v0.8.2 / 2026-03-18
4
+
5
+ * FIXED: Tighten version constant regex
6
+
3
7
  ### v0.8.1 / 2026-03-12
4
8
 
5
9
  * FIXED: Prevent global index from clobbering local index when creating gh-pages for a non-monorepo
@@ -6,6 +6,6 @@ module Toys
6
6
  # Current version of the Toys release system.
7
7
  # @return [String]
8
8
  #
9
- VERSION = "0.8.1"
9
+ VERSION = "0.8.2"
10
10
  end
11
11
  end
@@ -50,7 +50,7 @@ module Toys
50
50
  #
51
51
  def update_version(version)
52
52
  @utils.log("Updating #{path} to set VERSION=#{version}")
53
- new_content = content.sub(/VERSION\s*=\s*(["'])(\d+(?:\.[a-zA-Z0-9]+)+)\1/,
53
+ new_content = content.sub(/(?<=\W)VERSION\s*=\s*(["'])(\d+(?:\.[a-zA-Z0-9]+)+)\1/,
54
54
  "VERSION = \\1#{version}\\1")
55
55
  ::File.write(path, new_content)
56
56
  self
@@ -64,7 +64,7 @@ module Toys
64
64
  # @return [nil] if no version was found
65
65
  #
66
66
  def self.current_version_from_content(content)
67
- match = /VERSION\s*=\s*(["'])(\d+(?:\.[a-zA-Z0-9]+)+)\1/.match(content)
67
+ match = /(?<=\W)VERSION\s*=\s*(["'])(\d+(?:\.[a-zA-Z0-9]+)+)\1/.match(content)
68
68
  match ? ::Gem::Version.new(match[2]) : nil
69
69
  end
70
70
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toys-release
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Azuma
@@ -101,10 +101,10 @@ homepage: https://github.com/dazuma/toys
101
101
  licenses:
102
102
  - MIT
103
103
  metadata:
104
- changelog_uri: https://dazuma.github.io/toys/gems/toys-release/v0.8.1/file.CHANGELOG.html
105
- source_code_uri: https://github.com/dazuma/toys/tree/toys-release/v0.8.1/toys-release
104
+ changelog_uri: https://dazuma.github.io/toys/gems/toys-release/v0.8.2/file.CHANGELOG.html
105
+ source_code_uri: https://github.com/dazuma/toys/tree/toys-release/v0.8.2/toys-release
106
106
  bug_tracker_uri: https://github.com/dazuma/toys/issues
107
- documentation_uri: https://dazuma.github.io/toys/gems/toys-release/v0.8.1
107
+ documentation_uri: https://dazuma.github.io/toys/gems/toys-release/v0.8.2
108
108
  rdoc_options: []
109
109
  require_paths:
110
110
  - lib
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
121
  requirements: []
122
- rubygems_version: 4.0.3
122
+ rubygems_version: 4.0.6
123
123
  specification_version: 4
124
124
  summary: Release system using GitHub Actions and Toys
125
125
  test_files: []