install_gem_local 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ad21b650e8c766e21a99751f6b2a00e16f46bc7d8a6639fbb6b7b8610079ee2
4
- data.tar.gz: b6343335eeae55555ed1d7ddc9915ce11bd237eb0b7340b67d2dbbf14bf038b5
3
+ metadata.gz: 2969eb3b00d51aa37299e1c52a0c26e4ae4ba86e7fb6eda74fe3001990b6d8a4
4
+ data.tar.gz: a2977f006134da0e764e459ae7fb8214c47a7d90db55356e08bc4773d8ea8c0a
5
5
  SHA512:
6
- metadata.gz: c55e63cc28727fe240fa710d3aa433da7b9be9e1fd3c6a1a4cc50c33a65f83c41ec37a577e44cb0b7b693443d2fac4163b631d35ddc51997bdce879235c951fd
7
- data.tar.gz: bd8f4ad9db1491a2eb1d9f59f083842c87d9f740337af0bffe211c5213a9dce14fe8abb64328e6198eb0c704d4a83ad1fe73c0fd7f7f6a67c4262f32350189eb
6
+ metadata.gz: 5a057b98d5106e62aa7a7746b9f303b66952342da00141ec845a6c3fd5327f9e1128ea5c75f59ce9a2446342958f847dfbdd10e686d77e49b4277f919a72ccd2
7
+ data.tar.gz: ecd9a5522370418aa8b149b2cdda95c262bef0655d0dfdcb7ea8a6c48bc3d7ba41b5865e80b010a637c2c64dfeb08b8cc6a360082251b113f4988cba37db8388
data/.idea/.rakeTasks CHANGED
@@ -4,4 +4,4 @@ You are allowed to:
4
4
  1. Remove rake task
5
5
  2. Add existing rake tasks
6
6
  To add existing rake tasks automatically delete this file and reload the project.
7
- --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build install_gem-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install install_gem-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install install_gem-0.1.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.1.0 and build and push install_gem-0.1.0.gem to TODO: Set to 'http://mygemserver.com'" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
7
+ --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build install_gem_local-0.1.1.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install install_gem_local-0.1.1.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install install_gem_local-0.1.1.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.1.1 and build and push install_gem_local-0.1.1.gem to rubygems.org" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
@@ -7,13 +7,16 @@
7
7
  <content url="file://$MODULE_DIR$" />
8
8
  <orderEntry type="inheritedJdk" />
9
9
  <orderEntry type="sourceFolder" forTests="false" />
10
+ <orderEntry type="library" scope="PROVIDED" name="ast (v2.4.0, RVM: ruby-2.5.0) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="awesome_print (v1.8.0, RVM: ruby-2.5.0) [gem]" level="application" />
10
12
  <orderEntry type="library" scope="PROVIDED" name="bundler (v2.0.1, RVM: ruby-2.5.0) [gem]" level="application" />
11
13
  <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, RVM: ruby-2.5.0) [gem]" level="application" />
14
+ <orderEntry type="library" scope="PROVIDED" name="rainbow (v3.0.0, RVM: ruby-2.5.0) [gem]" level="application" />
12
15
  <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, RVM: ruby-2.5.0) [gem]" level="application" />
13
16
  <orderEntry type="library" scope="PROVIDED" name="rspec (v3.8.0, RVM: ruby-2.5.0) [gem]" level="application" />
14
17
  <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.8.0, RVM: ruby-2.5.0) [gem]" level="application" />
15
- <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.8.2, RVM: ruby-2.5.0) [gem]" level="application" />
16
18
  <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.8.0, RVM: ruby-2.5.0) [gem]" level="application" />
17
19
  <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.8.0, RVM: ruby-2.5.0) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="thor (v0.20.3, RVM: ruby-2.5.0) [gem]" level="application" />
18
21
  </component>
19
22
  </module>
