rtlsdr 0.1.1 → 0.1.5
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 +31 -0
- data/Rakefile +61 -27
- 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: fc10ea1776caf6a595417bf67dae01f41305730525725fc2cc252fb25936ae69
|
4
|
+
data.tar.gz: 4961a3f842c1eaa110e4d441280da741e823009eabd2f1506761be97c89b2639
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7aaa1402399c7730e3f089387514873c345e52dfa6e854625b8b217a51d539131e164dd6a40eb990d4e236859d2c413cd148379bf25d86995ab100eb6faf839
|
7
|
+
data.tar.gz: ebd50fe3f4447894e6b9a6334c2f5ab47ac7288f1e5583515fa02d62e2ac4c4f1d7c2e3d337e145627e2d1a3ccfc28bee7bf2c3e79ed0758c51c8fb87813cdbb
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,36 @@
|
|
2
2
|
|
3
3
|
## [Unreleased]
|
4
4
|
|
5
|
+
## [0.1.5] - 2025-06-07
|
6
|
+
|
7
|
+
No changes
|
8
|
+
|
9
|
+
|
10
|
+
## [0.1.4] - 2025-06-07
|
11
|
+
|
12
|
+
No changes
|
13
|
+
|
14
|
+
|
15
|
+
## [0.1.3] - 2025-06-07
|
16
|
+
|
17
|
+
No changes
|
18
|
+
|
19
|
+
|
20
|
+
## [0.1.2] - 2025-06-07
|
21
|
+
|
22
|
+
### Added
|
23
|
+
|
24
|
+
Docs
|
25
|
+
|
26
|
+
### Changed
|
27
|
+
|
28
|
+
NA
|
29
|
+
|
30
|
+
### Fixed
|
31
|
+
|
32
|
+
NA
|
33
|
+
|
34
|
+
|
5
35
|
## [0.1.1] - 2025-06-07
|
6
36
|
|
7
37
|
### Added
|
@@ -16,6 +46,7 @@ NA
|
|
16
46
|
|
17
47
|
NA
|
18
48
|
|
49
|
+
|
19
50
|
## [0.1.0] - 2025-06-07
|
20
51
|
|
21
52
|
- Initial release
|
data/Rakefile
CHANGED
@@ -169,6 +169,38 @@ end
|
|
169
169
|
desc "Compile native extensions (depends on librtlsdr)"
|
170
170
|
task compile: :build_librtlsdr
|
171
171
|
|
172
|
+
desc "Bump version, update CHANGELOG, commit, tag, and push"
|
173
|
+
task :publish_release do
|
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
|
+
puts "Make sure you have committed all your changes before running this task."
|
176
|
+
puts "Do you want to continue? (yes/no)"
|
177
|
+
|
178
|
+
answer = $stdin.gets.chomp.downcase
|
179
|
+
if answer == "yes"
|
180
|
+
Rake::Task["version:patch"].invoke
|
181
|
+
|
182
|
+
# Read the updated version from file since RTLSDR::VERSION is cached
|
183
|
+
version_content = File.read("lib/rtlsdr/version.rb")
|
184
|
+
new_version = version_content.match(/VERSION = "([^"]+)"/)[1]
|
185
|
+
|
186
|
+
puts "Hit enter when you've updated the CHANGELOG"
|
187
|
+
$stdin.gets.chomp.downcase
|
188
|
+
|
189
|
+
puts "Committing changes..."
|
190
|
+
system("git add -A")
|
191
|
+
system("git commit -m 'Bump version to #{new_version}'")
|
192
|
+
puts "Creating git tag..."
|
193
|
+
system("git tag v#{new_version}")
|
194
|
+
puts "Pushing changes and tags to remote repository..."
|
195
|
+
system("git push && git push --tags")
|
196
|
+
puts "Release process completed successfully!"
|
197
|
+
|
198
|
+
Rake::Task["release"].invoke
|
199
|
+
else
|
200
|
+
puts "Release process aborted."
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
172
204
|
# Version management tasks
|
173
205
|
namespace :version do
|
174
206
|
desc "Bump patch version (x.y.z -> x.y.z+1)"
|
@@ -225,34 +257,36 @@ def bump_version(type) # rubocop:disable Metrics/AbcSize,Metrics/MethodLength
|
|
225
257
|
new_content = content.gsub(/VERSION = "#{Regexp.escape(current_version)}"/, %(VERSION = "#{new_version}"))
|
226
258
|
File.write(version_file, new_content)
|
227
259
|
|
260
|
+
# Update Gemfile.lock if it exists
|
261
|
+
if File.exist?("Gemfile.lock")
|
262
|
+
gemfile_lock = File.read("Gemfile.lock")
|
263
|
+
updated_gemfile_lock = gemfile_lock.gsub(/rtlsdr \(#{Regexp.escape(current_version)}\)/, "rtlsdr (#{new_version})")
|
264
|
+
File.write("Gemfile.lock", updated_gemfile_lock)
|
265
|
+
puts "Updated Gemfile.lock"
|
266
|
+
end
|
267
|
+
|
228
268
|
puts "Version bumped from #{current_version} to #{new_version}"
|
229
269
|
|
230
270
|
# Update CHANGELOG if it exists
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
puts "Don't forget to:"
|
254
|
-
puts "1. Update CHANGELOG.md with your changes"
|
255
|
-
puts "2. Commit your changes: git add -A && git commit -m 'Bump version to #{new_version}'"
|
256
|
-
puts "3. Create a git tag: git tag v#{new_version}"
|
257
|
-
puts "4. Push changes: git push && git push --tags"
|
271
|
+
return unless File.exist?("CHANGELOG.md")
|
272
|
+
|
273
|
+
changelog = File.read("CHANGELOG.md")
|
274
|
+
date = Time.now.strftime("%Y-%m-%d")
|
275
|
+
|
276
|
+
# Add new version entry at the top after the header
|
277
|
+
new_entry = "\n## [#{new_version}] - #{date}\n\n### Added\n\n### Changed\n\n### Fixed\n\n"
|
278
|
+
|
279
|
+
updated_changelog = if changelog.include?("## [Unreleased]")
|
280
|
+
# Insert after Unreleased section
|
281
|
+
changelog.sub(/(## \[Unreleased\].*?\n)/, "\\1#{new_entry}")
|
282
|
+
elsif changelog.include?("# Changelog")
|
283
|
+
# Insert after main header
|
284
|
+
changelog.sub(/(# Changelog\s*\n)/, "\\1#{new_entry}")
|
285
|
+
else
|
286
|
+
# Prepend to file if no standard structure
|
287
|
+
"# Changelog#{new_entry}#{changelog}"
|
288
|
+
end
|
289
|
+
|
290
|
+
File.write("CHANGELOG.md", updated_changelog)
|
291
|
+
puts "Updated CHANGELOG.md with new version entry"
|
258
292
|
end
|
data/lib/rtlsdr/version.rb
CHANGED