install_gem_local 0.1.19 → 0.1.20

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: 49c45056c5a206aa898469782c568dfc9fdb9eb025a8831f7494e7c11c3ac83a
4
- data.tar.gz: baf3064b7c27959c1ee5dc097ecc8f4f2efcbb5d7440b15b8c96646cd1210e47
3
+ metadata.gz: c7e96fe5d249fb33237504a1fb09c5aaef2a3872a1f7d565c75422caef2482a4
4
+ data.tar.gz: 8d852bbaaa29e3c07b84f64c6731115b671d64576fe3f4a0a58a18cfaf40556a
5
5
  SHA512:
6
- metadata.gz: 964dcc261a78dca6829c52e5d943118a11e680bff5183434c4a913688fd0ea55e1c61093ef7bd8a20337609e1c8d0a659ded927f19ee37bffaeaba3b9031d359
7
- data.tar.gz: 5ba8660fa2ef21500ef740d002c2ee8ae9a7ce6e2a22b9b881d5a11406f6e5c1d1e4e80408ab2f112b345022a3d08a95b093ff36ffd4d1e8959f45097af7d362
6
+ metadata.gz: 10221b1e4c1a8fcd98c9e2f3635ff0e7fc09a18bd9b093c4465ff6e9e0b5d89331bd06f5ea18e3c571702b17985ba2cc0d502c6619d57f6f061219209a78af3e
7
+ data.tar.gz: f07a9b064257a6c1f3b528429bc4ab26cddea834aeb5967f225c9e99fd90d69376e80dd64f757f0eb4e0a0faac29e2680437244e29ee5e2058a54c27fc2fdd7a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- install_gem_local (0.1.19)
4
+ install_gem_local (0.1.20)
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)
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.email = ['vel.dhanabal@gmail.com']
12
12
 
13
13
  spec.summary = 'install the gem in my local'
14
- spec.description = 'to build and install the gem in my local'
14
+ spec.description = 'to build and install the gem in your local'
15
15
  spec.homepage = 'https://github.com/dhanabalt/install_gem_local'
16
16
  spec.license = 'MIT'
17
17
 
@@ -14,7 +14,6 @@ Dir[File.join(File.expand_path(__dir__), 'install_gem_local', '**/*.rb')].each {
14
14
 
15
15
  module InstallGemLocal
16
16
  class App < Thor
17
-
18
17
  desc 'methods_description', 'list all methods description'
19
18
  def methods_desc
20
19
  puts InstallGemLocal::Utilization.show_methods
@@ -31,7 +31,7 @@ module InstallGemLocal
31
31
  file.entries
32
32
  end
33
33
 
34
- def multiple_version_selection(include_all: false)
34
+ def multiple_version_selection(include_all: false, title_interpol: '')
35
35
  options =
36
36
  include_all ? { '*' => { 'value' => 'all', 'display' => 'All Versions' } } : {}
37
37
  file_names.each_with_index do |file_name, index|
@@ -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: InstallGemLocal::Helper.flash_message(title: 'Choose Version'),
42
+ flash_message: InstallGemLocal::Helper.flash_message(title: "Choose Version #{title_interpol}"),
43
43
  options: options
44
44
  )
45
45
  end
@@ -22,7 +22,7 @@ module InstallGemLocal
22
22
  files_exists = file_names
23
23
 
24
24
  if files_exists.count > 1
25
- copy_file_to_path(multiple_version_selection)
25
+ copy_file_to_path(multiple_version_selection(title_interpol: 'TO Copy'))
26
26
  elsif files_exists.count == 1
27
27
  copy_file_to_path(files_exists.first)
28
28
  else
@@ -7,7 +7,7 @@ module InstallGemLocal
7
7
  puts 'Install Gem'.green
8
8
  files_exists = file_names
9
9
  if files_exists.count > 1
10
- install_gem_from_path(multiple_version_selection)
10
+ install_gem_from_path(multiple_version_selection(title_interpol: 'TO Install'))
11
11
  elsif files_exists.count == 1
12
12
  install_gem_from_path(files_exists.first)
13
13
  else
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module InstallGemLocal
2
4
  module PushGem
3
5
  def push_gem