data/.idea/workspace.xml CHANGED
@@ -1,7 +1,16 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
- <list default="true" id="874fc890-32ab-445d-a959-19a36d14995e" name="Default Changelist" comment="" />
4
+ <list default="true" id="874fc890-32ab-445d-a959-19a36d14995e" name="Default Changelist" comment="">
5
+ <change beforePath="$PROJECT_DIR$/.idea/.rakeTasks" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.rakeTasks" afterDir="false" />
6
+ <change beforePath="$PROJECT_DIR$/.idea/install_gem.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/install_gem.iml" afterDir="false" />
7
+ <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
8
+ <change beforePath="$PROJECT_DIR$/Gemfile" beforeDir="false" afterPath="$PROJECT_DIR$/Gemfile" afterDir="false" />
9
+ <change beforePath="$PROJECT_DIR$/Gemfile.lock" beforeDir="false" afterPath="$PROJECT_DIR$/Gemfile.lock" afterDir="false" />
10
+ <change beforePath="$PROJECT_DIR$/lib/install_gem_local.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/install_gem_local.rb" afterDir="false" />
11
+ <change beforePath="$PROJECT_DIR$/lib/install_gem_local/action.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/install_gem_local/action.rb" afterDir="false" />
12
+ <change beforePath="$PROJECT_DIR$/lib/install_gem_local/navigation.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/install_gem_local/navigation.rb" afterDir="false" />
13
+ </list>
5
14
  <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
6
15
  <option name="SHOW_DIALOG" value="false" />
7
16
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -11,52 +20,52 @@
11
20
  <component name="FileEditorManager">
12
21
  <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
13
22
  <file pinned="false" current-in-tab="false">
14
- <entry file="file://$PROJECT_DIR$/../install_gem_local/lib/install_gem_local.rb">
23
+ <entry file="file://$PROJECT_DIR$/lib/install_gem_local.rb">
15
24
  <provider selected="true" editor-type-id="text-editor">
16
- <state relative-caret-position="114">
17
- <caret line="6" selection-start-line="6" selection-end-line="6" />
25
+ <state relative-caret-position="76">
26
+ <caret line="4" column="21" selection-start-line="4" selection-start-column="21" selection-end-line="4" selection-end-column="21" />
18
27
  </state>
19
28
  </provider>
20
29
  </entry>
21
30
  </file>
22
- <file pinned="false" current-in-tab="true">
23
- <entry file="file://$PROJECT_DIR$/../install_gem_local/Gemfile">
31
+ <file pinned="false" current-in-tab="false">
32
+ <entry file="file://$PROJECT_DIR$/Gemfile">
24
33
  <provider selected="true" editor-type-id="text-editor">
25
- <state relative-caret-position="95">
26
- <caret line="5" column="9" selection-start-line="5" selection-start-column="9" selection-end-line="5" selection-end-column="9" />
34
+ <state relative-caret-position="380">
35
+ <caret line="20" column="16" selection-start-line="20" selection-start-column="16" selection-end-line="20" selection-end-column="16" />
27
36
  </state>
28
37
  </provider>
29
38
  </entry>
30
39
  </file>
31
40
  <file pinned="false" current-in-tab="false">
32
- <entry file="file://$PROJECT_DIR$/../install_gem_local/spec/spec_helper.rb">
41
+ <entry file="file://$PROJECT_DIR$/lib/install_gem_local/navigation.rb">
33
42
  <provider selected="true" editor-type-id="text-editor">
34
- <state relative-caret-position="266">
35
- <caret line="14" selection-start-line="14" selection-end-line="14" />
43
+ <state relative-caret-position="171">
44
+ <caret line="9" column="34" selection-start-line="9" selection-start-column="34" selection-end-line="9" selection-end-column="34" />
36
45
  </state>
37
46
  </provider>
38
47
  </entry>
39
48
  </file>
40
- <file pinned="false" current-in-tab="false">
41
- <entry file="file://$PROJECT_DIR$/../install_gem_local/spec/install_gem_local_spec.rb">
49
+ <file pinned="false" current-in-tab="true">
50
+ <entry file="file://$PROJECT_DIR$/lib/install_gem_local/action.rb">
42
51
  <provider selected="true" editor-type-id="text-editor">
43
- <state relative-caret-position="38">
44
- <caret line="2" column="26" selection-start-line="2" selection-start-column="26" selection-end-line="2" selection-end-column="26" />
52
+ <state relative-caret-position="779">
53
+ <caret line="41" column="18" lean-forward="true" selection-start-line="41" selection-start-column="18" selection-end-line="41" selection-end-column="18" />
45
54
  </state>
46
55
  </provider>
47
56
  </entry>
48
57
  </file>
49
58
  <file pinned="false" current-in-tab="false">
50
- <entry file="file://$PROJECT_DIR$/../install_gem_local/bin/console">
59
+ <entry file="file://$PROJECT_DIR$/spec/install_gem_local_spec.rb">
51
60
  <provider selected="true" editor-type-id="text-editor">
