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

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: e9967e9c730fa29e2425b587c458c12bc5576fcd6102b20ca67a9889ec08c290
4
- data.tar.gz: ad33769318233bd172e23c8eed3256fa94b105440ae4b07ddc40a082f92272bc
3
+ metadata.gz: bc7d8e18218b9324dc8d6d4bfe592734b88cd70861f03d6911cf46c7f4086f60
4
+ data.tar.gz: 68cb24c043e9f9e8db5713030b189f612bee30b4a0242138ef7bf41d4ceb6673
5
5
  SHA512:
6
- metadata.gz: 0ae1011bd2e6c9c86bd9053fa07c8a4fe05731a6547f251d87691dafe8ee82a0e03291e7f49e118c31eb3ff34b1023ba1d0b45b190cb24149f675a4a97a02742
7
- data.tar.gz: c98abcc172819609290b15ce8771041f50eb436ee06b9a6a52197cd9a1e090890c8a87a3a76996e46fbe3a8a5ee3bce1896bf37429044da3bedb05bd61c1b7b4
6
+ metadata.gz: bbc4d41abbc0df6ea53f4606f636a95ae43868bb95a5ea0997067d63fc0905ecaa999991d811d8fce4e1e9b568816e474371701379779c16ba7da52d72baf722
7
+ data.tar.gz: 9dd14a46dd5e458baa1b77b03631d549f5d2ee782489e89b502b06c9a16b2e2a936d0d1f3512307c10505b10c41ce1c4ddb2c5db2d67e719c0fa5405d51610ad
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.0.11] - 2024-12-16
2
+
3
+ - Fix bug preventing setting origin remote and pushing initial comit to github
4
+
1
5
  ## [0.0.11] - 2024-11-30
2
6
 
3
7
  - Fix initial module naming bug
@@ -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.11
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-12-01 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