install_gem_local 0.1.17 → 0.1.18

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f1432088f80f31c1c5d51c5ad7316a6ebef2f9bf75fb79b2c0adce9d4e24b4a
4
- data.tar.gz: 6cf6a8f3b77c1515891e3c06adb702582d142b19139a3320e48f6457b46127ac
3
+ metadata.gz: 3d59510a1dd9f744546319ea46abdccc7c8793801bc1b4dbeed21f9b4c4c5a0e
4
+ data.tar.gz: 34b3c0b555c7edc731b0694425518c60a07de530534f7f208b4bef1a9eedc6a2
5
5
  SHA512:
6
- metadata.gz: 0746c4bb2b3cd178fbc0b9376693ae42d4c61c0b46528425fba2af10d8f3b8c00b5933cb2f0b1daf1a18ac02e196086390605d87c7571dcf8c22f500ba0e487b
7
- data.tar.gz: 7b93486e1994e332bbd945f12429c5b6c24201d2482e8de579af9b42d79ec7d8c7c57f56b598a5598388874e3b1ba594ff0bc9fdd1e954f86da29fb36cc1cedc
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.17)
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)
@@ -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
@@ -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: I18n.t(:choose_version)),
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 I18n.t('action.build_gem.puts_line').green
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(I18n.t(:gemspec_not_exist)) : tty_command.run("gem build #{file_name}")
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: I18n.t('choose_copy_folder')),
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 I18n.t('action.copy_gem.puts_line').green
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 I18n.t(:gem_not_exist)
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 I18n.t('action.install_gem.puts_line').green
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 I18n.t(:gem_not_exist)
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 I18n.t('action.push_gem.puts_line').blue
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 I18n.t(:gem_not_exist)
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 I18n.t('action.remove_gem.puts_line').red
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 I18n.t(:gem_not_exist)
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' => I18n.t('action.remove_gem.display') },
9
- 'b' => { 'value' => 'build_gem', 'display' => I18n.t('action.build_gem.display') },
10
- 'c' => { 'value' => 'install_gem', 'display' => I18n.t('action.install_gem.display') },
11
- 'd' => { 'value' => 'copy_gem', 'display' => I18n.t('action.copy_gem.display') },
12
- 'e' => { 'value' => 'push_gem', 'display' => I18n.t('action.push_gem.display') },
13
- 'f' => { 'value' => 'till_install', 'display' => I18n.t('action.till_install.display') },
14
- 'g' => { 'value' => 'till_copy', 'display' => I18n.t('action.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 I18n.t('something_wrong')
30
+ ap 'Something Wrong! Try again!'
31
31
  end
32
32
  end
33
33
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InstallGemLocal
4
- VERSION = '0.1.17'
4
+ VERSION = '0.1.18'
5
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.17
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