gotsha 0.2.7 → 0.2.8

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: c141f44322e5b490f725002cfeb08b78c6fdac86bd596311fdb9a80a553d2119
4
+ data.tar.gz: 8061d31df2234c3911c827bdf5592e9d25281187d36605ec5ab8a64c98a5a7f1
5
5
  SHA512:
6
- metadata.gz: 27e90c032e3907111be9a5ca668afbbf10cf79e0494e139348e764a5adecc49b217f158269e95e97822aa29ad30d1257e6cb43f2a98715617fca6e3c7065dff8
7
- data.tar.gz: ce208e256b534d47e02414cc09d0d2765df5ad4cc2e7ab20a15740dcfbd154586bb287e8263ee64b77ee7486d76f0f576a5070dea5f2c4486ca4b58e07a29e9e
6
+ metadata.gz: 6b52ac1560058e39dbe268e04fac7f0f9cf7b031c11fe448da1fc825d7a6b3b10611d7cacbdddad2d768848998a23c8467a3eef51662d51d05d4b919710b2e70
7
+ data.tar.gz: 2d574789ad564b58d86fa3de9dd647e449a5c8925cf715531b31cc22c20f64491f051f51b0e34c687b6ed4a4e5443f73cbc5f85d65db0dc1bfb788265c0f4398
@@ -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
7
- exe/gotsha push
4
+ grep -qE 'pre_push_tests\s*=\s*true' .gotsha/config.toml && (gotsha status || gotsha test)
5
+ gotsha push
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [0.2.8] - 2025-10-15
2
+
3
+ - Fix pre-push hook (push every time, even when disabled)
4
+ - Use `gotsha fetch` in GH Action
5
+
1
6
  ## [0.2.7] - 2025-10-14
2
7
 
3
8
  - 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
@@ -20,7 +20,7 @@ jobs:
20
20
  run: gem install gotsha
21
21
 
22
22
  - name: Fetch Gotsha notes
23
- run: git fetch origin 'refs/notes/gotsha:refs/notes/gotsha'
23
+ run: GOTSHA_CI=1 gotsha fetch
24
24
 
25
25
  - name: Show tests output
26
26
  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.8"
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.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitek Meloun