foobara-empty-ruby-project-generator 0.0.10 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7bf89dba94c235b7d83f0e7e26f91afb59762e03a24db47eb8919d574ec6c02
4
- data.tar.gz: 0cf93a363aa180e6837cbbe9a1601612b3a71306efe336c1107f64b2eb8aaa0d
3
+ metadata.gz: bc7d8e18218b9324dc8d6d4bfe592734b88cd70861f03d6911cf46c7f4086f60
4
+ data.tar.gz: 68cb24c043e9f9e8db5713030b189f612bee30b4a0242138ef7bf41d4ceb6673
5
5
  SHA512:
6
- metadata.gz: bfa6ec502d59661980b01e93dfc70ee991eca5e6ab8e7ef7024817ffb6dd01a92980d3019e5e26d2d9808f663a9ef8352aff8ac6cca2b763a72b26015ffb440b
7
- data.tar.gz: e917ba41af24f487360993b817899271c8e358e1018e6f7b9ab88db034b0bde0d16b81b936648c6e39a955c69ca97e2c306bd6276bed53fae55a9f5d3fa1fb94
6
+ metadata.gz: bbc4d41abbc0df6ea53f4606f636a95ae43868bb95a5ea0997067d63fc0905ecaa999991d811d8fce4e1e9b568816e474371701379779c16ba7da52d72baf722
7
+ data.tar.gz: 9dd14a46dd5e458baa1b77b03631d549f5d2ee782489e89b502b06c9a16b2e2a936d0d1f3512307c10505b10c41ce1c4ddb2c5db2d67e719c0fa5405d51610ad
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.0.11] - 2024-12-16
2
+
3
+ - Fix bug preventing setting origin remote and pushing initial comit to github
4
+
5
+ ## [0.0.11] - 2024-11-30
6
+
7
+ - Fix initial module naming bug
8
+
1
9
  ## [0.0.10] - 2024-11-14
2
10
 
3
11
  - Create an empty module
@@ -18,7 +18,7 @@ module Foobara
18
18
  end
19
19
 
20
20
  def module_path
21
- full_project_path.map { |part| Util.classify(part) }
21
+ full_project_path
22
22
  end
23
23
  end
24
24
  end
@@ -127,7 +127,7 @@ module Foobara
127
127
 
128
128
  def kebab_to_module_path(kebab)
129
129
  if kebab
130
- kebab.split("_").map { |part| Util.classify(part.gsub("-", "_")) }
130
+ kebab.split("_").map { |part| Util.classify(part) }
131
131
  else
132
132
  []
133
133
  end
@@ -161,8 +161,6 @@ module Foobara
161
161
  # :nocov:
162
162
  end
163
163
 
164
- attr_accessor :origin_set, :pushed
165
-
166
164
  def github_create_repo
167
165
  puts "pushing to github..."
168
166
 
@@ -170,20 +168,13 @@ module Foobara
170
168
 
171
169
  Open3.popen3(cmd) do |_stdin, _stdout, _stderr, wait_thr|
172
170
  exit_status = wait_thr.value
173
- if exit_status.success?
174
- # :nocov:
175
- self.origin_set = true
176
- self.pushed = true
177
- # :nocov:
178
- else
171
+ unless exit_status.success?
179
172
  warn "WARNING: could not #{cmd}"
180
173
  end
181
174
  end
182
175
  end
183
176
 
184
177
  def git_add_remote_origin
185
- return if origin_set
186
-
187
178
  unless system("git remote add origin git@github.com:#{project_config.org_slash_project_kebab}.git")
188
179
  # :nocov:
189
180
  raise "could not git remote add origin git@github.com:#{project_config.org_slash_project_kebab}.git"
@@ -200,8 +191,6 @@ module Foobara
200
191
  end
201
192
 
202
193
  def push_to_github
203
- return if pushed
204
-
205
194
  Open3.popen3("git push -u origin main") do |_stdin, _stdout, stderr, wait_thr|
206
195
  exit_status = wait_thr.value
207
196
  unless exit_status.success?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-empty-ruby-project-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-14 00:00:00.000000000 Z
11
+ date: 2024-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: extract-repo