gotsha 0.2.7 → 0.2.9

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: 07ff11747b5826264e7e769a5fc54060e5dada3ee863486845ade8a494582e77
4
- data.tar.gz: 7adf1726a9918a61df23672bb8fc61de58cdc721b65962759280012256b0fc40
3
+ metadata.gz: 75f5972d5843df96d271b5991679b69fbe8684d35433e7134d247cbdb6b5dcef
4
+ data.tar.gz: c1af3ac09dc8cf1498da4662d59489e54c703aa6b87a77bf2be45a2a87f57fa8
5
5
  SHA512:
6
- metadata.gz: 27e90c032e3907111be9a5ca668afbbf10cf79e0494e139348e764a5adecc49b217f158269e95e97822aa29ad30d1257e6cb43f2a98715617fca6e3c7065dff8
7
- data.tar.gz: ce208e256b534d47e02414cc09d0d2765df5ad4cc2e7ab20a15740dcfbd154586bb287e8263ee64b77ee7486d76f0f576a5070dea5f2c4486ca4b58e07a29e9e
6
+ metadata.gz: c2acc7f6017de1a52b97d641f21f59777564e2c9e69ceb8a8734f64203b1b0adb403231501e27c5d9a2a8f4e6e6cd71168af260aca9ce153bf2254e88016b986
7
+ data.tar.gz: eca5075f3bc54971bf47ce44322938f5acc719818f93d50ccb4c87f644823f388bb66fecc40077fed77b1e73bdacaa37123657d2129275c750b48b5dc94914c4
@@ -1,7 +1,5 @@
1
1
  #!/usr/bin/env bash
2
2
  set -euo pipefail
3
3
 
4
- grep -qE 'pre_push_tests\s*=\s*true' .gotsha/config.toml || exit 0
5
-
6
- exe/gotsha status || exe/gotsha test
4
+ grep -qE 'pre_push_tests\s*=\s*true' .gotsha/config.toml && (exe/gotsha status || exe/gotsha test)
7
5
  exe/gotsha push
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [0.2.9] - 2025-10-15
2
+
3
+ - Add some commented out GT Action code to quickly show how to disable for PR drafts
4
+
5
+ ## [0.2.8] - 2025-10-15
6
+
7
+ - Fix pre-push hook (push every time, even when disabled)
8
+ - Use `gotsha fetch` in GH Action
9
+
1
10
  ## [0.2.7] - 2025-10-14
2
11
 
3
12
  - Ensure notes fetching always works by using `--force`
data/README.md CHANGED
@@ -5,9 +5,9 @@ Pushing untested commits? Gotsha!
5
5
  ```bash
6
6
  gem install gotsha # or add `gem "gotsha"` to you Gemfile
7
7
 
8
- gotsha
8
+ gotsha init
9
+ gotsha configure # this will open the config file; it's short and very important, so please, read it :-)
9
10
  ```
10
- Then just follow the prompts — Gotsha will guide you through the setup. It won't take more than 3 minutes!
11
11
 
12
12
  If you got stuck somewhere, you can always use `gotsha help`.
13
13
 
@@ -1,7 +1,5 @@
1
1
  #!/usr/bin/env bash
2
2
  set -euo pipefail
3
3
 
4
- grep -qE 'pre_push_tests\s*=\s*true' .gotsha/config.toml || exit 0
5
-
6
- gotsha status || gotsha test
4
+ grep -qE 'pre_push_tests\s*=\s*true' .gotsha/config.toml && (gotsha status || gotsha test)
7
5
  gotsha push
@@ -2,6 +2,8 @@ name: Gotsha
2
2
 
3
3
  on:
4
4
  pull_request:
5
+ # Uncomment line below to run Gotsha only when asking for review (ie. do not run when PR is draft)
6
+ # types: [ready_for_review]
5
7
 
6
8
  jobs:
7
9
  verify:
@@ -20,7 +22,7 @@ jobs:
20
22
  run: gem install gotsha
21
23
 
22
24
  - name: Fetch Gotsha notes
23
- run: git fetch origin 'refs/notes/gotsha:refs/notes/gotsha'
25
+ run: GOTSHA_CI=1 gotsha fetch
24
26
 
25
27
  - name: Show tests output
26
28
  run: GOTSHA_CI=1 gotsha show
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gotsha
4
- VERSION = "0.2.7"
4
+ VERSION = "0.2.9"
5
5
  end
data/web/index.html CHANGED
@@ -61,6 +61,14 @@
61
61
  .card{
62
62
  border:1px solid var(--border);border-radius:14px;padding:16px;background:#0b111b75
63
63
  }
64
+ pre {
65
+ overflow-x: auto;
66
+ white-space: pre; /* don't wrap */
67
+ font-size: 14px;
68
+ padding: 12px;
69
+ border-radius: 8px;
70
+ background: #0b111b;
71
+ }
64
72
  .card h3{margin:0 0 6px 0;font-size:18px}
65
73
  .foot{margin-top:24px;color:var(--muted);font-size:13px}
66
74
  /* subtle animations */
@@ -106,17 +114,15 @@
106
114
 
107
115
  <section class="card" id="install" aria-labelledby="install-title">
108
116
  <h2 id="install-title">Install</h3>
109
- <p>Gotsha is distrubuted as a Ruby gem, so you need to
117
+ <o>Gotsha is distrubuted as a Ruby gem, so you need to
110
118
  have <strong>Ruby</strong> working in your system. Apart from that, the only
111
119
  other dependency is <strong>Git</strong>.</p>
112
- <pre><code># Install manually; language agnostic
113
- gem install gotsha
114
-
115
- # Or install via your Gemfile in Ruby projects
116
- gem 'gotsha'
120
+ <p>Set it up by following commands:</p>
121
+ <pre><code style="font-weight: lighter;">gem install gotsha <span style="color: gray;"># or add `gem "gotsha"` to you Gemfile</span>
122
+ gotsha init
123
+ gotsha configure <span style="color: gray;"># this will open the config file; it's short and very important, so please, read it :-)</span>
117
124
  </code></pre>
118
- <p>Then just go to your project folder, run <code>gotsha</code> command, and follow the prompts — Gotsha will guide you through the setup. It won't take more than 3 minutes!</p>
119
- <p>If you got stuck somewhere, you can always use <code>gotsha help</code>.</p>
125
+ <p>Gotsha will guide you through the setup it won't take more than 3 minutes. If you still got stuck somewhere, you can always use <code>gotsha help</code>.</p>
120
126
  </section>
121
127
 
122
128
  <section class="card">
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gotsha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitek Meloun