@@ -6,7 +8,7 @@ module InstallGemLocal
6
8
  puts 'Push Gem'.blue
7
9
  files_exists = file_names
8
10
  if files_exists.count > 1
9
- push_gem_from_path(multiple_version_selection)
11
+ push_gem_from_path(multiple_version_selection(title_interpol: 'TO Push'))
10
12
  elsif files_exists.count == 1
11
13
  push_gem_from_path(files_exists.first)
12
14
  else
@@ -20,4 +22,4 @@ module InstallGemLocal
20
22
  tty_command.run("gem push #{file_name}")
21
23
  end
22
24
  end
23
- end
25
+ end
@@ -7,7 +7,7 @@ module InstallGemLocal
7
7
  puts 'Remove Gem'.red
8
8
  file_exists = file_names
9
9
  if file_exists.count > 1
10
- remove_file_from_path(multiple_version_selection(include_all: true))
10
+ remove_file_from_path(multiple_version_selection(include_all: true, title_interpol: 'TO Remove'))
11
11
  elsif file_exists.count == 1
12
12
  remove_file_from_path(file_exists.first)
13
13
  else
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module InstallGemLocal
2
4
  class Helper
3
5
  class << self
@@ -7,13 +9,13 @@ module InstallGemLocal
7
9
  options: options,
8
10
  default_color: color,
9
11
  selected_color: selected_color,
10
- flash_color: flash_color,
12
+ flash_color: flash_color
11
13
  ).prompt
12
14
  end
13
15
 
14
- def flash_message(title: "")
16
+ def flash_message(title: '')
15
17
  message = <<-STR
16
- █████ ███████ █
18
+ █████ ███████ █
17
19
  █ ██ █
18
20
  █ ██ █
19
21
  █ ██ ███ █
@@ -21,7 +23,6 @@ module InstallGemLocal
21
23
  █████ ███████ ███████ #{title}
22
24
  STR
23
25
  end
24
-
25
26
  end
26
27
  end
27
- end
28
+ end
@@ -22,9 +22,8 @@ module InstallGemLocal
22
22
 
23
23
  unless selection == 'exit'
24
24
  InstallGemLocal::Action.send(selection.to_sym)
25
- #InstallGemLocal::Navigation.start
25
+ # InstallGemLocal::Navigation.start
26
26
  end
27
-
28
27
  rescue StandardError => e
29
28
  ap e
30
29
  ap 'Something Wrong! Try again!'
@@ -1,33 +1,35 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module InstallGemLocal
2
4
  class Utilization
3
5
  class << self
4
6
  def show_methods
5
- long_desc = <<-STR
6
- *******************************************
7
+ long_desc = <<~STR
8
+ *******************************************
7
9
 
8
- CLI to manage your own gems
10
+ CLI to manage your own gems
9
11
 
10
- *******************************************
11
- Available Methods
12
- *******************************************
12
+ *******************************************
13
+ Available Methods
14
+ *******************************************
13
15
 
14
- Remove old Gem version
16
+ Remove old Gem version
15
17
 
16
- Build new Gem version
18
+ Build new Gem version
17
19
 
18
- Install new Gem version
20
+ Install new Gem version
19
21
 
20
- Copy gem to folder
22
+ Copy gem to folder
21
23
 
22
- Build the latest version and push the gem
24
+ Build the latest version and push the gem
23
25
 
24
- Remove old version, build and install the new version
26
+ Remove old version, build and install the new version
25
27
 
26
- Remove old version, build, install and copy the new version
28
+ Remove old version, build, install and copy the new version
27
29
 
28
- *******************************************
30
+ *******************************************
29
31
  STR
30
32
  end
31
33
  end
32
34
  end
33
- end
35
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InstallGemLocal
4
- VERSION = '0.1.19'
4
+ VERSION = '0.1.20'
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.19
4
+ version: 0.1.20
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-27 00:00:00.000000000 Z
11
+ date: 2019-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -132,7 +132,7 @@ dependencies:
132
132
  - - ">="
133
133
  - !ruby/object:Gem::Version
134
134
  version: 0.8.2
135
- description: to build and install the gem in my local
135
+ description: to build and install the gem in your local
136
136
  email:
137
137
  - vel.dhanabal@gmail.com
138
138
  executables: