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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/toys/release/version.rb +1 -1
- data/toys/.lib/toys/release/version_rb_file.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 573b7d3f7188a3f500acad829f4a1ff7b638659a7ab599d2aee0ec5f2658eec7
|
|
4
|
+
data.tar.gz: a704f1f772e03130705f2ce6d508936fbd1158a1b8d18c30f6f9e2ce2091d403
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ed1092a3679da88cc40525e692100388578f9433c38e21863dcbcbb2ecacffc7cc7b24ff7fbb7531d4a49ba115399d66c2a517c8e9de14b26e9fa759414e2256
|
|
7
|
+
data.tar.gz: e0c3aa955c45e64676e1f516f885b8f8bc4adb4ca147109b98ee805908c17593813bc51df3dc9bce844740fce1d76b2070b27e17bba8b0e64f0ef9d70dec35e3
|
data/CHANGELOG.md
CHANGED
data/lib/toys/release/version.rb
CHANGED
|
@@ -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.
|
|
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.
|
|
105
|
-
source_code_uri: https://github.com/dazuma/toys/tree/toys-release/v0.8.
|
|
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.
|
|
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.
|
|
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: []
|