foobara-sh-cli-connector-generator 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/src/write_sh_cli_connector_to_disk.rb +3 -16
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0af77c9318e06b9b0ad186d7db1d28c5968783b1a49ea5af93ac23927688e77e
|
4
|
+
data.tar.gz: e2117c818961a9f183ed94711cbd029a0bcc058a26d3265d73e216e0d67ef183
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3698eee5e46fb6492b8c19919a89247a78fc73ea42eaca421325132ce415bfef7108bab1fc95e1bc6b8fc3d4a9ca2090fa76a5fa25389891993ea61935a178d6
|
7
|
+
data.tar.gz: d9fff047e96a9fe0616374f30df49b6b07b0f4f7ae90cb2b318bb654038619ee9cb37e96a535d2d7030ee7aff5d1b36ea2726cdb7756e17fbeab0e169050fd13
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
require_relative "generate_sh_cli_connector"
|
2
|
+
require "foobara/files_generator/bundler_actions"
|
2
3
|
|
3
4
|
module Foobara
|
4
5
|
module Generators
|
5
6
|
module ShCliConnectorGenerator
|
6
7
|
class WriteShCliConnectorToDisk < Foobara::Generators::WriteGeneratedFilesToDisk
|
8
|
+
include Foobara::FilesGenerator::BundlerActions
|
9
|
+
|
7
10
|
class << self
|
8
11
|
def generator_key
|
9
12
|
"sh-cli-connector"
|
@@ -47,22 +50,6 @@ module Foobara
|
|
47
50
|
end
|
48
51
|
end
|
49
52
|
|
50
|
-
def bundle_install
|
51
|
-
cmd = "bundle install"
|
52
|
-
|
53
|
-
Bundler.with_unbundled_env do
|
54
|
-
Open3.popen3(cmd) do |_stdin, _stdout, stderr, wait_thr|
|
55
|
-
exit_status = wait_thr.value
|
56
|
-
|
57
|
-
unless exit_status.success?
|
58
|
-
# :nocov:
|
59
|
-
warn "WARNING: could not #{cmd}\n#{stderr.read}"
|
60
|
-
# :nocov:puts "bundling..."
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
53
|
def rubocop_autocorrect
|
67
54
|
Open3.popen3("bundle exec rubocop --no-server -A") do |_stdin, _stdout, stderr, wait_thr|
|
68
55
|
exit_status = wait_thr.value
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foobara-sh-cli-connector-generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
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-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foobara
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
|
-
rubygems_version: 3.
|
86
|
+
rubygems_version: 3.5.16
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: Generates a Foobara sh_cli_connector
|