52
- <state relative-caret-position="57">
53
- <caret line="3" column="26" selection-start-line="3" selection-start-column="26" selection-end-line="3" selection-end-column="26" />
61
+ <state relative-caret-position="76">
62
+ <caret line="4" column="26" selection-start-line="4" selection-start-column="26" selection-end-line="4" selection-end-column="26" />
54
63
  </state>
55
64
  </provider>
56
65
  </entry>
57
66
  </file>
58
67
  <file pinned="false" current-in-tab="false">
59
- <entry file="file://$PROJECT_DIR$/../install_gem_local/README.md">
68
+ <entry file="file://$PROJECT_DIR$/README.md">
60
69
  <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
61
70
  <state split_layout="SPLIT">
62
71
  <first_editor relative-caret-position="209">
@@ -68,29 +77,33 @@
68
77
  </entry>
69
78
  </file>
70
79
  <file pinned="false" current-in-tab="false">
71
- <entry file="file://$PROJECT_DIR$/../install_gem_local/.rspec">
80
+ <entry file="file://$PROJECT_DIR$/.rspec">
72
81
  <provider selected="true" editor-type-id="text-editor" />
73
82
  </entry>
74
83
  </file>
75
84
  <file pinned="false" current-in-tab="false">
76
- <entry file="file://$PROJECT_DIR$/../install_gem_local/Rakefile">
77
- <provider selected="true" editor-type-id="text-editor" />
85
+ <entry file="file://$PROJECT_DIR$/install_gem_local.gemspec">
86
+ <provider selected="true" editor-type-id="text-editor">
87
+ <state relative-caret-position="76">
88
+ <caret line="4" column="20" selection-start-line="4" selection-start-column="20" selection-end-line="4" selection-end-column="20" />
89
+ </state>
90
+ </provider>
78
91
  </entry>
79
92
  </file>
80
93
  <file pinned="false" current-in-tab="false">
81
- <entry file="file://$PROJECT_DIR$/../install_gem_local/install_gem_local.gemspec">
94
+ <entry file="file://$PROJECT_DIR$/exe/install_gem_local">
82
95
  <provider selected="true" editor-type-id="text-editor">
83
- <state relative-caret-position="152">
84
- <caret line="8" column="38" selection-start-line="8" selection-start-column="38" selection-end-line="8" selection-end-column="38" />
96
+ <state relative-caret-position="114">
97
+ <caret line="6" column="35" selection-start-line="6" selection-start-column="35" selection-end-line="6" selection-end-column="35" />
85
98
  </state>
86
99
  </provider>
87
100
  </entry>
88
101
  </file>
89
102
  <file pinned="false" current-in-tab="false">
90
- <entry file="file://$PROJECT_DIR$/../install_gem_local/lib/install_gem_local/version.rb">
103
+ <entry file="file://$PROJECT_DIR$/lib/install_gem_local/version.rb">
91
104
  <provider selected="true" editor-type-id="text-editor">
92
- <state>
93
- <caret column="22" selection-start-column="22" selection-end-column="22" />
105
+ <state relative-caret-position="38">
106
+ <caret line="2" column="22" selection-start-line="2" selection-start-column="22" selection-end-line="2" selection-end-column="22" />
94
107
  </state>
95
108
  </provider>
96
109
  </entry>
@@ -114,18 +127,23 @@
114
127
  <option value="$PROJECT_DIR$/install_gem.gemspec" />
115
128
  <option value="$PROJECT_DIR$/lib/install_gem_local/version.rb" />
116
129
  <option value="$PROJECT_DIR$/install_gem_local.gemspec" />
117
- <option value="$PROJECT_DIR$/lib/install_gem_local.rb" />
118
130
  <option value="$PROJECT_DIR$/spec/spec_helper.rb" />
119
131
  <option value="$PROJECT_DIR$/spec/install_gem_local_spec.rb" />
120
132
  <option value="$PROJECT_DIR$/bin/console" />
121
133
  <option value="$PROJECT_DIR$/README.md" />
122
- <option value="$PROJECT_DIR$/../install_gem_local/Gemfile" />
134
+ <option value="$PROJECT_DIR$/install_gem_local.gemspec" />
135
+ <option value="$PROJECT_DIR$/exe/install_gem_local" />
136
+ <option value="$PROJECT_DIR$/Gemfile" />
137
+ <option value="$PROJECT_DIR$/lib/install_gem_local.rb" />
138
+ <option value="$PROJECT_DIR$/lib/install_gem_local.rb" />
139
+ <option value="$PROJECT_DIR$/lib/install_gem_local/navigation.rb" />
140
+ <option value="$PROJECT_DIR$/lib/install_gem_local/action.rb" />
123
141
  </list>
