rtlsdr 0.1.2 → 0.1.6
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 +36 -0
- data/Rakefile +45 -32
- data/lib/rtlsdr/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6cf077ab3bad36078506e7669f9f028f5673d9e4fa7ed42fef23328f50a00b7
|
4
|
+
data.tar.gz: bcad8fabea37fdc5a8c8003651e96d7e08723813189772954b2963e11a65b1c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33fe75344366b76dea1ffe5b8e5e65ac32828c9b33f010bd9c86e125f459b51c04be18e18c02e54cb2a14defa1bf77b6beeb008bfab041c1c9aaa0ea218c373f
|
7
|
+
data.tar.gz: 1a23aff4149a587d8249b3e39d88ec7fdb0a18929fafe2270c79efb72d31749e9289ef4c845ab33e16c6d834e3f4ac119193e10ffebaca6f7394e460e0c8777f
|
data/CHANGELOG.md
CHANGED
@@ -2,14 +2,49 @@
|
|
2
2
|
|
3
3
|
## [Unreleased]
|
4
4
|
|
5
|
+
## [0.1.6] - 2025-06-07
|
6
|
+
|
7
|
+
### Added
|
8
|
+
|
9
|
+
NA
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
|
13
|
+
Rubocop
|
14
|
+
|
15
|
+
### Fixed
|
16
|
+
|
17
|
+
NA
|
18
|
+
|
19
|
+
## [0.1.5] - 2025-06-07
|
20
|
+
|
21
|
+
No changes
|
22
|
+
|
23
|
+
|
24
|
+
## [0.1.4] - 2025-06-07
|
25
|
+
|
26
|
+
No changes
|
27
|
+
|
28
|
+
|
29
|
+
## [0.1.3] - 2025-06-07
|
30
|
+
|
31
|
+
No changes
|
32
|
+
|
33
|
+
|
5
34
|
## [0.1.2] - 2025-06-07
|
6
35
|
|
7
36
|
### Added
|
8
37
|
|
38
|
+
Docs
|
39
|
+
|
9
40
|
### Changed
|
10
41
|
|
42
|
+
NA
|
43
|
+
|
11
44
|
### Fixed
|
12
45
|
|
46
|
+
NA
|
47
|
+
|
13
48
|
|
14
49
|
## [0.1.1] - 2025-06-07
|
15
50
|
|
@@ -25,6 +60,7 @@ NA
|
|
25
60
|
|
26
61
|
NA
|
27
62
|
|
63
|
+
|
28
64
|
## [0.1.0] - 2025-06-07
|
29
65
|
|
30
66
|
- Initial release
|
data/Rakefile
CHANGED
@@ -7,6 +7,8 @@ require "rubocop/rake_task"
|
|
7
7
|
require "rdoc/task"
|
8
8
|
require "yard"
|
9
9
|
|
10
|
+
# rubocop:disable Metrics/BlockLength
|
11
|
+
|
10
12
|
RSpec::Core::RakeTask.new(:spec)
|
11
13
|
|
12
14
|
RuboCop::RakeTask.new
|
@@ -169,20 +171,27 @@ end
|
|
169
171
|
desc "Compile native extensions (depends on librtlsdr)"
|
170
172
|
task compile: :build_librtlsdr
|
171
173
|
|
174
|
+
desc "Bump version, update CHANGELOG, commit, tag, and push"
|
172
175
|
task :publish_release do
|
173
|
-
desc "Bump version, update CHANGELOG, commit, tag, and push"
|
174
|
-
puts "This task will bump the version, update CHANGELOG.md, commit the changes, create a git tag, and push everything to the remote repository."
|
175
176
|
puts "Make sure you have committed all your changes before running this task."
|
176
177
|
puts "Do you want to continue? (yes/no)"
|
178
|
+
|
177
179
|
answer = $stdin.gets.chomp.downcase
|
178
180
|
if answer == "yes"
|
179
181
|
Rake::Task["version:patch"].invoke
|
180
|
-
|
182
|
+
|
183
|
+
# Read the updated version from file since RTLSDR::VERSION is cached
|
184
|
+
version_content = File.read("lib/rtlsdr/version.rb")
|
185
|
+
new_version = version_content.match(/VERSION = "([^"]+)"/)[1]
|
186
|
+
|
187
|
+
puts "Hit enter when you've updated the CHANGELOG"
|
188
|
+
$stdin.gets.chomp.downcase
|
189
|
+
|
181
190
|
puts "Committing changes..."
|
182
191
|
system("git add -A")
|
183
|
-
system("git commit -m 'Bump version to #{
|
192
|
+
system("git commit -m 'Bump version to #{new_version}'")
|
184
193
|
puts "Creating git tag..."
|
185
|
-
system("git tag v#{
|
194
|
+
system("git tag v#{new_version}")
|
186
195
|
puts "Pushing changes and tags to remote repository..."
|
187
196
|
system("git push && git push --tags")
|
188
197
|
puts "Release process completed successfully!"
|
@@ -249,34 +258,38 @@ def bump_version(type) # rubocop:disable Metrics/AbcSize,Metrics/MethodLength
|
|
249
258
|
new_content = content.gsub(/VERSION = "#{Regexp.escape(current_version)}"/, %(VERSION = "#{new_version}"))
|
250
259
|
File.write(version_file, new_content)
|
251
260
|
|
261
|
+
# Update Gemfile.lock if it exists
|
262
|
+
if File.exist?("Gemfile.lock")
|
263
|
+
gemfile_lock = File.read("Gemfile.lock")
|
264
|
+
updated_gemfile_lock = gemfile_lock.gsub(/rtlsdr \(#{Regexp.escape(current_version)}\)/, "rtlsdr (#{new_version})")
|
265
|
+
File.write("Gemfile.lock", updated_gemfile_lock)
|
266
|
+
puts "Updated Gemfile.lock"
|
267
|
+
end
|
268
|
+
|
252
269
|
puts "Version bumped from #{current_version} to #{new_version}"
|
253
270
|
|
254
271
|
# Update CHANGELOG if it exists
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
puts "Don't forget to:"
|
278
|
-
puts "1. Update CHANGELOG.md with your changes"
|
279
|
-
puts "2. Commit your changes: git add -A && git commit -m 'Bump version to #{new_version}'"
|
280
|
-
puts "3. Create a git tag: git tag v#{new_version}"
|
281
|
-
puts "4. Push changes: git push && git push --tags"
|
272
|
+
return unless File.exist?("CHANGELOG.md")
|
273
|
+
|
274
|
+
changelog = File.read("CHANGELOG.md")
|
275
|
+
date = Time.now.strftime("%Y-%m-%d")
|
276
|
+
|
277
|
+
# Add new version entry at the top after the header
|
278
|
+
new_entry = "\n## [#{new_version}] - #{date}\n\n### Added\n\n### Changed\n\n### Fixed\n\n"
|
279
|
+
|
280
|
+
updated_changelog = if changelog.include?("## [Unreleased]")
|
281
|
+
# Insert after Unreleased section
|
282
|
+
changelog.sub(/(## \[Unreleased\].*?\n)/, "\\1#{new_entry}")
|
283
|
+
elsif changelog.include?("# Changelog")
|
284
|
+
# Insert after main header
|
285
|
+
changelog.sub(/(# Changelog\s*\n)/, "\\1#{new_entry}")
|
286
|
+
else
|
287
|
+
# Prepend to file if no standard structure
|
288
|
+
"# Changelog#{new_entry}#{changelog}"
|
289
|
+
end
|
290
|
+
|
291
|
+
File.write("CHANGELOG.md", updated_changelog)
|
292
|
+
puts "Updated CHANGELOG.md with new version entry"
|
282
293
|
end
|
294
|
+
|
295
|
+
# rubocop:enable Metrics/BlockLength
|
data/lib/rtlsdr/version.rb
CHANGED