tramway 2.1.3 → 2.1.3.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1499a2fac32ccc2bde7698f5a27e860b398241bac79ccaaa57e5c1daed7261e0
|
|
4
|
+
data.tar.gz: bbefbba5682e649affd877f94a83778bad6f0866002158b21f89bd0b9005ab17
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 93619c3b3adc9a585f95c710d073c33bbe6dfe36fb32e80e2acd47a7456439a5a5524b78145aaf440b6e263331fc62fe650267d6ce5cde212bcddaae8b06a18f
|
|
7
|
+
data.tar.gz: 62acddb7ccfdaad83c282c56f7b41968466250d6f7579ccbd7d4b5606e1ab286470e5e916d7dcb8c2ff673e7cb2894f9d0e7dfaa017075b1bb29e65aae7754be
|
data/config/tailwind.config.js
CHANGED
|
@@ -118,6 +118,7 @@ module.exports = {
|
|
|
118
118
|
'whitespace-nowrap',
|
|
119
119
|
'h-fit',
|
|
120
120
|
'gap-1',
|
|
121
|
+
'h-10',
|
|
121
122
|
|
|
122
123
|
// === Button color presets ===
|
|
123
124
|
'bg-gray-500',
|
|
@@ -148,6 +149,7 @@ module.exports = {
|
|
|
148
149
|
|
|
149
150
|
'bg-red-500',
|
|
150
151
|
'bg-red-600',
|
|
152
|
+
'bg-red-700',
|
|
151
153
|
'hover:bg-red-700',
|
|
152
154
|
'hover:bg-red-800',
|
|
153
155
|
|
|
@@ -177,7 +179,6 @@ module.exports = {
|
|
|
177
179
|
'disabled:cursor-not-allowed',
|
|
178
180
|
'mb-4',
|
|
179
181
|
'bg-red-500',
|
|
180
|
-
'hover:bg-red-700',
|
|
181
182
|
|
|
182
183
|
// === Multiselect dropdown positioning ===
|
|
183
184
|
'absolute',
|
|
@@ -59,7 +59,9 @@ module Tramway
|
|
|
59
59
|
|
|
60
60
|
uri = URI.parse(agents_template_url)
|
|
61
61
|
response = Net::HTTP.get_response(uri)
|
|
62
|
-
|
|
62
|
+
body = response.body.to_s
|
|
63
|
+
body = body.dup.force_encoding(Encoding::UTF_8)
|
|
64
|
+
@agents_template_body = body.encode(Encoding::UTF_8, invalid: :replace, undef: :replace, replace: '')
|
|
63
65
|
end
|
|
64
66
|
|
|
65
67
|
def agents_section_start
|
|
@@ -144,20 +146,30 @@ module Tramway
|
|
|
144
146
|
|
|
145
147
|
desc 'Installs Tramway dependencies and Tailwind safelist configuration.'
|
|
146
148
|
|
|
149
|
+
# rubocop:disable Metrics/MethodLength
|
|
147
150
|
def ensure_agents_file
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
with_agents_update_fallback do
|
|
152
|
+
say_status(
|
|
153
|
+
:info,
|
|
154
|
+
"Tramway will replace the content between \"#{agents_section_start}\" and " \
|
|
155
|
+
"\"#{agents_section_end}\" in AGENTS.md."
|
|
156
|
+
)
|
|
157
|
+
|
|
158
|
+
return create_file(agents_file_path, "#{agents_template}\n") unless File.exist?(agents_file_path)
|
|
153
159
|
|
|
154
|
-
|
|
160
|
+
content = File.read(agents_file_path)
|
|
161
|
+
updated = replace_agents_section(content)
|
|
162
|
+
return if updated == content
|
|
155
163
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
164
|
+
File.write(agents_file_path, updated, mode: 'w:UTF-8')
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
# rubocop:enable Metrics/MethodLength
|
|
159
168
|
|
|
160
|
-
|
|
169
|
+
def with_agents_update_fallback
|
|
170
|
+
yield
|
|
171
|
+
rescue StandardError => e
|
|
172
|
+
say_status(:warning, "Skipping AGENTS.md update: #{e.message}")
|
|
161
173
|
end
|
|
162
174
|
|
|
163
175
|
def ensure_dependencies
|
data/lib/tramway/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tramway
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.3
|
|
4
|
+
version: 2.1.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- kalashnikovisme
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-01-
|
|
12
|
+
date: 2026-01-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: anyway_config
|