124
142
  </option>
125
143
  </component>
126
144
  <component name="ProjectFrameBounds" extendedState="6">
127
145
  <option name="y" value="27" />
128
- <option name="width" value="1366" />
146
+ <option name="width" value="1024" />
129
147
  <option name="height" value="741" />
130
148
  </component>
131
149
  <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
@@ -134,25 +152,41 @@
134
152
  <foldersAlwaysOnTop value="true" />
135
153
  </navigator>
136
154
  <panes>
137
- <pane id="Scope" />
138
155
  <pane id="ProjectPane">
139
156
  <subPane>
140
157
  <expand>
141
158
  <path>
142
- <item name="install_gem" type="b2602c69:ProjectViewProjectNode" />
159
+ <item name="install_gem_local" type="b2602c69:ProjectViewProjectNode" />
160
+ <item name="install_gem_local" type="462c0819:PsiDirectoryNode" />
161
+ </path>
162
+ <path>
163
+ <item name="install_gem_local" type="b2602c69:ProjectViewProjectNode" />
164
+ <item name="install_gem_local" type="462c0819:PsiDirectoryNode" />
165
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
166
+ </path>
167
+ <path>
168
+ <item name="install_gem_local" type="b2602c69:ProjectViewProjectNode" />
169
+ <item name="install_gem_local" type="462c0819:PsiDirectoryNode" />
170
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
143
171
  <item name="install_gem_local" type="462c0819:PsiDirectoryNode" />
144
172
  </path>
145
173
  </expand>
146
174
  <select />
147
175
  </subPane>
148
176
  </pane>
177
+ <pane id="Scope" />
149
178
  </panes>
150
179
  </component>
151
180
  <component name="PropertiesComponent">
181
+ <property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
152
182
  <property name="WebServerToolWindowFactoryState" value="false" />
153
183
  <property name="last_opened_file_path" value="$PROJECT_DIR$" />
184
+ <property name="node.js.detected.package.eslint" value="true" />
185
+ <property name="node.js.path.for.package.eslint" value="project" />
186
+ <property name="node.js.selected.package.eslint" value="(autodetect)" />
154
187
  <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
155
188
  <property name="nodejs_npm_path_reset_for_default_project" value="true" />
189
+ <property name="nodejs_package_manager_path" value="npm" />
156
190
  </component>
157
191
  <component name="RunDashboard">
158
192
  <option name="ruleStates">
@@ -178,18 +212,19 @@
178
212
  <option name="presentableId" value="Default" />
179
213
  <updated>1557837122562</updated>
180
214
  <workItem from="1557837124078" duration="1147000" />
181
- <workItem from="1557893232515" duration="1676000" />
215
+ <workItem from="1557893232515" duration="6077000" />
216
+ <workItem from="1557900433747" duration="11145000" />
182
217
  </task>
183
218
  <servers />
184
219
  </component>
185
220
  <component name="TimeTrackingManager">
186
- <option name="totallyTimeSpent" value="2823000" />
221
+ <option name="totallyTimeSpent" value="18369000" />
187
222
  </component>
188
223
  <component name="ToolWindowManager">
189
224
  <frame x="0" y="27" width="1920" height="1053" extended-state="6" />
190
225
  <editor active="true" />
191
226
  <layout>
192
- <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.25320512" />
227
+ <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.18910256" />
193
228
  <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
194
229
  <window_info id="Favorites" order="2" side_tool="true" />
195
230
  <window_info anchor="bottom" id="Message" order="0" />
@@ -214,68 +249,89 @@
214
249
  <option name="version" value="1" />
215
250
  </component>
216
251
  <component name="editorHistoryManager">
217
- <entry file="file://$PROJECT_DIR$/../install_gem_local/Rakefile">
252
+ <entry file="file://$PROJECT_DIR$/Rakefile">
218
253
  <provider selected="true" editor-type-id="text-editor" />
219
254
  </entry>
220
- <entry file="file://$PROJECT_DIR$/../install_gem_local/lib/install_gem_local/version.rb">
255
+ <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
221
256
  <provider selected="true" editor-type-id="text-editor">
222
- <state>
223
- <caret column="22" selection-start-column="22" selection-end-column="22" />
257
+ <state relative-caret-position="304">
258
+ <caret line="16" selection-start-line="16" selection-end-line="16" />
224
259
  </state>
