speculate_about 1.1.1 → 1.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: 7868260e0662a461c5c24efa28c175ded0562772e8d6da88a434dcbc323ef494
4
- data.tar.gz: dffa0f2475fc381275a1d4090e3872b9f38ca199c6bd69a78e8ac229a614b326
3
+ metadata.gz: 48c21c25fe1599785a21e240b3107949e96680e1b616ed47d255afeeae9b8bce
4
+ data.tar.gz: 70023a2536e80c753855da7dc337cbc2981cb6489a72f51558666d1700b0bbae
5
5
  SHA512:
6
- metadata.gz: d59efce2df52aaf3a3e7185c73fdd8969132a5b357f6ec0b7bf589c1433c51a69d44d77b914a5ba284500bbf363531707ecd0f623f1e7e53fa101fb2c9308600
7
- data.tar.gz: 4043d9e4922d63202b29efee2aabfea64367901ebaca7fc9e58da0436bbd202798bd335864e544c3029f57b8a8af2e9eb303cec9a6d24e871f850142c5e98e7b
6
+ metadata.gz: c3d1be4088fe5633e85915a8b3e4ddd251de2e6ec06b907c0aa152532c5d20f1c97a94deda385d442e8fe07df8484b0463e3eeba3e23c726067acbe7b947607c
7
+ data.tar.gz: b9623d982ccb9d1138b15553de712a913624f78879c3260b0ebef407999c4fb56f22e4426b39c780d9d03b099fa1e7b75dcbe2a6317c9978048fc096cb88b1a7
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Speculations
4
- VERSION = "1.1.1"
4
+ VERSION = "1.1.2"
5
5
  end
6
6
  # SPDX-License-Identifier: AGPL-3.0-or-later
data/lib/speculations.rb CHANGED
@@ -35,7 +35,11 @@ module Speculations extend self
35
35
  def _compile(infile:, outfile:, debug:)
36
36
  ast = Speculations::Parser.new.parse_from_file(infile, debug:)
37
37
  code = _decorated_ast_code ast, infile
38
- File.write(outfile, code.join("\n")) if code
38
+ if code
39
+ File.write(outfile, code.join("\n"))
40
+ else
41
+ debug__(msg: "not writing #{outfile}, there were no speculations in #{infile}", debug:)
42
+ end
39
43
  end
40
44
 
41
45
  def _decorated_ast_code ast, filename
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: speculate_about
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Dober
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-06-02 00:00:00.000000000 Z
10
+ date: 2025-06-11 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: Allows Markdown or other text files to be used as literal specs, à la
13
13
  Elixir doctest, but from any file.