markdown-run 0.2.0 → 0.2.1

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: 72c9c060b9169413ee686c9a4958b36b11d5271a4222d598bfe0c847364488e0
4
- data.tar.gz: 56bfea5eb072bfbf7db692a6df64c08e901f7a77551f2b17491a4a84201220fb
3
+ metadata.gz: 9118fa7e0d2838fe0201d314199cd8df7c1be394a962c0f15971a4cf8489875b
4
+ data.tar.gz: 8cb4c27814f03fb2afaba2b52c148df7c917e7764ed6de82ab8d9c63744c55f5
5
5
  SHA512:
6
- metadata.gz: f4b2c6aa7b3fec529749f56e4a64c186060097b94f64678c96742759d51f4b7dbb1d2014c98abb4ff047f8ba62ef15d1f32612e2b19cbdafa480664f3556a420
7
- data.tar.gz: a7bb6b114beaea5f0857534cee766f9dcb157ab39949f433a5965acb558996f30a3fcbd6a13a3df3a264ddf64b1115dab089af7b674b68195467b7a2e482ef5f
6
+ metadata.gz: a8221dae4563d208936a0b0f3783f40ec83a08ff5daf49159106af90f38130790031e692ecdea812685ee51bd17c67639d8c584a2c28e2ab5975359fdfea94db
7
+ data.tar.gz: eb2874f8cb94acc7cee3a735119bfe85163e2f378aea120353597393566bf4038100f71e3fec0bd93f08c09bac85db79299c398b8e713286fe4ff3853546638b
@@ -0,0 +1,19 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(ruby -e:*)",
5
+ "Bash(ruby -I lib -r markdown_run -e:*)",
6
+ "Bash(flog:*)",
7
+ "Bash(rake test:*)",
8
+ "Bash(bin/markdown-run:*)",
9
+ "Bash(exe/markdown-run:*)",
10
+ "Bash(cat:*)",
11
+ "Bash(for i in {1..3})",
12
+ "Bash(do echo \"Run $i:\" exe/markdown-run markdown-run-sample.md)",
13
+ "Bash(gem list:*)",
14
+ "Bash(rake:*)"
15
+ ],
16
+ "deny": [],
17
+ "ask": []
18
+ }
19
+ }
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.1]
4
+
5
+ - fix extra blank line with ruby blocks
6
+
7
+ ## [0.2.0]
8
+
9
+ - Refactor block options to be proper markdown
10
+
3
11
  ## [0.1.12] - 2025-06-04
4
12
 
5
13
  - Added `flamegraph` option for psql code blocks to generate PostgreSQL query execution plan flamegraphs as SVG images
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Markdown
4
4
  module Run
5
- VERSION = "0.2.0"
5
+ VERSION = "0.2.1"
6
6
  end
7
7
  end
data/lib/result_helper.rb CHANGED
@@ -122,7 +122,6 @@ module ResultHelper
122
122
  if ruby_style_result?(@current_block_lang)
123
123
  @output_lines << @current_code_content
124
124
  @output_lines << (closing_line || "```\n")
125
- @output_lines << "\n"
126
125
  end
127
126
  return
128
127
  end
@@ -5,35 +5,32 @@ And the result should be shown in a following codeblock
5
5
 
6
6
  ```ruby
7
7
  p "foo"
8
- ```
9
-
10
- ```ruby RESULT
11
- p "foo"
12
8
  # >> "foo"
13
9
  ```
14
10
 
11
+
15
12
  ```bash
16
13
  date
17
14
  ```
18
15
 
19
- ```RESULT
20
- Sun May 18 15:05:35 CEST 2025
16
+ ``` {result}
17
+ Fri Oct 17 02:39:33 PM CEST 2025
21
18
  ```
22
19
 
23
20
  ```zsh
24
21
  date
25
22
  ```
26
23
 
27
- ```RESULT
28
- Sun May 18 15:05:13 CEST 2025
24
+ ``` {result}
25
+ Fri Oct 17 02:39:33 PM CEST 2025
29
26
  ```
30
27
 
31
28
  ```sh
32
29
  date
33
30
  ```
34
31
 
35
- ```RESULT
36
- Sun May 18 15:07:05 CEST 2025
32
+ ``` {result}
33
+ Fri Oct 17 02:39:33 PM CEST 2025
37
34
  ```
38
35
 
39
36
  ```js
@@ -41,47 +38,7 @@ Sun May 18 15:07:05 CEST 2025
41
38
  console.log(3);
42
39
  ```
43
40
 
44
- ```RESULT
41
+ ``` {result}
45
42
  3
46
43
  ```
47
44
 
48
- ```psql
49
- \d
50
- ```
51
-
52
- ```RESULT
53
- public|ar_internal_metadata|table|aurelienbottazini
54
- public|schema_migrations|table|aurelienbottazini
55
- ```
56
-
57
- ```sqlite3
58
- .stats
59
- ```
60
-
61
- ```RESULT
62
- Memory Used: 147824 (max 147888) bytes
63
- Number of Outstanding Allocations: 169 (max 170)
64
- Number of Pcache Overflow Bytes: 4608 (max 4608) bytes
65
- Largest Allocation: 122400 bytes
66
- Largest Pcache Allocation: 4104 bytes
67
- Lookaside Slots Used: 34 (max 34)
68
- Successful lookaside attempts: 34
69
- Lookaside failures due to size: 0
70
- Lookaside failures due to OOM: 0
71
- Pager Heap Usage: 5632 bytes
72
- Page cache hits: 0
73
- Page cache misses: 0
74
- Page cache writes: 0
75
- Page cache spills: 0
76
- Schema Heap Usage: 0 bytes
77
- Statement Heap/Lookaside Usage: 0 bytes
78
- ```
79
-
80
- ```psql rerun flamegraph
81
- select 42 as answer;
82
- ```
83
-
84
- ```RESULT
85
- ![PostgreSQL Query Flamegraph](pg-flamegraph-20250604-222931.svg)
86
- ```
87
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdown-run
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aurélien Bottazini
@@ -103,6 +103,7 @@ executables:
103
103
  extensions: []
104
104
  extra_rdoc_files: []
105
105
  files:
106
+ - ".claude/settings.local.json"
106
107
  - ".rubocop.yml"
107
108
  - ".tool-versions"
108
109
  - CHANGELOG.md