225
260
  </provider>
226
261
  </entry>
227
- <entry file="file://$PROJECT_DIR$/../install_gem_local/install_gem_local.gemspec">
262
+ <entry file="file://$PROJECT_DIR$/bin/console">
228
263
  <provider selected="true" editor-type-id="text-editor">
229
- <state relative-caret-position="152">
230
- <caret line="8" column="38" selection-start-line="8" selection-start-column="38" selection-end-line="8" selection-end-column="38" />
264
+ <state relative-caret-position="76">
265
+ <caret line="4" column="26" selection-start-line="4" selection-start-column="26" selection-end-line="4" selection-end-column="26" />
231
266
  </state>
232
267
  </provider>
233
268
  </entry>
234
- <entry file="file://$PROJECT_DIR$/../install_gem_local/spec/spec_helper.rb">
235
- <provider selected="true" editor-type-id="text-editor">
236
- <state relative-caret-position="266">
237
- <caret line="14" selection-start-line="14" selection-end-line="14" />
269
+ <entry file="file://$PROJECT_DIR$/README.md">
270
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
271
+ <state split_layout="SPLIT">
272
+ <first_editor relative-caret-position="209">
273
+ <caret line="11" column="22" selection-start-line="11" selection-start-column="22" selection-end-line="11" selection-end-column="22" />
274
+ </first_editor>
275
+ <second_editor />
238
276
  </state>
239
277
  </provider>
240
278
  </entry>
241
- <entry file="file://$PROJECT_DIR$/../install_gem_local/spec/install_gem_local_spec.rb">
279
+ <entry file="file://$PROJECT_DIR$/.rspec">
280
+ <provider selected="true" editor-type-id="text-editor" />
281
+ </entry>
282
+ <entry file="file://$PROJECT_DIR$/lib/install_gem_local/version.rb">
242
283
  <provider selected="true" editor-type-id="text-editor">
243
284
  <state relative-caret-position="38">
244
- <caret line="2" column="26" selection-start-line="2" selection-start-column="26" selection-end-line="2" selection-end-column="26" />
285
+ <caret line="2" column="22" selection-start-line="2" selection-start-column="22" selection-end-line="2" selection-end-column="22" />
245
286
  </state>
246
287
  </provider>
247
288
  </entry>
248
- <entry file="file://$PROJECT_DIR$/../install_gem_local/bin/console">
289
+ <entry file="file://$PROJECT_DIR$/install_gem_local.gemspec">
249
290
  <provider selected="true" editor-type-id="text-editor">
250
- <state relative-caret-position="57">
251
- <caret line="3" column="26" selection-start-line="3" selection-start-column="26" selection-end-line="3" selection-end-column="26" />
291
+ <state relative-caret-position="76">
292
+ <caret line="4" column="20" selection-start-line="4" selection-start-column="20" selection-end-line="4" selection-end-column="20" />
252
293
  </state>
253
294
  </provider>
254
295
  </entry>
255
- <entry file="file://$PROJECT_DIR$/../install_gem_local/README.md">
256
- <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
257
- <state split_layout="SPLIT">
258
- <first_editor relative-caret-position="209">
259
- <caret line="11" column="22" selection-start-line="11" selection-start-column="22" selection-end-line="11" selection-end-column="22" />
260
- </first_editor>
261
- <second_editor />
296
+ <entry file="file://$PROJECT_DIR$/spec/install_gem_local_spec.rb">
297
+ <provider selected="true" editor-type-id="text-editor">
298
+ <state relative-caret-position="76">
299
+ <caret line="4" column="26" selection-start-line="4" selection-start-column="26" selection-end-line="4" selection-end-column="26" />
262
300
  </state>
263
301
  </provider>
264
302
  </entry>
265
- <entry file="file://$PROJECT_DIR$/../install_gem_local/.rspec">
266
- <provider selected="true" editor-type-id="text-editor" />
267
- </entry>
268
- <entry file="file://$PROJECT_DIR$/../install_gem_local/lib/install_gem_local.rb">
303
+ <entry file="file://$PROJECT_DIR$/exe/install_gem_local">
269
304
  <provider selected="true" editor-type-id="text-editor">
270
305
  <state relative-caret-position="114">
