gem_name 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3ef6aceee4712f9adf68bdf955d6cd2e5b2df7f1e08462da28f5df3de5d97979
4
+ data.tar.gz: 1240adbceb34eef3d2499aa4cdd3db615fc046bec289a6d7e8713aa85e0745d4
5
+ SHA512:
6
+ metadata.gz: 2d59329f28735ed302ca2665f1fdda720cb7a32ae1630574b05ba08fde959199e3285f1c28c881140f65f5c7710c0623ce0e74e0021ecdc823a21e6652bfe925
7
+ data.tar.gz: 68e4632109992378412e5635d70ee7f55607d0d79d5dc84d5a90b72e76a697ec89f041689fc19b7f8aa7869d1621fb3bd314228223510b00ddae5293156277dc
data/.idea/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
4
+ # Editor-based HTTP Client requests
5
+ /httpRequests/
6
+ # Datasource local storage ignored files
7
+ /dataSources/
8
+ /dataSources.local.xml
@@ -0,0 +1,117 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="FacetManager">
4
+ <facet type="RailsFacetType" name="Ruby on Rails">
5
+ <configuration>
6
+ <RAILS_FACET_CONFIG_ID NAME="RAILS_FACET_SUPPORT_REMOVED" VALUE="false" />
7
+ <RAILS_FACET_CONFIG_ID NAME="RAILS_TESTS_SOURCES_PATCHED" VALUE="true" />
8
+ <RAILS_FACET_CONFIG_ID NAME="RAILS_FACET_APPLICATION_ROOT" VALUE="$MODULE_DIR$" />
9
+ </configuration>
10
+ </facet>
11
+ <facet type="gem" name="Gem">
12
+ <configuration />
13
+ </facet>
14
+ <facet type="Python" name="Python">
15
+ <configuration sdkName="Python 3.10" />
16
+ </facet>
17
+ <facet type="orchide-facet-id" name="OrchidE Ansible">
18
+ <configuration>
19
+ <option name="orchideInventoryLocations">
20
+ <list>
21
+ <option value="$MODULE_DIR$" />
22
+ </list>
23
+ </option>
24
+ <option name="orchidePlaybookLocations">
25
+ <list>
26
+ <option value="$USER_HOME$" />
27
+ </list>
28
+ </option>
29
+ <option name="orchideRoleLocations">
30
+ <list>
31
+ <option value="$MODULE_DIR$" />
32
+ </list>
33
+ </option>
34
+ </configuration>
35
+ </facet>
36
+ </component>
37
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
38
+ <exclude-output />
39
+ <content url="file://$MODULE_DIR$">
40
+ <sourceFolder url="file://$MODULE_DIR$/features" isTestSource="true" />
41
+ <sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
42
+ <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
43
+ <excludeFolder url="file://$MODULE_DIR$/.bundle" />
44
+ <excludeFolder url="file://$MODULE_DIR$/public/packs" />
45
+ <excludeFolder url="file://$MODULE_DIR$/vendor/bundle" />
46
+ <excludeFolder url="file://$MODULE_DIR$/vendor/cache" />
47
+ <excludeFolder url="file://$MODULE_DIR$/log" />
48
+ <excludeFolder url="file://$MODULE_DIR$/tmp" />
49
+ <excludeFolder url="file://$MODULE_DIR$/public/system" />
50
+ <excludeFolder url="file://$MODULE_DIR$/components" />
51
+ </content>
52
+ <orderEntry type="jdk" jdkName="ruby-2.6.8-p205" jdkType="RUBY_SDK" />
53
+ <orderEntry type="sourceFolder" forTests="false" />
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
+ <orderEntry type="library" scope="PROVIDED" name="bundle (v0.0.1, ruby-2.6.8-p205) [gem]" level="application" />
61
+ <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
+ </component>
112
+ <component name="RakeTasksCache">
113
+ <option name="myRootTask">
114
+ <RakeTaskImpl id="rake" />
115
+ </option>
116
+ </component>
117
+ </module>
@@ -0,0 +1,32 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <code_scheme name="Project" version="173">
3
+ <option name="OTHER_INDENT_OPTIONS">
4
+ <value>
5
+ <option name="INDENT_SIZE" value="2" />
6
+ <option name="TAB_SIZE" value="2" />
7
+ </value>
8
+ </option>
9
+ <Python>
10
+ <option name="ALIGN_MULTILINE_IMPORTS" value="false" />
11
+ <option name="NEW_LINE_AFTER_COLON_MULTI_CLAUSE" value="false" />
12
+ <option name="DICT_NEW_LINE_AFTER_LEFT_BRACE" value="true" />
13
+ <option name="DICT_NEW_LINE_BEFORE_RIGHT_BRACE" value="true" />
14
+ <option name="OPTIMIZE_IMPORTS_SORT_NAMES_IN_FROM_IMPORTS" value="true" />
15
+ <option name="OPTIMIZE_IMPORTS_ALWAYS_SPLIT_FROM_IMPORTS" value="true" />
16
+ <option name="OPTIMIZE_IMPORTS_CASE_INSENSITIVE_ORDER" value="true" />
17
+ <option name="FROM_IMPORT_NEW_LINE_AFTER_LEFT_PARENTHESIS" value="true" />
18
+ <option name="FROM_IMPORT_NEW_LINE_BEFORE_RIGHT_PARENTHESIS" value="true" />
19
+ <option name="FROM_IMPORT_PARENTHESES_FORCE_IF_MULTILINE" value="true" />
20
+ <option name="FROM_IMPORT_TRAILING_COMMA_IF_MULTILINE" value="true" />
21
+ </Python>
22
+ <ScalaCodeStyleSettings>
23
+ <option name="MULTILINE_STRING_CLOSING_QUOTES_ON_NEW_LINE" value="true" />
24
+ </ScalaCodeStyleSettings>
25
+ <bashpro>
26
+ <option name="USE_GOOGLE_CODE_STYLE" value="true" />
27
+ </bashpro>
28
+ <codeStyleSettings language="Python">
29
+ <option name="WRAP_LONG_LINES" value="true" />
30
+ </codeStyleSettings>
31
+ </code_scheme>
32
+ </component>
@@ -0,0 +1,5 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <state>
3
+ <option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
4
+ </state>
5
+ </component>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="SharedFileColors">
4
+ <fileColor scope="master" color="Theme Excluded Color" />
5
+ <fileColor scope="merge" color="372638" />
6
+ </component>
7
+ </project>
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="GitToolBoxProjectSettings">
4
+ <option name="commitMessageIssueKeyValidationOverride">
5
+ <BoolValueOverride>
6
+ <option name="enabled" value="true" />
7
+ </BoolValueOverride>
8
+ </option>
9
+ <option name="commitMessageValidationEnabledOverride">
10
+ <BoolValueOverride>
11
+ <option name="enabled" value="true" />
12
+ </BoolValueOverride>
13
+ </option>
14
+ </component>
15
+ </project>
data/.idea/icon.svg ADDED
@@ -0,0 +1,30 @@
1
+ <!--
2
+ - The MIT License (MIT)
3
+ -
4
+ - Copyright (c) 2015-2022 Elior "Mallowigi" Boukhobza
5
+ -
6
+ - Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ - of this software and associated documentation files (the "Software"), to deal
8
+ - in the Software without restriction, including without limitation the rights
9
+ - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ - copies of the Software, and to permit persons to whom the Software is
11
+ - furnished to do so, subject to the following conditions:
12
+ -
13
+ - The above copyright notice and this permission notice shall be included in all
14
+ - copies or substantial portions of the Software.
15
+ -
16
+ - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ - SOFTWARE.
23
+ -
24
+ -
25
+ -->
26
+
27
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 397 512" width="16px" height="16px">
28
+ <path fill="#FFB74D" fill-rule="evenodd" clip-rule="evenodd"
29
+ d="M311.877594,473.262207v-44.159729h36.9874573C376.8444824,429.102478,397,406.440918,397,381.9662476V233.5323029c0-24.5007935-20.5754089-47.2739105-48.0574646-47.2739105H311.877594v-17.2258759c53.0607605-10.1676636,42.2963257-85.2197037-11.0424194-81.0642471c14.8663025-30.8087654-20.3473511-67.2504196-55.6758575-47.6563301c-12.2150726-52.0367813-86.8842621-55.8038483-101.1082153,1.0762138c-18.0656738-9.3072968-41.1047363-3.585186-53.3566513,12.2898445c-35.2891502-24.9201164-70.3625946,14.5519676-60.9547806,37.39851c-40.9395523,11.2818527-39.0149994,68.0561066,2.0938263,79.3362579v307.6092529C31.833498,523.517334,311.877594,524.6879883,311.877594,473.262207z M68.8772202,450.7175598c-2.8365936-1.6346741-4.5857468-4.6613464-4.5857468-7.937561V178.1634827l-20.3255424-5.1806488l-0.0000916,306.6692505c57.1713295,28.4996948,216.7803802,26.9910583,255.7849579-4.987854l0.0000305-42.4688416c0-8.2800598,6.6022339-15.2179565,15.5355225-15.2179565h33.6473083c20.0153198,0,35.1513367-16.9389038,35.1513367-35.012207V233.5323029c0-18.9237671-15.3988647-35.1468964-35.1424561-35.1468964h-33.9710083c-8.3926086,0-15.2209473-6.8283539-15.2209473-15.2214355V172.358551c-6.3342285,2.3272247-12.907959,4.4682465-19.6704102,6.399292l-0.0250549,260.3750305c0,3.0999756-1.5751343,5.9915771-4.1828308,7.6720276C221.8270721,478.0648499,121.0509262,474.3045349,68.8772202,450.7175598z M309.8850403,157.0728607c45.5821228-10.710434,21.7134705-72.2359314-18.2645264-53.5693359c-4.8167419,3.0097351-11.5689697-2.6660461-8.087616-8.5470276c8.1418457-14.0737839,12.6542053-24.2266006,4.193512-36.1655655c-8.6100464-12.1497307-27.0741882-18.0494614-42.7180786-3.0749893c-4.4994659,4.4173546-10.5362244,1.2791405-10.7019348-3.9693069c-1.7624359-52.6035233-78.0496216-52.1804924-79.1704559,0c-0.024353,4.8660278-5.4464569,8.6136589-10.9269257,4.1084595c-16.5305481-13.2804756-39.2715302-5.3911438-46.3452377,9.2329254c-1.8016968,3.5939713-6.2747269,4.3665771-9.3572769,1.9353104C57.2243004,40.6514626,31.3117561,79.3336105,43.9268265,90.931427c4.1275024,3.475769,2.2071457,10.3816605-3.7467575,10.7108078c-34.4300346,3.4751816-44.3024216,53.6661911,10.0480194,60.6425705c15.3586044,4.1410217,78.2877655,19.220932,144.3487549,17.0359497c8.1993561,0.3721924,2.926178,7.2965698,16.8256226,18.1576843c8.6846466,5.0116577,12.3967285,11.7554626,12.5888824,19.6910858c-0.0644684,18.8045197,31.9232788,20.1302032,28.9457245-1.4191589c-0.6868896-10.0106049,1.4418488-19.9753113,6.1621704-28.8317413c5.6305542-9.607605,1.0706482-14.59758,8.2534485-17.2958832C297.5681152,162.0657501,292.5131531,160.2275848,309.8850403,157.0728607z M113.1069107,425.729248V206.3615112c0-13.4466095-20.2116776-13.4466095-20.2116776,0V425.729248C92.8952332,439.3101196,113.1069107,439.3101196,113.1069107,425.729248z M346.4239502,391.1809082h-29.1628418c-9.6990967,0-17.5105286-8.0637512-17.5105286-17.5105286V240.4578552c0-8.7869415,7.8114319-17.5110168,17.5105286-17.5110168h29.1628418c10.210022,0,17.5115356,9.0061035,17.5115356,17.5110168v133.2125244C363.9354858,383.9632263,354.6598206,391.1809082,346.4239502,391.1809082z M351.8084717,373.6703796V240.4578552c0-2.9686127-2.4581604-5.3840179-5.3845215-5.3840179h-29.1628418c-2.852417,0.0342865-5.2720337,2.1022034-5.3835144,5.3840179v133.2125244c0.032074,2.7254944,2.1262207,5.3835144,5.3835144,5.3835144h29.1628418C349.3013916,379.053894,351.8046875,376.7115173,351.8084717,373.6703796z" />
30
+ </svg>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <settings>
3
+ <option name="PROJECT_PROFILE" value="Default" />
4
+ <option name="USE_PROJECT_PROFILE" value="false" />
5
+ </settings>
6
+ </component>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="MaterialThemeProjectConfig">
4
+ <option name="highlightColorEnabled" value="true" />
5
+ <option name="isActive" value="true" />
6
+ <option name="isHighlightColorEnabled" value="true" />
7
+ <option name="useProjectFrame" value="true" />
8
+ <option name="tabHighlightPosition" value="Full" />
9
+ </component>
10
+ </project>
data/.idea/misc.xml ADDED
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="ruby-2.6.8-p205" project-jdk-type="RUBY_SDK">
4
+ <output url="file://$PROJECT_DIR$/out" />
5
+ </component>
6
+ <component name="RSettings">
7
+ <option name="interpreterPath" value="/usr/local/bin/R" />
8
+ </component>
9
+ <component name="SshConsoleOptionsProvider">
10
+ <option name="myEncoding" value="UTF-8" />
11
+ <option name="myConnectionType" value="NONE" />
12
+ <option name="myConnectionId" value="" />
13
+ </component>
14
+ <component name="VagrantProjectSettings">
15
+ <option name="instanceFolder" value="" />
16
+ <option name="provider" value="" />
17
+ </component>
18
+ </project>
data/.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/brew_lib.iml" filepath="$PROJECT_DIR$/.idea/brew_lib.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,3 @@
1
+ <component name="DependencyValidationManager">
2
+ <scope name="main" pattern="file[brew]:.idea//*" />
3
+ </component>
@@ -0,0 +1,3 @@
1
+ <component name="DependencyValidationManager">
2
+ <scope name="master" pattern="(file[brew]:docs//*||file[brew]:.sublime//*||file[brew]:.vscode//*||file[brew]:completions//*||file[brew]:manpages//*||file[brew]:.github//*||file[brew]:.shellcheckrc||file[brew]:.vale.ini||file[brew]:CHANGELOG.md||file[brew]:CONTRIBUTING.md||file[brew]:Dockerfile||file[brew]:LICENSE.txt||file[brew]:README.md||file[brew]:.editorconfig||file[brew]:.dockerignore||file[brew]:Library/.rubocop.yml||file[brew]:Library/.rubocop_rspec.yml||file[brew]:Library/README.md||file[brew]:bin/brew||file[brew]:bin//*)&amp;&amp;!file[brew]:bin/a.sh||file[brew]:Library//*" />
3
+ </component>
@@ -0,0 +1,3 @@
1
+ <component name="DependencyValidationManager">
2
+ <scope name="merge" pattern="file[brew]:.gitignore" />
3
+ </component>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
data/.rubocop.yml ADDED
@@ -0,0 +1,13 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 120
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at root@example.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in brew_lib.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "minitest", "~> 5.0"
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 ADDED
@@ -0,0 +1,150 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ gem_name (0.1.2)
5
+ activesupport (< 7)
6
+ awesome_print
7
+ bundle
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ 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
+ aruba (2.0.1)
19
+ bundler (>= 1.17, < 3.0)
20
+ childprocess (>= 2.0, < 5.0)
21
+ contracts (>= 0.16.0, < 0.18.0)
22
+ cucumber (>= 4.0, < 8.0)
23
+ rspec-expectations (~> 3.4)
24
+ thor (~> 1.0)
25
+ ast (2.4.2)
26
+ awesome_print (1.9.2)
27
+ builder (3.2.4)
28
+ bundle (0.0.1)
29
+ bundler
30
+ childprocess (4.1.0)
31
+ coderay (1.1.3)
32
+ concurrent-ruby (1.1.10)
33
+ contracts (0.16.1)
34
+ cucumber (7.1.0)
35
+ builder (~> 3.2, >= 3.2.4)
36
+ cucumber-core (~> 10.1, >= 10.1.0)
37
+ cucumber-create-meta (~> 6.0, >= 6.0.1)
38
+ cucumber-cucumber-expressions (~> 14.0, >= 14.0.0)
39
+ cucumber-gherkin (~> 22.0, >= 22.0.0)
40
+ cucumber-html-formatter (~> 17.0, >= 17.0.0)
41
+ cucumber-messages (~> 17.1, >= 17.1.1)
42
+ cucumber-wire (~> 6.2, >= 6.2.0)
43
+ diff-lcs (~> 1.4, >= 1.4.4)
44
+ mime-types (~> 3.3, >= 3.3.1)
45
+ multi_test (~> 0.1, >= 0.1.2)
46
+ sys-uname (~> 1.2, >= 1.2.2)
47
+ cucumber-core (10.1.1)
48
+ cucumber-gherkin (~> 22.0, >= 22.0.0)
49
+ cucumber-messages (~> 17.1, >= 17.1.1)
50
+ cucumber-tag-expressions (~> 4.1, >= 4.1.0)
51
+ cucumber-create-meta (6.0.4)
52
+ cucumber-messages (~> 17.1, >= 17.1.1)
53
+ sys-uname (~> 1.2, >= 1.2.2)
54
+ cucumber-cucumber-expressions (14.0.0)
55
+ cucumber-gherkin (22.0.0)
56
+ cucumber-messages (~> 17.1, >= 17.1.1)
57
+ cucumber-html-formatter (17.0.0)
58
+ cucumber-messages (~> 17.1, >= 17.1.0)
59
+ cucumber-messages (17.1.1)
60
+ cucumber-tag-expressions (4.1.0)
61
+ cucumber-wire (6.2.1)
62
+ cucumber-core (~> 10.1, >= 10.1.0)
63
+ cucumber-cucumber-expressions (~> 14.0, >= 14.0.0)
64
+ diff-lcs (1.5.0)
65
+ ffi (1.15.5)
66
+ gem-release (2.2.2)
67
+ i18n (1.10.0)
68
+ concurrent-ruby (~> 1.0)
69
+ io-console (0.5.11)
70
+ irb (1.4.1)
71
+ reline (>= 0.3.0)
72
+ method_source (1.0.0)
73
+ mime-types (3.4.1)
74
+ mime-types-data (~> 3.2015)
75
+ mime-types-data (3.2022.0105)
76
+ minitest (5.15.0)
77
+ multi_test (0.1.2)
78
+ parallel (1.22.1)
79
+ parser (3.1.2.0)
80
+ ast (~> 2.4.1)
81
+ pry (0.14.1)
82
+ coderay (~> 1.1)
83
+ method_source (~> 1.0)
84
+ rainbow (3.1.1)
85
+ rake (13.0.6)
86
+ rb-readline (0.5.5)
87
+ regexp_parser (2.4.0)
88
+ reline (0.3.1)
89
+ io-console (~> 0.5)
90
+ rexml (3.2.5)
91
+ rspec (3.11.0)
92
+ rspec-core (~> 3.11.0)
93
+ rspec-expectations (~> 3.11.0)
94
+ rspec-mocks (~> 3.11.0)
95
+ rspec-core (3.11.0)
96
+ rspec-support (~> 3.11.0)
97
+ rspec-expectations (3.11.0)
98
+ diff-lcs (>= 1.2.0, < 2.0)
99
+ rspec-support (~> 3.11.0)
100
+ rspec-mocks (3.11.1)
101
+ diff-lcs (>= 1.2.0, < 2.0)
102
+ rspec-support (~> 3.11.0)
103
+ rspec-support (3.11.0)
104
+ rubocop (1.29.1)
105
+ parallel (~> 1.10)
106
+ parser (>= 3.1.0.0)
107
+ rainbow (>= 2.2.2, < 4.0)
108
+ regexp_parser (>= 1.8, < 3.0)
109
+ rexml (>= 3.2.5, < 4.0)
110
+ rubocop-ast (>= 1.17.0, < 2.0)
111
+ ruby-progressbar (~> 1.7)
112
+ unicode-display_width (>= 1.4.0, < 3.0)
113
+ rubocop-ast (1.18.0)
114
+ parser (>= 3.1.1.0)
115
+ rubocop-minitest (0.19.1)
116
+ rubocop (>= 0.90, < 2.0)
117
+ rubocop-rake (0.6.0)
118
+ rubocop (~> 1.0)
119
+ rubocop-rspec (2.10.0)
120
+ rubocop (~> 1.19)
121
+ ruby-progressbar (1.11.0)
122
+ sys-uname (1.2.2)
123
+ ffi (~> 1.1)
124
+ thor (1.2.1)
125
+ tzinfo (2.0.4)
126
+ concurrent-ruby (~> 1.0)
127
+ unicode-display_width (2.1.0)
128
+ zeitwerk (2.5.4)
129
+
130
+ PLATFORMS
131
+ universal-darwin-21
132
+
133
+ DEPENDENCIES
134
+ aruba
135
+ cucumber
136
+ gem-release
137
+ gem_name!
138
+ irb
139
+ minitest (~> 5.0)
140
+ pry
141
+ rake (~> 13.0)
142
+ rb-readline
143
+ rspec
144
+ rubocop
145
+ rubocop-minitest
146
+ rubocop-rake
147
+ rubocop-rspec
148
+
149
+ BUNDLED WITH
150
+ 2.3.13
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 root
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # Brew lib
2
+
3
+ Welcome to your new gem! In this directory,
4
+ you'll find the files you need to be able to package up your Ruby library into a gem.
5
+ Put your Ruby code in the file `lib/brew_lib`.
6
+ To experiment with that code, run `bin/console` for an interactive prompt.
7
+
8
+ TODO: Delete this and the text above, and describe your gem
9
+
10
+ ## Installation
11
+
12
+ Install the gem and add to the application's Gemfile by executing:
13
+
14
+ $ bundle add brew_lib
15
+
16
+ If bundler is not being used to manage dependencies, install the gem by executing:
17
+
18
+ $ gem install brew_lib
19
+
20
+ ## Usage
21
+
22
+ TODO: Write usage instructions here
23
+
24
+ ## Development
25
+
26
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests.
27
+ You can also run `bin/console` for an interactive prompt that will allow you to experiment.
28
+
29
+ To install this gem onto your local machine, run `bundle exec rake install`.
30
+ To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`,
31
+ which will create a git tag for the version, push git commits and the created tag,
32
+ and push the `.gem` file to [rubygems.org](https://rubygems.org).
33
+
34
+ ## Contributing
35
+
36
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/brew_lib.
37
+ This project is intended to be a safe, welcoming space for collaboration,
38
+ and contributors are expected to adhere
39
+ to the [code of conduct](https://github.com/[USERNAME]/brew_lib/blob/main/CODE_OF_CONDUCT.md).
40
+
41
+ ## License
42
+
43
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
44
+
45
+ ## Code of Conduct
46
+
47
+ Everyone interacts in the brew_lib project's codebases, issue trackers,
48
+ chat rooms and mailing lists is expected
49
+ to follow the [code of conduct](https://github.com/[USERNAME]/brew_lib/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
5
+ require_relative "lib/brew_lib"
6
+
7
+ desc "Show all tasks in current Rakefile, to see descriptions rake -T or rake -D"
8
+ task :all do
9
+ Rake::Task.tasks.each do |task|
10
+ puts task.inspect
11
+ end
12
+ end
13
+
14
+ desc "Show tasks in current Rakefile, to see descriptions rake -T or rake -D"
15
+ task :tasks do
16
+ sh "rake", "--tasks"
17
+ end
18
+
19
+ task bump: [:test] do |t, args|
20
+ raise = args.to_a.fetch(0, "minor")
21
+ a = sh "git add -A && { git commit -m 'bump #{raise}' || true; } && gem bump --tag --push --release"
22
+ puts args.to_a.fetch(0, "minor")
23
+ end
24
+
25
+ Rake::TestTask.new(:test) do |t|
26
+ t.libs << "test"
27
+ t.libs << "lib"
28
+ t.test_files = FileList["test/**/test_*.rb"]
29
+ end
30
+
31
+ require "rubocop/rake_task"
32
+
33
+ RuboCop::RakeTask.new
34
+
35
+ # rake --tasks
36
+ task default: %i[test rubocop]
data/exe/brew_lib ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "pathname"
4
+
5
+ $:.unshift File.expand_path('../lib', Pathname.new(__FILE__).dirname)
6
+ require "brew_lib"
7
+
8
+ BrewLib::CLI.new(ARGV)
@@ -0,0 +1,22 @@
1
+
2
+ # Fake building extension
3
+ File.open('Makefile', 'w') { |f| f.write("all:\n\ninstall:\n\n") }
4
+ File.open('make', 'w') do |f|
5
+ f.write('#!/bin/sh')
6
+ f.chmod(f.stat.mode | 0111)
7
+ end
8
+ File.open('wrapper_installer.so', 'w') {}
9
+ File.open('wrapper_installer.dll', 'w') {}
10
+ File.open('nmake.bat', 'w') { |f| }
11
+
12
+ Gem.pre_install do |installer|
13
+ installer.spec.post_install_message = "Post-install Extension Message: #{installer.spec.name} => #{__FILE__}"
14
+ puts "Pre-install Extension: #{installer.spec.name} => #{__FILE__}"
15
+ end
16
+
17
+ Gem.post_install do |installer|
18
+ puts "Post-install Extension: #{installer.spec.name} => #{__FILE__}"
19
+ end
20
+
21
+ # just in case - it worked
22
+ true
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module BrewLib
4
+ VERSION = "0.1.3"
5
+ end
data/lib/brew_lib.rb ADDED
@@ -0,0 +1,126 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'active_support/core_ext/string'
4
+ require "optparse"
5
+ require "ostruct"
6
+
7
+ require_relative "brew_lib/version"
8
+
9
+ module BrewLib
10
+ class Error < StandardError; end
11
+
12
+ def self.pre_install
13
+ # noinspection RubyNilAnalysis
14
+ puts "Running #{__method__} => #{BrewLib.name.underscore} (#{BrewLib::VERSION})"
15
+ end
16
+
17
+ def self.pre_reset
18
+ # noinspection RubyNilAnalysis
19
+ puts "Running #{__method__} => #{BrewLib.name.underscore} (#{BrewLib::VERSION})"
20
+ end
21
+
22
+ def self.pre_uninstall
23
+ # noinspection RubyNilAnalysis
24
+ puts "Running #{__method__} => #{BrewLib.name.underscore} (#{BrewLib::VERSION})"
25
+ end
26
+
27
+ def self.post_build
28
+ # noinspection RubyNilAnalysis
29
+ puts "Running #{__method__} => #{BrewLib.name.underscore} (#{BrewLib::VERSION})"
30
+ end
31
+
32
+ def self.post_reset
33
+ # noinspection RubyNilAnalysis
34
+ puts "Running #{__method__} => #{BrewLib.name.underscore} (#{BrewLib::VERSION})"
35
+ end
36
+
37
+ def self.post_install
38
+ # noinspection RubyNilAnalysis
39
+ puts "Running #{__method__} => #{BrewLib.name.underscore} (#{BrewLib::VERSION})"
40
+ end
41
+
42
+ def self.post_uninstall
43
+ # noinspection RubyNilAnalysis
44
+ puts "Running #{__method__} => #{BrewLib.name.underscore} (#{BrewLib::VERSION})"
45
+ end
46
+
47
+ class CLI
48
+ def initialize(argv = ARGV)
49
+ exception_handling do
50
+ options_set_default
51
+ OptionParser.new do |opts|
52
+ # noinspection RubyNilAnalysis
53
+ opts.banner = "#{BrewLib.name.underscore} {options}"
54
+ opts.separator ""
55
+ opts.separator "Options are ..."
56
+
57
+ opts.on_tail("-h", "--help", "-H", "Display this help message.") do
58
+ puts opts
59
+ exit
60
+ end
61
+
62
+ options_spec.each { |args| opts.on(*args) }
63
+ end.parse(argv)
64
+ end
65
+ BrewLib.post if options.post
66
+ end
67
+
68
+ # A list of all the standard options used in rake, suitable for
69
+ # passing to OptionParser.
70
+ def options_spec # :nodoc:
71
+ [
72
+ ["--post", "-p",
73
+ "Post install " ,
74
+ lambda { |_| options.post = true }
75
+ ],
76
+ ["--silent", "-s",
77
+ "Like --quiet, but also suppresses the " +
78
+ "'in directory' announcement.",
79
+ lambda { |_| options.silent = true }
80
+ ],
81
+ ["--verbose", "-v",
82
+ "Log message to standard output.",
83
+ lambda { |_| options.verbose = true }
84
+ ],
85
+ ["--version", "-V",
86
+ "Display the program version.",
87
+ lambda { |_|
88
+ puts BrewLib::VERSION
89
+ exit
90
+ }
91
+ ],
92
+ ]
93
+ end
94
+
95
+ # Application options from the command line
96
+ def options
97
+ @options ||= OpenStruct.new
98
+ end
99
+
100
+ # set default values for options
101
+ def options_set_default
102
+ options.post = false
103
+ options.silent = false
104
+ options.verbose = false
105
+ end
106
+
107
+ # Provide standard exception handling for the given block.
108
+ def exception_handling # :nodoc:
109
+ yield
110
+ rescue SystemExit
111
+ # Exit silently with current status
112
+ raise
113
+ rescue OptionParser::InvalidOption => ex
114
+ $stderr.puts ex.message
115
+ exit(false)
116
+ rescue Exception => ex
117
+ # Exit with error message
118
+ puts ex
119
+ puts ex.backtrace unless ex.backtrace.nil?
120
+ puts ex.cause unless ex.cause.nil?
121
+ puts ex.chain unless ex.chain.nil?
122
+ exit(false)
123
+ end
124
+ end
125
+ # Your code goes here...
126
+ end
data/lib/post_build.rb ADDED
@@ -0,0 +1,3 @@
1
+ require "brew_lib"
2
+
3
+ BrewLib.post_build
@@ -0,0 +1,4 @@
1
+
2
+ require "brew_lib"
3
+
4
+ BrewLib.post_install
data/lib/post_reset.rb ADDED
@@ -0,0 +1,3 @@
1
+ require "brew_lib"
2
+
3
+ BrewLib.post_reset
@@ -0,0 +1,3 @@
1
+ require "brew_lib"
2
+
3
+ BrewLib.post_uninstall
@@ -0,0 +1,3 @@
1
+ require "brew_lib"
2
+
3
+ BrewLib.pre_install
data/lib/pre_reset.rb ADDED
@@ -0,0 +1,3 @@
1
+ require "brew_lib"
2
+
3
+ BrewLib.pre_reset
@@ -0,0 +1,3 @@
1
+ require "brew_lib"
2
+
3
+ BrewLib.pre_uninstall
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+
3
+ # https://guides.rubygems.org/plugins/
4
+
5
+ require "pathname"
6
+ def run(action, installer)
7
+ path = Pathname.new(installer.spec.lib_dirs_glob) / "#{action}.rb"
8
+ if path.exist?
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
22
+
23
+ def msg(action, installer)
24
+ puts "Finished: plugin: #{action} => #{installer.spec.name} (#{installer.spec.version})"
25
+ end
26
+
27
+ Gem.pre_install do |installer|
28
+ run "pre_install", installer
29
+ end
30
+
31
+ # Gem.pre_reset do |installer|
32
+ # run "pre_reset", installer
33
+ # end
34
+
35
+ Gem.pre_uninstall do |installer|
36
+ run "pre_uninstall", installer
37
+ end
38
+
39
+ Gem.post_build do |installer|
40
+ run "post_build", installer
41
+ end
42
+
43
+ Gem.post_install do |installer|
44
+ run "post_install", installer
45
+ end
46
+
47
+ # Gem.post_reset do |installer|
48
+ # run "post_reset", installer
49
+ # end
50
+
51
+ Gem.post_uninstall do |installer|
52
+ run "post_uninstall", installer
53
+ end
54
+
55
+ # TODO: el caller o que solo se haga una vez
56
+ =begin
57
+ bundle clean --force
58
+ gem uninstall --ignore-dependencies --all -x
59
+ gem install bundle
60
+ bundle install
61
+ =end
data/sig/brew_lib.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module BrewLib
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,306 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gem_name
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.3
5
+ platform: ruby
6
+ authors:
7
+ - root
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-05-16 00:00:00.000000000 Z
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
+ - !ruby/object:Gem::Dependency
28
+ name: awesome_print
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundle
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: aruba
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: cucumber
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: gem-release
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: irb
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: minitest
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: pry
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rake
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rb-readline
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: rspec
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: rubocop
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: rubocop-minitest
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: rubocop-rake
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: rubocop-rspec
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ description: Brew lib.
238
+ email:
239
+ - root@example.com
240
+ executables:
241
+ - brew_lib
242
+ extensions:
243
+ - ext/wrapper_installer/extconf.rb
244
+ extra_rdoc_files: []
245
+ files:
246
+ - ".idea/.gitignore"
247
+ - ".idea/brew_lib.iml"
248
+ - ".idea/codeStyles/Project.xml"
249
+ - ".idea/codeStyles/codeStyleConfig.xml"
250
+ - ".idea/fileColors.xml"
251
+ - ".idea/git_toolbox_prj.xml"
252
+ - ".idea/icon.svg"
253
+ - ".idea/inspectionProfiles/profiles_settings.xml"
254
+ - ".idea/material_theme_project.xml"
255
+ - ".idea/misc.xml"
256
+ - ".idea/modules.xml"
257
+ - ".idea/scopes/main.xml"
258
+ - ".idea/scopes/master.xml"
259
+ - ".idea/scopes/merge.xml"
260
+ - ".idea/vcs.xml"
261
+ - ".rubocop.yml"
262
+ - CODE_OF_CONDUCT.md
263
+ - Gemfile
264
+ - Gemfile.lock
265
+ - LICENSE.txt
266
+ - README.md
267
+ - Rakefile
268
+ - exe/brew_lib
269
+ - ext/wrapper_installer/extconf.rb
270
+ - lib/brew_lib.rb
271
+ - lib/brew_lib/version.rb
272
+ - lib/post_build.rb
273
+ - lib/post_install.rb
274
+ - lib/post_reset.rb
275
+ - lib/post_uninstall.rb
276
+ - lib/pre_install.rb
277
+ - lib/pre_reset.rb
278
+ - lib/pre_uninstall.rb
279
+ - lib/rubygems_plugin.rb
280
+ - sig/brew_lib.rbs
281
+ homepage: https://github.com/j5pu/brew_lib
282
+ licenses:
283
+ - MIT
284
+ metadata:
285
+ homepage_uri: https://github.com/j5pu/brew_lib
286
+ source_code_uri: https://github.com/j5pu/brew_lib
287
+ post_install_message: 'Post-install: /Users/j5pu/brew_lib'
288
+ rdoc_options: []
289
+ require_paths:
290
+ - lib
291
+ required_ruby_version: !ruby/object:Gem::Requirement
292
+ requirements:
293
+ - - ">="
294
+ - !ruby/object:Gem::Version
295
+ version: 2.6.0
296
+ required_rubygems_version: !ruby/object:Gem::Requirement
297
+ requirements:
298
+ - - ">="
299
+ - !ruby/object:Gem::Version
300
+ version: '0'
301
+ requirements: []
302
+ rubygems_version: 3.0.3.1
303
+ signing_key:
304
+ specification_version: 4
305
+ summary: Brew lib.
306
+ test_files: []