install_gem_local 0.1.17 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -5
- data/install_gem_local.gemspec +0 -2
- data/lib/install_gem_local.rb +0 -4
- data/lib/install_gem_local/action.rb +1 -1
- data/lib/install_gem_local/action/build_gem.rb +2 -2
- data/lib/install_gem_local/action/copy_gem.rb +3 -3
- data/lib/install_gem_local/action/install_gem.rb +2 -2
- data/lib/install_gem_local/action/push_gem.rb +2 -2
- data/lib/install_gem_local/action/remove_gem.rb +2 -2
- data/lib/install_gem_local/navigation.rb +8 -8
- data/lib/install_gem_local/version.rb +1 -1
- metadata +1 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d59510a1dd9f744546319ea46abdccc7c8793801bc1b4dbeed21f9b4c4c5a0e
|
4
|
+
data.tar.gz: 34b3c0b555c7edc731b0694425518c60a07de530534f7f208b4bef1a9eedc6a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5898f9cd30aa1eeeff761826b8f49e2a26be8796c058e91c6d28cee812d1505eb83062543be924b9a4467d96e805b89028ccc06b40a1f45b342e4d7166cf74de
|
7
|
+
data.tar.gz: 386baa5428c79ba1b120decbe55d76bfbe742d0c0be43be44555e0694b7b3ac15b60d4af724a96453be0573fe67072a73ff1838538d57aafb0fff580a938a60f
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
install_gem_local (0.1.
|
4
|
+
install_gem_local (0.1.18)
|
5
5
|
awesome_print (~> 1.8, >= 1.8.0)
|
6
6
|
downup (~> 0.11, >= 0.11.7)
|
7
|
-
i18n (~> 1.6, >= 1.6.0)
|
8
7
|
thor (~> 0.20, >= 0.20.3)
|
9
8
|
tty-command (~> 0.8, >= 0.8.2)
|
10
9
|
|
@@ -13,12 +12,9 @@ GEM
|
|
13
12
|
specs:
|
14
13
|
ast (2.4.0)
|
15
14
|
awesome_print (1.8.0)
|
16
|
-
concurrent-ruby (1.1.5)
|
17
15
|
diff-lcs (1.3)
|
18
16
|
downup (0.11.7)
|
19
17
|
equatable (0.5.0)
|
20
|
-
i18n (1.6.0)
|
21
|
-
concurrent-ruby (~> 1.0)
|
22
18
|
jaro_winkler (1.5.2)
|
23
19
|
parallel (1.17.0)
|
24
20
|
parser (2.6.3.0)
|
data/install_gem_local.gemspec
CHANGED
@@ -36,6 +36,4 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.add_dependency 'thor', '~> 0.20', '>= 0.20.3'
|
37
37
|
# Execute shell commands with pretty output
|
38
38
|
spec.add_dependency 'tty-command', '~> 0.8', '>= 0.8.2'
|
39
|
-
# Internationalization
|
40
|
-
spec.add_dependency 'i18n', '~> 1.6', '>= 1.6.0'
|
41
39
|
end
|
data/lib/install_gem_local.rb
CHANGED
@@ -4,10 +4,6 @@ require 'thor'
|
|
4
4
|
require 'downup'
|
5
5
|
require 'awesome_print'
|
6
6
|
require 'tty-command'
|
7
|
-
require 'i18n'
|
8
|
-
|
9
|
-
I18n.load_path << Dir[File.expand_path('lib/locales') + '/*.yml']
|
10
|
-
I18n.config.available_locales = :en
|
11
7
|
|
12
8
|
require 'install_gem_local/action/install_gem'
|
13
9
|
require 'install_gem_local/action/build_gem'
|
@@ -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:
|
42
|
+
flash_message: InstallGemLocal::Helper.flash_message(title: 'Choose Version'),
|
43
43
|
options: options
|
44
44
|
)
|
45
45
|
end
|
@@ -4,10 +4,10 @@ module InstallGemLocal
|
|
4
4
|
module BuildGem
|
5
5
|
def build_gem
|
6
6
|
puts ''
|
7
|
-
puts
|
7
|
+
puts 'Build Gem'.green
|
8
8
|
file = tty_command.run('find -type f -name "*.gemspec"')
|
9
9
|
file_name = file.out.strip
|
10
|
-
file_name.empty? ? ap(
|
10
|
+
file_name.empty? ? ap('Gemspec not exist') : tty_command.run("gem build #{file_name}")
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -11,14 +11,14 @@ module InstallGemLocal
|
|
11
11
|
}
|
12
12
|
|
13
13
|
InstallGemLocal::Helper.prompt_options(
|
14
|
-
flash_message: InstallGemLocal::Helper.flash_message(title:
|
14
|
+
flash_message: InstallGemLocal::Helper.flash_message(title: 'Choose Folder to Copy'),
|
15
15
|
options: options
|
16
16
|
)
|
17
17
|
end
|
18
18
|
|
19
19
|
def copy_gem
|
20
20
|
puts ''
|
21
|
-
puts
|
21
|
+
puts 'Copy Gem'.green
|
22
22
|
files_exists = file_names
|
23
23
|
|
24
24
|
if files_exists.count > 1
|
@@ -26,7 +26,7 @@ module InstallGemLocal
|
|
26
26
|
elsif files_exists.count == 1
|
27
27
|
copy_file_to_path(files_exists.first)
|
28
28
|
else
|
29
|
-
ap
|
29
|
+
ap 'Gem not exist'
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
@@ -4,14 +4,14 @@ module InstallGemLocal
|
|
4
4
|
module InstallGem
|
5
5
|
def install_gem
|
6
6
|
puts ''
|
7
|
-
puts
|
7
|
+
puts 'Install Gem'.green
|
8
8
|
files_exists = file_names
|
9
9
|
if files_exists.count > 1
|
10
10
|
install_gem_from_path(multiple_version_selection)
|
11
11
|
elsif files_exists.count == 1
|
12
12
|
install_gem_from_path(files_exists.first)
|
13
13
|
else
|
14
|
-
ap
|
14
|
+
ap 'Gem not exist'
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
@@ -3,14 +3,14 @@ module InstallGemLocal
|
|
3
3
|
def push_gem
|
4
4
|
till_install
|
5
5
|
puts ''
|
6
|
-
puts
|
6
|
+
puts 'Push Gem'.blue
|
7
7
|
files_exists = file_names
|
8
8
|
if files_exists.count > 1
|
9
9
|
push_gem_from_path(multiple_version_selection)
|
10
10
|
elsif files_exists.count == 1
|
11
11
|
push_gem_from_path(files_exists.first)
|
12
12
|
else
|
13
|
-
ap
|
13
|
+
ap 'Gem not exist'
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
@@ -4,14 +4,14 @@ module InstallGemLocal
|
|
4
4
|
module RemoveGem
|
5
5
|
def remove_gem
|
6
6
|
puts ''
|
7
|
-
puts
|
7
|
+
puts 'Remove Gem'.red
|
8
8
|
file_exists = file_names
|
9
9
|
if file_exists.count > 1
|
10
10
|
remove_file_from_path(multiple_version_selection(include_all: true))
|
11
11
|
elsif file_exists.count == 1
|
12
12
|
remove_file_from_path(file_exists.first)
|
13
13
|
else
|
14
|
-
ap
|
14
|
+
ap 'Gem not exist'
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
@@ -5,13 +5,13 @@ module InstallGemLocal
|
|
5
5
|
class << self
|
6
6
|
def start
|
7
7
|
options = {
|
8
|
-
'a' => { 'value' => 'remove_gem', 'display' =>
|
9
|
-
'b' => { 'value' => 'build_gem', 'display' =>
|
10
|
-
'c' => { 'value' => 'install_gem', 'display' =>
|
11
|
-
'd' => { 'value' => 'copy_gem', 'display' =>
|
12
|
-
'e' => { 'value' => 'push_gem', 'display' =>
|
13
|
-
'f' => { 'value' => 'till_install', 'display' =>
|
14
|
-
'g' => { 'value' => 'till_copy', 'display' =>
|
8
|
+
'a' => { 'value' => 'remove_gem', 'display' => 'Remove version' },
|
9
|
+
'b' => { 'value' => 'build_gem', 'display' => 'Build new version' },
|
10
|
+
'c' => { 'value' => 'install_gem', 'display' => 'Install new version' },
|
11
|
+
'd' => { 'value' => 'copy_gem', 'display' => 'Copy gem to folder' },
|
12
|
+
'e' => { 'value' => 'push_gem', 'display' => 'Build the latest version and push the gem' },
|
13
|
+
'f' => { 'value' => 'till_install', 'display' => 'Remove old version, build and install the new version' },
|
14
|
+
'g' => { 'value' => 'till_copy', 'display' => 'Remove old version, build, install and copy the new version' },
|
15
15
|
'/' => { 'value' => 'exit', 'display' => 'Exit' }
|
16
16
|
}
|
17
17
|
|
@@ -27,7 +27,7 @@ module InstallGemLocal
|
|
27
27
|
|
28
28
|
rescue StandardError => e
|
29
29
|
ap e
|
30
|
-
ap
|
30
|
+
ap 'Something Wrong! Try again!'
|
31
31
|
end
|
32
32
|
end
|
33
33
|
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.
|
4
|
+
version: 0.1.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dhanabal T
|
@@ -132,26 +132,6 @@ dependencies:
|
|
132
132
|
- - ">="
|
133
133
|
- !ruby/object:Gem::Version
|
134
134
|
version: 0.8.2
|
135
|
-
- !ruby/object:Gem::Dependency
|
136
|
-
name: i18n
|
137
|
-
requirement: !ruby/object:Gem::Requirement
|
138
|
-
requirements:
|
139
|
-
- - ">="
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
version: 1.6.0
|
142
|
-
- - "~>"
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
version: '1.6'
|
145
|
-
type: :runtime
|
146
|
-
prerelease: false
|
147
|
-
version_requirements: !ruby/object:Gem::Requirement
|
148
|
-
requirements:
|
149
|
-
- - ">="
|
150
|
-
- !ruby/object:Gem::Version
|
151
|
-
version: 1.6.0
|
152
|
-
- - "~>"
|
153
|
-
- !ruby/object:Gem::Version
|
154
|
-
version: '1.6'
|
155
135
|
description: to build and install the gem in my local
|
156
136
|
email:
|
157
137
|
- vel.dhanabal@gmail.com
|