brew_lib 0.1.10 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/brew_lib.iml +0 -54
- data/.rubocop.yml +9 -3
- data/Gemfile +4 -4
- data/Gemfile.lock +2 -15
- data/Rakefile +4 -8
- data/exe/brew_lib +2 -1
- data/lib/brew_lib/version.rb +1 -1
- data/lib/brew_lib.rb +30 -38
- data/lib/post_build.rb +2 -0
- data/lib/post_install.rb +1 -0
- data/lib/post_uninstall.rb +2 -0
- data/lib/pre_install.rb +2 -0
- data/lib/pre_uninstall.rb +2 -0
- data/lib/rubygems_plugin.rb +15 -23
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb5b0cd60cb4a1f8b11e5ea167eaf7b94a122c2e7eb18fe75578459f75321365
|
4
|
+
data.tar.gz: d3fd9bfd8b1a51a0bbb4a9b85633af3d44b7dee2b95bb2d7dc415f0ab9defd29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 502fcdb570da9d4336845cb9b09f61e55687ba017dab65f8c547d28762d6ec65fbd38da43df6d24fd6b293c636138724cec26974e474605a3e66df365d7f01b6
|
7
|
+
data.tar.gz: 99b5a6a8fc73cd0bfc140b206b1cb2f4b41c1ccd57b7f8f1d08134561d809de9ff7ef0e79408d1297ace195fcecd5b98c9be1a2e237c808c3752f537c7e6a3f5
|
data/.idea/brew_lib.iml
CHANGED
@@ -52,62 +52,8 @@
|
|
52
52
|
<orderEntry type="jdk" jdkName="ruby-2.6.8-p205" jdkType="RUBY_SDK" />
|
53
53
|
<orderEntry type="sourceFolder" forTests="false" />
|
54
54
|
<orderEntry type="library" name="Python 3.10 interpreter library" level="application" />
|
55
|
-
<orderEntry type="library" scope="PROVIDED" name="activesupport (v6.1.6, ruby-2.6.8-p205) [gem]" level="application" />
|
56
|
-
<orderEntry type="library" scope="PROVIDED" name="aruba (v2.0.1, ruby-2.6.8-p205) [gem]" level="application" />
|
57
|
-
<orderEntry type="library" scope="PROVIDED" name="ast (v2.4.2, ruby-2.6.8-p205) [gem]" level="application" />
|
58
|
-
<orderEntry type="library" scope="PROVIDED" name="awesome_print (v1.9.2, ruby-2.6.8-p205) [gem]" level="application" />
|
59
|
-
<orderEntry type="library" scope="PROVIDED" name="builder (v3.2.4, ruby-2.6.8-p205) [gem]" level="application" />
|
60
55
|
<orderEntry type="library" scope="PROVIDED" name="bundle (v0.0.1, ruby-2.6.8-p205) [gem]" level="application" />
|
61
56
|
<orderEntry type="library" scope="PROVIDED" name="bundler (v2.3.13, ruby-2.6.8-p205) [gem]" level="application" />
|
62
|
-
<orderEntry type="library" scope="PROVIDED" name="childprocess (v4.1.0, ruby-2.6.8-p205) [gem]" level="application" />
|
63
|
-
<orderEntry type="library" scope="PROVIDED" name="coderay (v1.1.3, ruby-2.6.8-p205) [gem]" level="application" />
|
64
|
-
<orderEntry type="library" scope="PROVIDED" name="concurrent-ruby (v1.1.10, ruby-2.6.8-p205) [gem]" level="application" />
|
65
|
-
<orderEntry type="library" scope="PROVIDED" name="contracts (v0.16.1, ruby-2.6.8-p205) [gem]" level="application" />
|
66
|
-
<orderEntry type="library" scope="PROVIDED" name="cucumber (v7.1.0, ruby-2.6.8-p205) [gem]" level="application" />
|
67
|
-
<orderEntry type="library" scope="PROVIDED" name="cucumber-core (v10.1.1, ruby-2.6.8-p205) [gem]" level="application" />
|
68
|
-
<orderEntry type="library" scope="PROVIDED" name="cucumber-create-meta (v6.0.4, ruby-2.6.8-p205) [gem]" level="application" />
|
69
|
-
<orderEntry type="library" scope="PROVIDED" name="cucumber-cucumber-expressions (v14.0.0, ruby-2.6.8-p205) [gem]" level="application" />
|
70
|
-
<orderEntry type="library" scope="PROVIDED" name="cucumber-gherkin (v22.0.0, ruby-2.6.8-p205) [gem]" level="application" />
|
71
|
-
<orderEntry type="library" scope="PROVIDED" name="cucumber-html-formatter (v17.0.0, ruby-2.6.8-p205) [gem]" level="application" />
|
72
|
-
<orderEntry type="library" scope="PROVIDED" name="cucumber-messages (v17.1.1, ruby-2.6.8-p205) [gem]" level="application" />
|
73
|
-
<orderEntry type="library" scope="PROVIDED" name="cucumber-tag-expressions (v4.1.0, ruby-2.6.8-p205) [gem]" level="application" />
|
74
|
-
<orderEntry type="library" scope="PROVIDED" name="cucumber-wire (v6.2.1, ruby-2.6.8-p205) [gem]" level="application" />
|
75
|
-
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.5.0, ruby-2.6.8-p205) [gem]" level="application" />
|
76
|
-
<orderEntry type="library" scope="PROVIDED" name="ffi (v1.15.5, ruby-2.6.8-p205) [gem]" level="application" />
|
77
|
-
<orderEntry type="library" scope="PROVIDED" name="gem-release (v2.2.2, ruby-2.6.8-p205) [gem]" level="application" />
|
78
|
-
<orderEntry type="library" scope="PROVIDED" name="i18n (v1.10.0, ruby-2.6.8-p205) [gem]" level="application" />
|
79
|
-
<orderEntry type="library" scope="PROVIDED" name="io-console (v0.5.11, ruby-2.6.8-p205) [gem]" level="application" />
|
80
|
-
<orderEntry type="library" scope="PROVIDED" name="irb (v1.4.1, ruby-2.6.8-p205) [gem]" level="application" />
|
81
|
-
<orderEntry type="library" scope="PROVIDED" name="method_source (v1.0.0, ruby-2.6.8-p205) [gem]" level="application" />
|
82
|
-
<orderEntry type="library" scope="PROVIDED" name="mime-types (v3.4.1, ruby-2.6.8-p205) [gem]" level="application" />
|
83
|
-
<orderEntry type="library" scope="PROVIDED" name="mime-types-data (v3.2022.0105, ruby-2.6.8-p205) [gem]" level="application" />
|
84
|
-
<orderEntry type="library" scope="PROVIDED" name="minitest (v5.15.0, ruby-2.6.8-p205) [gem]" level="application" />
|
85
|
-
<orderEntry type="library" scope="PROVIDED" name="multi_test (v0.1.2, ruby-2.6.8-p205) [gem]" level="application" />
|
86
|
-
<orderEntry type="library" scope="PROVIDED" name="parallel (v1.22.1, ruby-2.6.8-p205) [gem]" level="application" />
|
87
|
-
<orderEntry type="library" scope="PROVIDED" name="parser (v3.1.2.0, ruby-2.6.8-p205) [gem]" level="application" />
|
88
|
-
<orderEntry type="library" scope="PROVIDED" name="pry (v0.14.1, ruby-2.6.8-p205) [gem]" level="application" />
|
89
|
-
<orderEntry type="library" scope="PROVIDED" name="rainbow (v3.1.1, ruby-2.6.8-p205) [gem]" level="application" />
|
90
|
-
<orderEntry type="library" scope="PROVIDED" name="rake (v13.0.6, ruby-2.6.8-p205) [gem]" level="application" />
|
91
|
-
<orderEntry type="library" scope="PROVIDED" name="rb-readline (v0.5.5, ruby-2.6.8-p205) [gem]" level="application" />
|
92
|
-
<orderEntry type="library" scope="PROVIDED" name="regexp_parser (v2.4.0, ruby-2.6.8-p205) [gem]" level="application" />
|
93
|
-
<orderEntry type="library" scope="PROVIDED" name="reline (v0.3.1, ruby-2.6.8-p205) [gem]" level="application" />
|
94
|
-
<orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.5, ruby-2.6.8-p205) [gem]" level="application" />
|
95
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.11.0, ruby-2.6.8-p205) [gem]" level="application" />
|
96
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.11.0, ruby-2.6.8-p205) [gem]" level="application" />
|
97
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.11.0, ruby-2.6.8-p205) [gem]" level="application" />
|
98
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.11.1, ruby-2.6.8-p205) [gem]" level="application" />
|
99
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.11.0, ruby-2.6.8-p205) [gem]" level="application" />
|
100
|
-
<orderEntry type="library" scope="PROVIDED" name="rubocop (v1.29.1, ruby-2.6.8-p205) [gem]" level="application" />
|
101
|
-
<orderEntry type="library" scope="PROVIDED" name="rubocop-ast (v1.18.0, ruby-2.6.8-p205) [gem]" level="application" />
|
102
|
-
<orderEntry type="library" scope="PROVIDED" name="rubocop-minitest (v0.19.1, ruby-2.6.8-p205) [gem]" level="application" />
|
103
|
-
<orderEntry type="library" scope="PROVIDED" name="rubocop-rake (v0.6.0, ruby-2.6.8-p205) [gem]" level="application" />
|
104
|
-
<orderEntry type="library" scope="PROVIDED" name="rubocop-rspec (v2.10.0, ruby-2.6.8-p205) [gem]" level="application" />
|
105
|
-
<orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.11.0, ruby-2.6.8-p205) [gem]" level="application" />
|
106
|
-
<orderEntry type="library" scope="PROVIDED" name="sys-uname (v1.2.2, ruby-2.6.8-p205) [gem]" level="application" />
|
107
|
-
<orderEntry type="library" scope="PROVIDED" name="thor (v1.2.1, ruby-2.6.8-p205) [gem]" level="application" />
|
108
|
-
<orderEntry type="library" scope="PROVIDED" name="tzinfo (v2.0.4, ruby-2.6.8-p205) [gem]" level="application" />
|
109
|
-
<orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v2.1.0, ruby-2.6.8-p205) [gem]" level="application" />
|
110
|
-
<orderEntry type="library" scope="PROVIDED" name="zeitwerk (v2.5.4, ruby-2.6.8-p205) [gem]" level="application" />
|
111
57
|
</component>
|
112
58
|
<component name="RakeTasksCache">
|
113
59
|
<option name="myRootTask">
|
data/.rubocop.yml
CHANGED
@@ -1,13 +1,19 @@
|
|
1
1
|
AllCops:
|
2
2
|
TargetRubyVersion: 2.6
|
3
|
-
|
3
|
+
NewCops: enable
|
4
|
+
Gemspec/RequireMFA:
|
5
|
+
Enabled: false
|
6
|
+
Metrics/AbcSize:
|
7
|
+
Enabled: false
|
8
|
+
Metrics/MethodLength:
|
9
|
+
Enabled: false
|
10
|
+
Style/OpenStructUse:
|
11
|
+
Enabled: false
|
4
12
|
Style/StringLiterals:
|
5
13
|
Enabled: true
|
6
14
|
EnforcedStyle: double_quotes
|
7
|
-
|
8
15
|
Style/StringLiteralsInInterpolation:
|
9
16
|
Enabled: true
|
10
17
|
EnforcedStyle: double_quotes
|
11
|
-
|
12
18
|
Layout/LineLength:
|
13
19
|
Max: 120
|
data/Gemfile
CHANGED
@@ -8,7 +8,7 @@ gemspec
|
|
8
8
|
gem "rake", "~> 13.0"
|
9
9
|
|
10
10
|
gem "minitest", "~> 5.0"
|
11
|
-
gem "rubocop", group:
|
12
|
-
gem "rubocop-minitest", group:
|
13
|
-
gem "rubocop-rake", group:
|
14
|
-
gem "rubocop-rspec", group:
|
11
|
+
gem "rubocop", group: "development"
|
12
|
+
gem "rubocop-minitest", group: "development"
|
13
|
+
gem "rubocop-rake", group: "development"
|
14
|
+
gem "rubocop-rspec", group: "development"
|
data/Gemfile.lock
CHANGED
@@ -1,20 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
brew_lib (0.1.
|
5
|
-
activesupport (< 7)
|
4
|
+
brew_lib (0.1.10)
|
6
5
|
awesome_print
|
7
|
-
bundle
|
8
6
|
|
9
7
|
GEM
|
10
8
|
remote: https://rubygems.org/
|
11
9
|
specs:
|
12
|
-
activesupport (6.1.6)
|
13
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
14
|
-
i18n (>= 1.6, < 2)
|
15
|
-
minitest (>= 5.1)
|
16
|
-
tzinfo (~> 2.0)
|
17
|
-
zeitwerk (~> 2.3)
|
18
10
|
aruba (2.0.1)
|
19
11
|
bundler (>= 1.17, < 3.0)
|
20
12
|
childprocess (>= 2.0, < 5.0)
|
@@ -29,7 +21,6 @@ GEM
|
|
29
21
|
bundler
|
30
22
|
childprocess (4.1.0)
|
31
23
|
coderay (1.1.3)
|
32
|
-
concurrent-ruby (1.1.10)
|
33
24
|
contracts (0.16.1)
|
34
25
|
cucumber (7.1.0)
|
35
26
|
builder (~> 3.2, >= 3.2.4)
|
@@ -64,8 +55,6 @@ GEM
|
|
64
55
|
diff-lcs (1.5.0)
|
65
56
|
ffi (1.15.5)
|
66
57
|
gem-release (2.2.2)
|
67
|
-
i18n (1.10.0)
|
68
|
-
concurrent-ruby (~> 1.0)
|
69
58
|
io-console (0.5.11)
|
70
59
|
irb (1.4.1)
|
71
60
|
reline (>= 0.3.0)
|
@@ -122,10 +111,7 @@ GEM
|
|
122
111
|
sys-uname (1.2.2)
|
123
112
|
ffi (~> 1.1)
|
124
113
|
thor (1.2.1)
|
125
|
-
tzinfo (2.0.4)
|
126
|
-
concurrent-ruby (~> 1.0)
|
127
114
|
unicode-display_width (2.1.0)
|
128
|
-
zeitwerk (2.5.4)
|
129
115
|
|
130
116
|
PLATFORMS
|
131
117
|
universal-darwin-21
|
@@ -133,6 +119,7 @@ PLATFORMS
|
|
133
119
|
DEPENDENCIES
|
134
120
|
aruba
|
135
121
|
brew_lib!
|
122
|
+
bundle
|
136
123
|
cucumber
|
137
124
|
gem-release
|
138
125
|
irb
|
data/Rakefile
CHANGED
@@ -5,7 +5,6 @@ require "rake/testtask"
|
|
5
5
|
require "rubocop/rake_task"
|
6
6
|
require_relative "lib/brew_lib"
|
7
7
|
|
8
|
-
|
9
8
|
Rake::TestTask.new(:test) do |t|
|
10
9
|
t.libs << "test"
|
11
10
|
t.libs << "lib"
|
@@ -18,11 +17,13 @@ def version
|
|
18
17
|
`git describe --tags --abbrev=0`.chomp
|
19
18
|
end
|
20
19
|
|
21
|
-
desc "Create a new release and
|
20
|
+
desc "Create a new release, push and system install [patch|minor|major], default is patch"
|
22
21
|
task bump: [:test] do |_, args|
|
23
22
|
part = args.to_a.fetch(0, "patch")
|
24
23
|
sh "{ git add -A && git commit --quiet -m 'bump #{part}' >/dev/null &&
|
25
|
-
|
24
|
+
gem bump --silent --quiet --tag --push --release &&
|
25
|
+
gh release create #{version} --generate-notes &&
|
26
|
+
gem install brew_lib; } || true"
|
26
27
|
end
|
27
28
|
|
28
29
|
task default: %i[test rubocop]
|
@@ -31,8 +32,3 @@ desc "Show tasks in current Rakefile, to see descriptions rake -T or rake -D"
|
|
31
32
|
task :tasks do
|
32
33
|
sh "rake", "--tasks"
|
33
34
|
end
|
34
|
-
|
35
|
-
desc "Install new version of gem after publish to rubygems"
|
36
|
-
task :instal do
|
37
|
-
sh "rake", "--tasks"
|
38
|
-
end
|
data/exe/brew_lib
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
2
3
|
|
3
4
|
require "pathname"
|
4
5
|
|
5
|
-
|
6
|
+
$LOAD_PATH.unshift File.expand_path("../lib", Pathname.new(__FILE__).dirname)
|
6
7
|
require "brew_lib"
|
7
8
|
|
8
9
|
BrewLib::CLI.new(ARGV)
|
data/lib/brew_lib/version.rb
CHANGED
data/lib/brew_lib.rb
CHANGED
@@ -1,48 +1,51 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'active_support/core_ext/string'
|
4
3
|
require "optparse"
|
5
4
|
require "ostruct"
|
5
|
+
require "pathname"
|
6
6
|
|
7
7
|
require_relative "brew_lib/version"
|
8
8
|
|
9
|
+
# BrewLib
|
9
10
|
module BrewLib
|
11
|
+
NAME = Pathname.new(__FILE__).basename.sub_ext("").to_s
|
10
12
|
class Error < StandardError; end
|
11
13
|
|
12
14
|
def self.pre_install
|
13
15
|
# noinspection RubyNilAnalysis
|
14
|
-
puts "Running #{__method__} => #{
|
16
|
+
puts "Running #{__method__} => #{NAME} (#{BrewLib::VERSION})"
|
15
17
|
end
|
16
18
|
|
17
19
|
def self.pre_uninstall
|
18
20
|
# noinspection RubyNilAnalysis
|
19
|
-
puts "Running #{__method__} => #{
|
21
|
+
puts "Running #{__method__} => #{NAME} (#{BrewLib::VERSION})"
|
20
22
|
end
|
21
23
|
|
22
24
|
def self.post_build
|
23
25
|
# noinspection RubyNilAnalysis
|
24
|
-
puts "Running #{__method__} => #{
|
26
|
+
puts "Running #{__method__} => #{NAME} (#{BrewLib::VERSION})"
|
25
27
|
end
|
26
28
|
|
27
29
|
def self.post_install
|
28
30
|
# noinspection RubyNilAnalysis
|
29
|
-
puts "Running #{__method__} => #{
|
31
|
+
puts "Running #{__method__} => #{NAME} (#{BrewLib::VERSION})"
|
30
32
|
end
|
31
33
|
|
32
34
|
def self.post_uninstall
|
33
35
|
# noinspection RubyNilAnalysis
|
34
|
-
puts "Running #{__method__} => #{
|
36
|
+
puts "Running #{__method__} => #{NAME} (#{BrewLib::VERSION})"
|
35
37
|
end
|
36
38
|
|
39
|
+
# BrewLib::CLI
|
37
40
|
class CLI
|
38
41
|
def initialize(argv = ARGV)
|
39
42
|
exception_handling do
|
40
43
|
options_set_default
|
41
44
|
OptionParser.new do |opts|
|
42
45
|
# noinspection RubyNilAnalysis
|
43
|
-
opts.banner = "#{
|
46
|
+
opts.banner = "#{NAME} {options}"
|
44
47
|
opts.separator ""
|
45
|
-
opts.separator "Options
|
48
|
+
opts.separator "Options:"
|
46
49
|
|
47
50
|
opts.on_tail("-h", "--help", "-H", "Display this help message.") do
|
48
51
|
puts opts
|
@@ -58,28 +61,17 @@ module BrewLib
|
|
58
61
|
# A list of all the standard options used in rake, suitable for
|
59
62
|
# passing to OptionParser.
|
60
63
|
def options_spec # :nodoc:
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
"Log message to standard output.",
|
73
|
-
lambda { |_| options.verbose = true }
|
74
|
-
],
|
75
|
-
["--version", "-V",
|
76
|
-
"Display the program version.",
|
77
|
-
lambda { |_|
|
78
|
-
puts BrewLib::VERSION
|
79
|
-
exit
|
80
|
-
}
|
81
|
-
],
|
82
|
-
]
|
64
|
+
[
|
65
|
+
["--post", "-p", "Post install ", ->(_) { options.post = true }],
|
66
|
+
["--silent", "-s", "Like --quiet, but also suppresses the 'in directory' announcement.",
|
67
|
+
->(_) { options.silent = true }],
|
68
|
+
["--verbose", "-v", "Log message to standard output.", ->(_) { options.verbose = true }],
|
69
|
+
["--version", "-V", "Display the program version.",
|
70
|
+
lambda { |_|
|
71
|
+
puts BrewLib::VERSION
|
72
|
+
exit
|
73
|
+
}]
|
74
|
+
]
|
83
75
|
end
|
84
76
|
|
85
77
|
# Application options from the command line
|
@@ -95,20 +87,20 @@ module BrewLib
|
|
95
87
|
end
|
96
88
|
|
97
89
|
# Provide standard exception handling for the given block.
|
98
|
-
def exception_handling
|
90
|
+
def exception_handling
|
99
91
|
yield
|
100
92
|
rescue SystemExit
|
101
93
|
# Exit silently with current status
|
102
94
|
raise
|
103
|
-
rescue OptionParser::InvalidOption =>
|
104
|
-
|
95
|
+
rescue OptionParser::InvalidOption => e
|
96
|
+
warn e.message
|
105
97
|
exit(false)
|
106
|
-
rescue
|
98
|
+
rescue StandardError => e
|
107
99
|
# Exit with error message
|
108
|
-
puts
|
109
|
-
puts
|
110
|
-
puts
|
111
|
-
puts
|
100
|
+
puts e
|
101
|
+
puts e.backtrace unless e.backtrace.nil?
|
102
|
+
puts e.cause unless e.cause.nil?
|
103
|
+
puts e.chain unless e.chain.nil?
|
112
104
|
exit(false)
|
113
105
|
end
|
114
106
|
end
|
data/lib/post_build.rb
CHANGED
data/lib/post_install.rb
CHANGED
data/lib/post_uninstall.rb
CHANGED
data/lib/pre_install.rb
CHANGED
data/lib/pre_uninstall.rb
CHANGED
data/lib/rubygems_plugin.rb
CHANGED
@@ -1,27 +1,21 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# https://guides.rubygems.org/plugins/
|
4
|
-
|
4
|
+
# https://github.com/rvm/executable-hooks/blob/master/lib/rubygems_plugin.rb
|
5
5
|
require "pathname"
|
6
6
|
def run(action, installer)
|
7
7
|
path = Pathname.new(installer.spec.lib_dirs_glob) / "#{action}.rb"
|
8
|
-
|
9
|
-
delete = false
|
10
|
-
unless $LOAD_PATH.include?(installer.spec.lib_dirs_glob)
|
11
|
-
$LOAD_PATH.unshift installer.spec.lib_dirs_glob
|
12
|
-
delete = true
|
13
|
-
end
|
14
|
-
#noinspection RubyResolve
|
15
|
-
require action
|
16
|
-
if delete
|
17
|
-
$LOAD_PATH.delete installer.spec.lib_dirs_glob
|
18
|
-
end
|
19
|
-
true
|
20
|
-
end
|
21
|
-
end
|
8
|
+
return unless path.exist?
|
22
9
|
|
23
|
-
|
24
|
-
|
10
|
+
delete = false
|
11
|
+
unless $LOAD_PATH.include?(installer.spec.lib_dirs_glob)
|
12
|
+
$LOAD_PATH.unshift installer.spec.lib_dirs_glob
|
13
|
+
delete = true
|
14
|
+
end
|
15
|
+
# noinspection RubyResolve
|
16
|
+
require action
|
17
|
+
$LOAD_PATH.delete installer.spec.lib_dirs_glob if delete
|
18
|
+
true
|
25
19
|
end
|
26
20
|
|
27
21
|
Gem.pre_install do |installer|
|
@@ -45,9 +39,7 @@ Gem.post_uninstall do |installer|
|
|
45
39
|
end
|
46
40
|
|
47
41
|
# TODO: el caller o que solo se haga una vez
|
48
|
-
|
49
|
-
|
50
|
-
gem
|
51
|
-
|
52
|
-
bundle install
|
53
|
-
=end
|
42
|
+
# bundle clean --force
|
43
|
+
# gem uninstall --ignore-dependencies --all -x
|
44
|
+
# gem install bundle bundler irb
|
45
|
+
# bundle install
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brew_lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- root
|
@@ -10,20 +10,6 @@ bindir: exe
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2022-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: activesupport
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "<"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '7'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "<"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '7'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: awesome_print
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,13 +25,13 @@ dependencies:
|
|
39
25
|
- !ruby/object:Gem::Version
|
40
26
|
version: '0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
28
|
+
name: aruba
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
31
|
- - ">="
|
46
32
|
- !ruby/object:Gem::Version
|
47
33
|
version: '0'
|
48
|
-
type: :
|
34
|
+
type: :development
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
@@ -53,7 +39,7 @@ dependencies:
|
|
53
39
|
- !ruby/object:Gem::Version
|
54
40
|
version: '0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
42
|
+
name: bundle
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
45
|
- - ">="
|