271
- <caret line="6" selection-start-line="6" selection-end-line="6" />
306
+ <caret line="6" column="35" selection-start-line="6" selection-start-column="35" selection-end-line="6" selection-end-column="35" />
307
+ </state>
308
+ </provider>
309
+ </entry>
310
+ <entry file="file://$PROJECT_DIR$/Gemfile">
311
+ <provider selected="true" editor-type-id="text-editor">
312
+ <state relative-caret-position="380">
313
+ <caret line="20" column="16" selection-start-line="20" selection-start-column="16" selection-end-line="20" selection-end-column="16" />
314
+ </state>
315
+ </provider>
316
+ </entry>
317
+ <entry file="file://$PROJECT_DIR$/lib/install_gem_local.rb">
318
+ <provider selected="true" editor-type-id="text-editor">
319
+ <state relative-caret-position="76">
320
+ <caret line="4" column="21" selection-start-line="4" selection-start-column="21" selection-end-line="4" selection-end-column="21" />
321
+ </state>
322
+ </provider>
323
+ </entry>
324
+ <entry file="file://$PROJECT_DIR$/lib/install_gem_local/navigation.rb">
325
+ <provider selected="true" editor-type-id="text-editor">
326
+ <state relative-caret-position="171">
327
+ <caret line="9" column="34" selection-start-line="9" selection-start-column="34" selection-end-line="9" selection-end-column="34" />
272
328
  </state>
273
329
  </provider>
274
330
  </entry>
275
- <entry file="file://$PROJECT_DIR$/../install_gem_local/Gemfile">
331
+ <entry file="file://$PROJECT_DIR$/lib/install_gem_local/action.rb">
276
332
  <provider selected="true" editor-type-id="text-editor">
277
- <state relative-caret-position="95">
278
- <caret line="5" column="9" selection-start-line="5" selection-start-column="9" selection-end-line="5" selection-end-column="9" />
333
+ <state relative-caret-position="779">
334
+ <caret line="41" column="18" lean-forward="true" selection-start-line="41" selection-start-column="18" selection-end-line="41" selection-end-column="18" />
279
335
  </state>
280
336
  </provider>
281
337
  </entry>
data/Gemfile CHANGED
@@ -1,6 +1,21 @@
1
- source "https://rubygems.org"
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
2
4
 
3
5
  # Specify your gem's dependencies in install_gem.gemspec
4
6
  gemspec
5
7
 
8
+ # cops
9
+ gem 'rubocop'
10
+
11
+ # CLI
6
12
  gem 'thor'
13
+
14
+ # CLI options
15
+ gem 'downup'
16
+
17
+ # pretty puts
18
+ gem 'awesome_print'
19
+
20
+ # Execute shell commands with pretty output
21
+ gem 'tty-command'
data/Gemfile.lock CHANGED
@@ -6,7 +6,19 @@ PATH
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
+ ast (2.4.0)
10
+ awesome_print (1.8.0)
9
11
  diff-lcs (1.3)
12
+ downup (0.11.7)
13
+ equatable (0.5.0)
14
+ jaro_winkler (1.5.2)
15
+ parallel (1.17.0)
16
+ parser (2.6.3.0)
17
+ ast (~> 2.4.0)
18
+ pastel (0.7.2)
19
+ equatable (~> 0.5.0)
20
+ tty-color (~> 0.4.0)
21
+ rainbow (3.0.0)
10
22
  rake (10.5.0)
11
23
  rspec (3.8.0)
12
24
  rspec-core (~> 3.8.0)
@@ -21,17 +33,33 @@ GEM
21
33
  diff-lcs (>= 1.2.0, < 2.0)
22
34
  rspec-support (~> 3.8.0)
23
35
  rspec-support (3.8.0)
36
+ rubocop (0.69.0)
37
+ jaro_winkler (~> 1.5.1)
38
+ parallel (~> 1.10)
39
+ parser (>= 2.6)
40
+ rainbow (>= 2.2.2, < 4.0)
41
+ ruby-progressbar (~> 1.7)
42
+ unicode-display_width (>= 1.4.0, < 1.7)
43
+ ruby-progressbar (1.10.0)
24
44
  thor (0.20.3)
45
+ tty-color (0.4.3)
46
+ tty-command (0.8.2)
47
+ pastel (~> 0.7.0)
48
+ unicode-display_width (1.6.0)
25
49
 
26
50
  PLATFORMS
27
51
  ruby
28
52
 
29
53
  DEPENDENCIES
54
+ awesome_print
30
55
  bundler (~> 2.0)
56
+ downup
31
57
  install_gem_local!
32
58
  rake (~> 10.0)
33
59
  rspec (~> 3.0)
