smdev 1.2.1 → 1.2.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: f7cac5467108208cbfc6bb8222de4812bc7add3e1d754fa42adeadc6aeff8b9b
4
- data.tar.gz: 5eff861b8d3abe262479fc5c7359a87f7e37cc6a2604fef2432a99ed7df9629b
3
+ metadata.gz: 3944688b5f28438bdb286304bbdc06115afbe3d7e1548aaa37e933fbaa0a2ddf
4
+ data.tar.gz: a1be710fc98a0add8e63dcca21a3a5d59a429e5a50fea27e13365060cbb9ef2c
5
5
  SHA512:
6
- metadata.gz: 242145f0fb4353bc5a0258f5b806284d7a59ff9567e12c4333a155801cbd617f74d72590762386091938425cdb9ad76ae580ca0454ceefeed05d690479028ef6
7
- data.tar.gz: ac154eb5afc942887d1bbd7270092f946da4f5175c3ca67c2256c45b02a1766f25c3329a9ee0023d2bf95da275d31932e262f7256cb0799c499c9c0dce9ba5d6
6
+ metadata.gz: d45c90193af9f78347a13f05d44cb86d91f1b50bbf06c81882680a5df24a31ff62753774f0d16107918120dda7929f2a40fd514bee3e0b9daa4bb10703439b1c
7
+ data.tar.gz: f0cd7a754c05b6f96783e73e3addb3e43de06fa335abf36cf8cc9b7f98a695d7b6310ac8e72157713d8b89944eb60bb428ffa6e377c4d683eecf62f3f71dc6e1
@@ -11,16 +11,19 @@ alwaysApply: false
11
11
  - Maintains code quality and readability
12
12
  - Guides architectural decisions
13
13
 
14
+
14
15
  ## Critical Rules
15
16
  - Follow current Rails version conventions
16
17
  - Use Rails generators for database changes
17
18
  - Use Ruby 3.x syntax
18
19
  - Use string interpolation over concatenation
19
20
  - Use double quotes only for interpolation
20
- - Follow "skinny controller, fat model" pattern
21
21
  - Use concerns for shared functionality
22
22
  - Use service objects for complex business logic
23
23
  - Prefer server-side solutions using Turbo over client-side JS
24
+ - Follow "skinny controller, fat model" pattern
25
+ - When refactoring controllers move logic to models before jumping to concerns or service objects
26
+ - When refactoring models move logic to concerns before jumping to service objects
24
27
 
25
28
  ## Examples
26
29
 
@@ -24,6 +24,16 @@ alwaysApply: false
24
24
  4. Typography
25
25
  5. Colors and visual effects
26
26
  - Use semantic HTML elements as base components when possible
27
+ - When using Tailwind or traditional CSS...
28
+ - Only use "flex" and flex properties when laying out a page
29
+ - Avoid "w-full" on block elements, use "flex-1" instead
30
+ - Avoid "width: 100%" on block elements, use "flex-1" instead
31
+ - Avoid "h-full" on block elements, use "flex-1" instead
32
+ - Avoid "height: 100%" on block elements, use "flex-1" instead
33
+ - Minimize the use of margins or its Tailwind equivalents "m-*" or "mb-*", use "gap" instead
34
+ - When an element has "position: absolute;", its parent container should have "position: relative;"
35
+ - When using z-index, it should be increments of 10, starting at 0 to prevent runaway values and overlapping elements.
36
+ - When applying breakpoints, it should have a mobile-first approach
27
37
 
28
38
  ## Examples
29
39
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smdev
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Neighbors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-01 00:00:00.000000000 Z
11
+ date: 2025-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize