rake-appraisal 0.1.1 → 0.1.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 +7 -0
- data/lib/rake/appraisal/task.rb +12 -3
- data/lib/rake/appraisal/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: b32edbda2469bb28eed7b2e757ffaf5d8c80067ec7c319e12c3101c1b641e5a5
|
|
4
|
+
data.tar.gz: 043470a38777b5128a5bc2e2987a07b8073542f09066a60ad4d336ed327c30df
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd787ad34f9faeb0646ceacd4149c6b7651fb08c11f6f25c4d0ebd42033022758e4fdfd6e9b66f5acdac12d14300f2ea4d38eb5b0b68843cbd4deda8c10887e0
|
|
7
|
+
data.tar.gz: bbdd23d9905f6c76e66e6adf5dbe11fb0e05aed17c67ee47bd6e6536b1a5bb5ec1838f1e6ff4419dfa453cd41f855bced71f1257062a4fc73f4c8b94b83fb9a5
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.2 - 2026-10-23
|
|
4
|
+
|
|
5
|
+
This release fixes a git usage fumble that left the intended fix on a separate
|
|
6
|
+
branch.
|
|
7
|
+
|
|
8
|
+
* Really fix issues that made the rake task unusable
|
|
9
|
+
|
|
3
10
|
## 0.1.1 - 2026-10-23
|
|
4
11
|
|
|
5
12
|
* Fix issues that made the rake task unusable
|
data/lib/rake/appraisal/task.rb
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require "rake/tasklib"
|
|
4
|
+
require "appraisal"
|
|
4
5
|
|
|
5
6
|
module Rake
|
|
6
7
|
module Appraisal
|
|
@@ -25,9 +26,10 @@ module Rake
|
|
|
25
26
|
def define_task
|
|
26
27
|
desc "Check appraisals"
|
|
27
28
|
task :check do
|
|
28
|
-
Appraisal::AppraisalFile.each do |appraisal|
|
|
29
|
-
existing =
|
|
29
|
+
::Appraisal::AppraisalFile.each do |appraisal|
|
|
30
|
+
existing = actual_content_for(appraisal)
|
|
30
31
|
expected = expected_content_for(appraisal)
|
|
32
|
+
|
|
31
33
|
unless existing.chomp == expected.chomp
|
|
32
34
|
raise "Outdated appraisal: #{appraisal.name}"
|
|
33
35
|
end
|
|
@@ -35,8 +37,15 @@ module Rake
|
|
|
35
37
|
end
|
|
36
38
|
end
|
|
37
39
|
|
|
40
|
+
def actual_content_for(appraisal)
|
|
41
|
+
path = appraisal.gemfile_path
|
|
42
|
+
raise "Appraisal has not been generated: #{appraisal.name}" unless File.exist? path
|
|
43
|
+
|
|
44
|
+
File.read(path)
|
|
45
|
+
end
|
|
46
|
+
|
|
38
47
|
def expected_content_for(appraisal)
|
|
39
|
-
signature = Appraisal::Customize.heading || "This file was generated by Appraisal"
|
|
48
|
+
signature = ::Appraisal::Customize.heading || "This file was generated by Appraisal"
|
|
40
49
|
header = appraisal.send :comment_lines, signature
|
|
41
50
|
body = appraisal.send :quoted_gemfile
|
|
42
51
|
[header, body].join("\n\n")
|