gempilot 0.3.3 → 0.3.4
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 +4 -4
- data/issues.rec +6 -0
- data/lib/gempilot/project.rb +14 -1
- data/lib/gempilot/version.rb +1 -1
- data/lib/gempilot/version_task.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a9a46b6f3c9121afd8b129b511f2d05107bd97009d3274f840b80779aba3187
|
|
4
|
+
data.tar.gz: e41500827ee11aa83827feb8c43fb36a115383a7cd6a52619f49d6487d05f9ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '059d2fd4b08bf84d5f8bec7f2d13907362b73bc51222c56641292423a2df753c45f6b279d7e1abb0586a453d2979243b7d964d0e4cbf908a768f714f3bf6cbae'
|
|
7
|
+
data.tar.gz: febb87bfccb1ae993e298848a4cc7b8b4a084479ead1850799bc9dfa1496d886fddeba6d49ff62ddbe171efcd74c7d8f3d561bfc6151856048ad81bc430b824f
|
data/issues.rec
CHANGED
|
@@ -317,3 +317,9 @@ Description: 1. Documentation is improperly formatted. sizing is all over the pl
|
|
|
317
317
|
+
|
|
318
318
|
+ Fixing this should rely on idiomatic zeitwerk & zeitwerk inflector usage, and thoroughly thinking through how to fit this into user's loader. DO NOT rely on regexes of any kind to handle this.
|
|
319
319
|
Status: open
|
|
320
|
+
|
|
321
|
+
Id: C2BD1E80-C1DB-11F1-8378-FE6CB9572C2E
|
|
322
|
+
Updated: Tue, 06 Oct 2026 19:15:03 -0400
|
|
323
|
+
Title: gempilot new should not auto-override existing file
|
|
324
|
+
Description: Use same pattern that rails uses. Prompt for y/n/m/d whatever the options are
|
|
325
|
+
Status: open
|
data/lib/gempilot/project.rb
CHANGED
|
@@ -15,8 +15,9 @@ module Gempilot
|
|
|
15
15
|
|
|
16
16
|
attr_reader :root
|
|
17
17
|
|
|
18
|
-
def initialize(root = Dir.pwd)
|
|
18
|
+
def initialize(root = Dir.pwd, name: nil)
|
|
19
19
|
@root = Pathname(root)
|
|
20
|
+
@declared_name = name
|
|
20
21
|
@verifications = Set.new
|
|
21
22
|
end
|
|
22
23
|
|
|
@@ -89,6 +90,18 @@ module Gempilot
|
|
|
89
90
|
end
|
|
90
91
|
|
|
91
92
|
def fetch_lib_project
|
|
93
|
+
case @declared_name
|
|
94
|
+
in String then declared_lib_project
|
|
95
|
+
in nil then discover_lib_project
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
def declared_lib_project
|
|
100
|
+
name_segments = @declared_name.split("-")
|
|
101
|
+
lib.join(*name_segments).tap { verify_existence! it }
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
def discover_lib_project
|
|
92
105
|
dirs = shallowest_entry_dirs
|
|
93
106
|
case dirs.count
|
|
94
107
|
in 0 then raise ProjectIntrospectionError, "Could not identify project dir"
|
data/lib/gempilot/version.rb
CHANGED