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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf9c32d806a0ad04b75555b83b55d8b4a18260b47aa850ccbce7932932c87053
4
- data.tar.gz: 21f589564965ef3245e0fa8706a5c2f186dc7dd56a9f4b3434b75ec8f523c052
3
+ metadata.gz: 2a9a46b6f3c9121afd8b129b511f2d05107bd97009d3274f840b80779aba3187
4
+ data.tar.gz: e41500827ee11aa83827feb8c43fb36a115383a7cd6a52619f49d6487d05f9ce
5
5
  SHA512:
6
- metadata.gz: 836b9b171fc9fc91ce30aa3cfa3f7b9f5fa71b80f63f0050b86cddce9981c3621bca5d36247288c8d3edbd557b0d6eb05c4b8fcf246398cc0fee5c1b02578da8
7
- data.tar.gz: 0c8973e059cd627a91a72fb21608871df90b49c32e528f10db2db469513fdf8cbd87432f7ac9679e26e5ad030255283886f69b61d6359530cce0f88b2586adb3
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
@@ -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"
@@ -1,3 +1,3 @@
1
1
  module Gempilot
2
- VERSION = "0.3.3".freeze
2
+ VERSION = "0.3.4".freeze
3
3
  end
@@ -8,9 +8,9 @@ module Gempilot
8
8
 
9
9
  attr_reader :project
10
10
 
11
- def initialize(root: Dir.pwd)
11
+ def initialize(root: Dir.pwd, project_name: nil)
12
12
  super()
13
- @project = Project.new(root)
13
+ @project = Project.new(root, name: project_name)
14
14
  define_tasks
15
15
  end
16
16
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gempilot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Gillis