bundler-exec-shell-export 0.0.1.pre.iteration.1
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 +7 -0
- data/lib/bundler_exec_shell_export/version.rb +5 -0
- data/lib/bundler_exec_shell_export.rb +21 -0
- data/plugins.rb +3 -0
- metadata +50 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ed0b22f61f496f5fcf0a32d3abf1f05454fa82b1de985601d3558d4ad694c14d
|
4
|
+
data.tar.gz: 3deafe0120eb500a9fc12d17fdddfbf6bd0ffa8c26c141b38819947902bb5f07
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4d51f872317fa1a0c9b7390f83056ee50af1aac3a2f508facd62beec599cfee1b1e32da31a2b7e3d636350c5e69eeb75cedff79f4971bfd4c78e5c740a9640d0
|
7
|
+
data.tar.gz: 91df7f61a0eccb32c7427e143c3fede0bb68b60a17d2c68a5b3d983f011d1e8ae2391086b9e6f4453a64842b8fa384fb72c74698df53482ddb1c708fe8d7b7fc
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "bundler_exec_shell_export/version"
|
4
|
+
|
5
|
+
class BundlerExecShellExport
|
6
|
+
class Error < Bundler::BundlerError; end
|
7
|
+
Bundler::Plugin::API.command("exec-shell-export", self)
|
8
|
+
def exec(command_name, args)
|
9
|
+
raise Error, "#{command_name}: called with redundant arguments" if args.any?
|
10
|
+
|
11
|
+
require "shellwords"
|
12
|
+
Bundler::EnvironmentPreserver::BUNDLER_KEYS.each do |key|
|
13
|
+
[key, "#{Bundler::EnvironmentPreserver::BUNDLER_PREFIX}#{key}"].each do |name|
|
14
|
+
next unless (value = ENV[name])
|
15
|
+
next if name == "MANPATH"
|
16
|
+
|
17
|
+
puts "export #{name}=#{Shellwords.shellescape(value)}"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/plugins.rb
ADDED
metadata
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bundler-exec-shell-export
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1.pre.iteration.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Amir Yalon
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 1970-01-01 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Adds a `bundle exec-shell-export` command that outputs the script to
|
14
|
+
source from a POSIX shell.
|
15
|
+
email:
|
16
|
+
- git@please.nospammail.net
|
17
|
+
executables: []
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- lib/bundler_exec_shell_export.rb
|
22
|
+
- lib/bundler_exec_shell_export/version.rb
|
23
|
+
- plugins.rb
|
24
|
+
homepage:
|
25
|
+
licenses:
|
26
|
+
- MIT
|
27
|
+
metadata:
|
28
|
+
source_code_uri: https://github.com/amiryal/bundler-exec-shell-export
|
29
|
+
changelog_uri: https://github.com/amiryal/bundler-exec-shell-export/blob/master/CHANGELOG.md
|
30
|
+
post_install_message:
|
31
|
+
rdoc_options: []
|
32
|
+
require_paths:
|
33
|
+
- lib
|
34
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: 3.0.0
|
39
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
requirements: []
|
45
|
+
rubygems_version: 3.5.16
|
46
|
+
signing_key:
|
47
|
+
specification_version: 4
|
48
|
+
summary: A Bundler plugin for exporting the bundle execution environment to a POSIX
|
49
|
+
shell
|
50
|
+
test_files: []
|