install_gem_local 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/install_gem_local/action.rb +1 -1
- data/lib/install_gem_local/action/copy_gem.rb +5 -2
- data/lib/install_gem_local/action/push_gem.rb +1 -1
- data/lib/install_gem_local/helper.rb +12 -0
- data/lib/install_gem_local/navigation.rb +2 -4
- data/lib/install_gem_local/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e95eaf1add788ed287e60e43b3a6a2fa4e3f18cab8456541b290fdc646a5aaab
|
4
|
+
data.tar.gz: 9d14764e7ff8ea580c812912387ebef5d5883a41c26d87ffae956b345e5777fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fc4343902cdf09d61772f864c8920b8f51714f6f11c4a52aeff04ba5f35340ea80613e4f6d93fa3e9bc1d0463be2a8d5d4dece8f59d3a5da4427689c7a7b78f
|
7
|
+
data.tar.gz: e6a20b7ccd1c7c2bb07c35890f594d827a79ed3a3a9a64af3c897ce370b1c947bd832001778877df9e690faac2a5250ab244c5e3e7937fc0ecbf275fd66def03
|
data/Gemfile.lock
CHANGED
@@ -39,7 +39,7 @@ module InstallGemLocal
|
|
39
39
|
end
|
40
40
|
options['/'] = { 'value' => 'exit', 'display' => 'Exit' }
|
41
41
|
InstallGemLocal::Helper.prompt_options(
|
42
|
-
flash_message: 'Choose which version',
|
42
|
+
flash_message: InstallGemLocal::Helper.flash_message(title: 'Choose which version'),
|
43
43
|
options: options
|
44
44
|
)
|
45
45
|
end
|
@@ -11,7 +11,7 @@ module InstallGemLocal
|
|
11
11
|
}
|
12
12
|
|
13
13
|
InstallGemLocal::Helper.prompt_options(
|
14
|
-
flash_message: 'Choose Folder To Copy',
|
14
|
+
flash_message: InstallGemLocal::Helper.flash_message(title: 'Choose Folder To Copy'),
|
15
15
|
options: options
|
16
16
|
)
|
17
17
|
end
|
@@ -33,7 +33,10 @@ module InstallGemLocal
|
|
33
33
|
def copy_file_to_path(file_name)
|
34
34
|
return if file_name == 'exit'
|
35
35
|
|
36
|
-
|
36
|
+
folder_name = choose_copy_folder
|
37
|
+
puts "Copying gem to #{folder_name}"
|
38
|
+
|
39
|
+
case folder_name
|
37
40
|
when 'desktop'
|
38
41
|
tty_command.run("cp #{file_name} ~/Desktop")
|
39
42
|
when 'downloads'
|
@@ -10,6 +10,18 @@ module InstallGemLocal
|
|
10
10
|
flash_color: flash_color,
|
11
11
|
).prompt
|
12
12
|
end
|
13
|
+
|
14
|
+
def flash_message(title: "")
|
15
|
+
message = <<-STR
|
16
|
+
█████ ███████ █
|
17
|
+
█ █ █
|
18
|
+
█ █ █
|
19
|
+
█ █ ███ █
|
20
|
+
█ █ █ █
|
21
|
+
█████ ███████ ███████ #{title}
|
22
|
+
STR
|
23
|
+
end
|
24
|
+
|
13
25
|
end
|
14
26
|
end
|
15
27
|
end
|
@@ -16,15 +16,13 @@ module InstallGemLocal
|
|
16
16
|
}
|
17
17
|
|
18
18
|
selection = InstallGemLocal::Helper.prompt_options(
|
19
|
-
flash_message: 'Select Action',
|
19
|
+
flash_message: InstallGemLocal::Helper.flash_message(title: 'Select Action'),
|
20
20
|
options: options
|
21
21
|
)
|
22
22
|
|
23
|
-
ap selection
|
24
|
-
|
25
23
|
unless selection == 'exit'
|
26
24
|
InstallGemLocal::Action.send(selection.to_sym)
|
27
|
-
#InstallGemLocal::Navigation.start
|
25
|
+
#InstallGemLocal::Navigation.start
|
28
26
|
end
|
29
27
|
|
30
28
|
rescue StandardError => e
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: install_gem_local
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dhanabal T
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|