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 +4 -4
- data/lib/speculations/version.rb +1 -1
- data/lib/speculations.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48c21c25fe1599785a21e240b3107949e96680e1b616ed47d255afeeae9b8bce
|
4
|
+
data.tar.gz: 70023a2536e80c753855da7dc337cbc2981cb6489a72f51558666d1700b0bbae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3d1be4088fe5633e85915a8b3e4ddd251de2e6ec06b907c0aa152532c5d20f1c97a94deda385d442e8fe07df8484b0463e3eeba3e23c726067acbe7b947607c
|
7
|
+
data.tar.gz: b9623d982ccb9d1138b15553de712a913624f78879c3260b0ebef407999c4fb56f22e4426b39c780d9d03b099fa1e7b75dcbe2a6317c9978048fc096cb88b1a7
|
data/lib/speculations/version.rb
CHANGED
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
|
-
|
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.
|
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-
|
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.
|