blackstart 0.5.0 → 0.6.0

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.
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2024 Aaron Beckerman
1
+ Copyright (c) 2024-2025 Aaron Beckerman
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of
4
4
  this software and associated documentation files (the "Software"), to deal in
data/lib/blackstart.rb CHANGED
@@ -20,9 +20,9 @@ module Blackstart
20
20
  def self.vet
21
21
  yield
22
22
  nil
23
- rescue ::StandardError
23
+ rescue ::StandardError => e
24
24
  # Like IO#puts, separate lines with a line feed character rather than $\.
25
- ["#{$!.class}: #{$!.message}"].concat($!.backtrace || []).join "\n"
25
+ ["#{e.class}: #{e.message}"].concat(e.backtrace || []).join "\n"
26
26
  end
27
27
 
28
28
  ##
@@ -106,6 +106,9 @@ fail "" unless nil.equal? Blackstart.vet { true }
106
106
  # class.
107
107
  fail "" unless Blackstart::Scratchpad.equal? Blackstart::Scratchpad.new.class
108
108
 
109
+ # Blackstart::Scratchpad should not be frozen.
110
+ fail "" if Blackstart::Scratchpad.frozen?
111
+
109
112
  # A new scratchpad should have no instance variables.
110
113
  fail "" unless 0 == Blackstart::Scratchpad.new.instance_variables.length
111
114
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blackstart
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 5
8
+ - 6
9
9
  - 0
10
- version: 0.5.0
10
+ version: 0.6.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aaron Beckerman
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2024-12-21 00:00:00 -08:00
18
+ date: 2025-05-16 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -30,7 +30,6 @@ extra_rdoc_files: []
30
30
  files:
31
31
  - LICENSE.txt
32
32
  - README.txt
33
- - blackstart.gemspec
34
33
  - lib/blackstart.rb
35
34
  - test/blackstart_test.rb
36
35
  has_rdoc: true
@@ -69,5 +68,5 @@ rubygems_version: 1.6.2
69
68
  signing_key:
70
69
  specification_version: 3
71
70
  summary: A small, subdued library for automated testing.
72
- test_files:
73
- - test/blackstart_test.rb
71
+ test_files: []
72
+
data/blackstart.gemspec DELETED
@@ -1,11 +0,0 @@
1
- Gem::Specification.new do |s|
2
- s.name = "blackstart"
3
- s.version = "0.5.0"
4
- s.authors = ["Aaron Beckerman"]
5
- s.summary = "A small, subdued library for automated testing."
6
- s.licenses = ["MIT"]
7
- s.required_ruby_version = ">= 1.8.7"
8
- s.files = ["LICENSE.txt", "README.txt", "blackstart.gemspec",
9
- "lib/blackstart.rb", "test/blackstart_test.rb"]
10
- s.test_files = ["test/blackstart_test.rb"]
11
- end