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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a09f5aee74914d27c3ecf2f24b838c43bc36f4febcdc5624c74aa83b51dfd72f
4
- data.tar.gz: 272ef131c691b7f4f310454ae63811856870dddd9315cc7de0d3a26af3534ed3
3
+ metadata.gz: b32edbda2469bb28eed7b2e757ffaf5d8c80067ec7c319e12c3101c1b641e5a5
4
+ data.tar.gz: 043470a38777b5128a5bc2e2987a07b8073542f09066a60ad4d336ed327c30df
5
5
  SHA512:
6
- metadata.gz: d6430db502fdb15edfceca6bfce547e4038c2fc4fad2fab8965fe5850cbeb48204affa4e4e4c74e1503845b3ecfbe097dc0403cfc805533ea01becd652f7e9dc
7
- data.tar.gz: 488b3388d397c9536b6cd5bb5e0e3c95400a1a7acfd9ccd6175017ad775cb7af5f5d3b73d9188abcd79b55a8c83575f586ad019286bd4ab1c20f1fbad43f1aa9
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
@@ -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 = File.read(appraisal.gemfile_path)
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")
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rake
4
4
  module Appraisal
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake-appraisal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matijs van Zuijlen