60
+ rubocop
34
61
  thor
62
+ tty-command
35
63
 
36
64
  BUNDLED WITH
37
65
  2.0.1
data/Rakefile CHANGED
@@ -1,6 +1,8 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
3
5
 
4
6
  RSpec::Core::RakeTask.new(:spec)
5
7
 
6
- task :default => :spec
8
+ task default: :spec
data/bin/console CHANGED
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
- require "bundler/setup"
4
- require "install_gem_local"
4
+ require 'bundler/setup'
5
+ require 'install_gem_local'
5
6
 
6
7
  # You can add fixtures and/or initialization code here to make experimenting
7
8
  # with your gem easier. You can also use a different console, if you like.
@@ -10,5 +11,5 @@ require "install_gem_local"
10
11
  # require "pry"
11
12
  # Pry.start
12
13
 
13
- require "irb"
14
+ require 'irb'
14
15
  IRB.start(__FILE__)
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require_relative '../lib/install_gem_local'
5
+
6
+ if ARGV[0].nil?
7
+ InstallGemLocal::Navigation.start
8
+ else
9
+ InstallGemLocal::App.start(ARGV)
10
+ end
@@ -1,43 +1,30 @@
1
+ # frozen_string_literal: true
1
2
 
2
- lib = File.expand_path("../lib", __FILE__)
3
+ lib = File.expand_path('lib', __dir__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "install_gem_local/version"
5
+ require 'install_gem_local/version'
5
6
 
6
7
  Gem::Specification.new do |spec|
7
- spec.name = "install_gem_local"
8
- spec.name = "install_gem_local"
8
+ spec.name = 'install_gem_local'
9
9
  spec.version = InstallGemLocal::VERSION
10
- spec.authors = ["Dhanabal T"]
11
- spec.email = ["vel.dhanabal@gmail.com"]
10
+ spec.authors = ['Dhanabal T']
11
+ spec.email = ['vel.dhanabal@gmail.com']
12
12
 
13
- spec.summary = %q{to build and install the gem in my local}
14
- spec.description = %q{to build and install the gem in my local}
15
- spec.homepage = "https://github.com/dhanabalt/install_gem_local"
16
- spec.license = "MIT"
17
-
18
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
19
- # to allow pushing to a single host or delete this section to allow pushing to any host.
20
- if spec.respond_to?(:metadata)
21
- spec.metadata["allowed_push_host"] = "https://rubygems.org"
22
-
23
- spec.metadata["homepage_uri"] = spec.homepage
24
- spec.metadata["source_code_uri"] = "https://github.com/dhanabalt/install_gem_local"
25
- spec.metadata["changelog_uri"] = "https://github.com/dhanabalt/install_gem_local"
26
- else
27
- raise "RubyGems 2.0 or newer is required to protect against " \
28
- "public gem pushes."
29
- end
13
+ spec.summary = 'install the gem in my local'
14
+ spec.description = 'to build and install the gem in my local'
15
+ spec.homepage = 'https://github.com/dhanabalt/install_gem_local'
16
+ spec.license = 'MIT'
30
17
 
31
18
  # Specify which files should be added to the gem when it is released.
32
19
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
33
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
20
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
34
21
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
35
22
  end
36
- spec.bindir = "exe"
37
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
38
- spec.require_paths = ["lib"]
23
+ spec.bindir = 'exe'
24
+ spec.executables = ['install_gem_local']
25
+ spec.require_paths = ['lib']
39
26
 
40
- spec.add_development_dependency "bundler", "~> 2.0"
41
- spec.add_development_dependency "rake", "~> 10.0"
42
- spec.add_development_dependency "rspec", "~> 3.0"
27
+ spec.add_development_dependency 'bundler', '~> 2.0'
28
+ spec.add_development_dependency 'rake', '~> 10.0'
29
+ spec.add_development_dependency 'rspec', '~> 3.0'
43
30
  end
@@ -1,6 +1,18 @@
1
- require "install_gem_local/version"
1
+ # frozen_string_literal: true
2
+ require 'thor'
3
+ require 'downup'
4
+ require 'awesome_print'
5
+ require 'tty-command'
6
+
7
+ require 'install_gem_local/version'
8
+ require 'install_gem_local/navigation'
9
+ require 'install_gem_local/action'
2
10
 
3
11
  module InstallGemLocal
4
- class Error < StandardError; end
5
- # Your code goes here...
12
+ class App < Thor
13
+ desc 'usage', 'list all commands'
14
+ def usage
15
+
16
+ end
17
+ end
6
18
  end
@@ -0,0 +1,48 @@
1
+ module InstallGemLocal
2
+ class Action
3
+ class << self
4
+ def remove_gem
5
+ cmd = TTY::Command.new
6
+ file = cmd.run('find -type f -name "*.gem"')
7
+ ap file_name = file.out.strip
8
+ file_name.empty? ? ap('Gem not exist') : cmd.run("rm #{file_name}")
9
+
10
+ rescue StandardError => e
11
+ ap e
12
+ ap 'Something Wrong! Try again!'
13
+ end
14
+
15
+ def build_gem
16
+ puts '-----------------------------'
17
+ puts ''
18
+ cmd = TTY::Command.new
19
+ file = cmd.run('find -type f -name "*.gemspec"')
20
+ ap file_name = file.out.strip
21
+ file_name.empty? ? ap('Gemspec not exist') : cmd.run("gem build #{file_name}")
22
+
23
+ rescue StandardError => e
24
+ ap e
25
+ ap 'Something Wrong! Try again!'
26
+ end
27
+
28
+ def install_gem
29
+ puts '-----------------------------'
30
+ puts ''
31
+ cmd = TTY::Command.new
32
+ file = cmd.run('find -type f -name "*.gem"')
33
+ ap file_name = file.out.strip
34
+ file_name.empty? ? ap('Gem not exist') : cmd.run("gem install #{file_name}")
35
+
36
+ rescue StandardError => e
37
+ ap e
38
+ ap 'Something Wrong! Try again!'
39
+ end
40
+
41
+ def aoa
42
+ remove_gem
43
+ build_gem
44
+ install_gem
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,30 @@
1
+ module InstallGemLocal
2
+ class Navigation
3
+ class << self
4
+ def start
5
+ options = {
6
+ "a" => {"value" => 'remove', "display" => 'Remove old version'},
7
+ "b" => {"value" => 'build', "display" => 'Build new version'},
8
+ "c" => {"value" => 'install', "display" => 'Install new version'},
9
+ "d" => {"value" => 'aoa', "display" => 'Remove old version, build and install the new version'},
10
+ "/" => {"value" => "exit", "display" => "Exit"}
11
+ }
12
+
13
+ selection = Downup::Base.new(flash_message: 'Select Action', options: options).prompt
14
+
15
+ ap selection
16
+
17
+ case selection
18
+ when 'remove'
19
+ InstallGemLocal::Action.remove_gem
20
+ when 'build'
21
+ InstallGemLocal::Action.build_gem
22
+ when 'install'
23
+ InstallGemLocal::Action.install_gem
24
+ when 'aoa'
25
+ InstallGemLocal::Action.aoa
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module InstallGemLocal
2
- VERSION = "0.1.1"
4
+ VERSION = '0.1.2'
3
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: install_gem_local
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dhanabal T
@@ -55,7 +55,8 @@ dependencies:
55
55
  description: to build and install the gem in my local
56
56
  email:
57
57
  - vel.dhanabal@gmail.com
58
- executables: []
58
+ executables:
59
+ - install_gem_local
59
60
  extensions: []
60
61
  extra_rdoc_files: []
61
62
  files:
@@ -77,17 +78,16 @@ files:
77
78
  - Rakefile
78
79
  - bin/console
79
80
  - bin/setup
81
+ - exe/install_gem_local
80
82
  - install_gem_local.gemspec
81
83
  - lib/install_gem_local.rb
84
+ - lib/install_gem_local/action.rb
85
+ - lib/install_gem_local/navigation.rb
82
86
  - lib/install_gem_local/version.rb
83
87
  homepage: https://github.com/dhanabalt/install_gem_local
84
88
  licenses:
85
89
  - MIT
86
- metadata:
87
- allowed_push_host: https://rubygems.org
88
- homepage_uri: https://github.com/dhanabalt/install_gem_local
89
- source_code_uri: https://github.com/dhanabalt/install_gem_local
90
- changelog_uri: https://github.com/dhanabalt/install_gem_local
90
+ metadata: {}
91
91
  post_install_message:
92
92
  rdoc_options: []
93
93
  require_paths:
@@ -106,5 +106,5 @@ requirements: []
106
106
  rubygems_version: 3.0.3
107
107
  signing_key:
108
108
  specification_version: 4
109
- summary: to build and install the gem in my local
109
+ summary: install the gem in my local
110
110
  test_files: []