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 +4 -4
- data/CHANGELOG.md +8 -0
- data/src/generators/initial_module_generator.rb +1 -1
- data/src/manifests/project_config.rb +1 -1
- data/src/write_empty_ruby_project_to_disk.rb +1 -12
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc7d8e18218b9324dc8d6d4bfe592734b88cd70861f03d6911cf46c7f4086f60
|
4
|
+
data.tar.gz: 68cb24c043e9f9e8db5713030b189f612bee30b4a0242138ef7bf41d4ceb6673
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbc4d41abbc0df6ea53f4606f636a95ae43868bb95a5ea0997067d63fc0905ecaa999991d811d8fce4e1e9b568816e474371701379779c16ba7da52d72baf722
|
7
|
+
data.tar.gz: 9dd14a46dd5e458baa1b77b03631d549f5d2ee782489e89b502b06c9a16b2e2a936d0d1f3512307c10505b10c41ce1c4ddb2c5db2d67e719c0fa5405d51610ad
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
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.
|
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
|
+
date: 2024-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: extract-repo
|