install_gem_local 0.1.9 → 0.1.10

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: '087c77ad9ec2f03a39c060f95f9bc63424185fc99fb6adec354c233eea236949'
4
- data.tar.gz: d83cf95d827d5b63baef1741a503ae8ce521c3b77b069cb543206ae071a779d1
3
+ metadata.gz: e95eaf1add788ed287e60e43b3a6a2fa4e3f18cab8456541b290fdc646a5aaab
4
+ data.tar.gz: 9d14764e7ff8ea580c812912387ebef5d5883a41c26d87ffae956b345e5777fe
5
5
  SHA512:
6
- metadata.gz: 19a41dc5d69f694dcd315dddde27f6c5971cfed49f2c1b191cd4bed027aae2e7edf8d5dd4afb8fbbae382b0e171ef9adcc36af7861a2b3844063f2aebc26b7d1
7
- data.tar.gz: 26dbc901324e139324873d058a5bddedc98efe344fb8bb2f073ae45205e2ac29477ef8cc6b3d59e378733df29854c733e96ce357fa181f6e18b3cef21231e0a3
6
+ metadata.gz: 0fc4343902cdf09d61772f864c8920b8f51714f6f11c4a52aeff04ba5f35340ea80613e4f6d93fa3e9bc1d0463be2a8d5d4dece8f59d3a5da4427689c7a7b78f
7
+ data.tar.gz: e6a20b7ccd1c7c2bb07c35890f594d827a79ed3a3a9a64af3c897ce370b1c947bd832001778877df9e690faac2a5250ab244c5e3e7937fc0ecbf275fd66def03
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- install_gem_local (0.1.9)
4
+ install_gem_local (0.1.10)
5
5
  awesome_print (~> 1.8, >= 1.8.0)
6
6
  downup (~> 0.11, >= 0.11.7)
7
7
  thor (~> 0.20, >= 0.20.3)
@@ -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
- case choose_copy_folder
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'
@@ -1,7 +1,7 @@
1
1
  module InstallGemLocal
2
2
  module PushGem
3
3
  def push_gem
4
- build_gem
4
+ till_install
5
5
  puts ''
6
6
  puts 'Push Gem'.blue
7
7
  files_exists = file_names
@@ -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 unless selection == 'exit'
25
+ #InstallGemLocal::Navigation.start
28
26
  end
29
27
 
30
28
  rescue StandardError => e
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InstallGemLocal
4
- VERSION = '0.1.9'
4
+ VERSION = '0.1.10'
5
5
  end
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.9
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-22 00:00:00.000000000 Z
11
+ date: 2019-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler