ginbin 1.0.0 → 1.0.1

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: 373ed38b8d48b1ca35609c3252b55e4f06376ea0658bf274e4b55aed33b80c08
4
- data.tar.gz: 0b081671fe299110ad55a1bfa202f02bf436808139a2116a287298c403b3644d
3
+ metadata.gz: 8ab104337df9ab99b20bb3e998ef303139ac398e6dc98ee30e732bf9ac5ddc38
4
+ data.tar.gz: 1be373d6b1246141c41db86a0c8fddc8c656f35d9a8afed95da0276039e54904
5
5
  SHA512:
6
- metadata.gz: adef20ff41ae6b103b5e8efec4580d1e623f1fa01ee3f3793ab198dd9d88059930fde679725b02395efe03c28f44ae73eb44c8fe64688625ce578f4f4ce5f72e
7
- data.tar.gz: 850e5f347a4d5d9b923a7e1be9eab86718d472bdfc240aafa78282c885265abdffec042da2d920dc94e3a7ad8eca70e87e47ba9e353d8ff2b9862186d938efcb
6
+ metadata.gz: 99a3108fb9b4b37e2a806f264655d70d423ea1a21b866e3bae0950f9a352e4f68fc6c5da39e714d381310add827ebf2d07c0817c96fe814c28c6abd669d3513b
7
+ data.tar.gz: 3f48182de2ab56d5ce59e4e3151ff97dedc4b51a9b3f4ef3df46b2f74a4d31f186ec6cdd0cea9119c26359387807772bbd591e2af46e86a2dcbd7dac3e8c4b00
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.0.1] - 2023-04-18
4
+
5
+ * replace deprecated `File.exists?`
6
+
3
7
  ## [1.0.0] - 2022-08-29
4
8
 
5
9
  * submenu
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ginbin (1.0.0)
4
+ ginbin (1.0.1)
5
5
  tty-prompt
6
6
 
7
7
  GEM
@@ -63,7 +63,9 @@ GEM
63
63
  wisper (2.0.1)
64
64
 
65
65
  PLATFORMS
66
+ arm64-darwin-22
66
67
  x86_64-darwin-21
68
+ x86_64-linux
67
69
 
68
70
  DEPENDENCIES
69
71
  ginbin!
data/README.md CHANGED
@@ -27,6 +27,16 @@ commands:
27
27
  commands:
28
28
  - echo 1
29
29
  - echo 2
30
+
31
+ - menu: Sub Sumenu
32
+ commands:
33
+ - ssh server1
34
+ - ssh server2
35
+
36
+ # any command could have a title
37
+ - title: Main server
38
+ cmd: ssh server-main
39
+
30
40
  ```
31
41
 
32
42
  Then run `ginbin`
@@ -12,12 +12,12 @@ module Ginbin
12
12
 
13
13
  def local_items
14
14
  return [] if at_home?
15
- return [] unless File.exists? '.ginbin.yml'
15
+ return [] unless File.exist? '.ginbin.yml'
16
16
  YAML.load_file('.ginbin.yml')["commands"]
17
17
  end
18
18
 
19
19
  def home_items
20
- return [] unless File.exists? File.join(Dir.home, '.ginbin.yml')
20
+ return [] unless File.exist? File.join(Dir.home, '.ginbin.yml')
21
21
 
22
22
  YAML.load_file(File.join(Dir.home, '.ginbin.yml'))["commands"]
23
23
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ginbin
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ginbin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergei O. Udalov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-29 00:00:00.000000000 Z
11
+ date: 2023-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tty-prompt
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  requirements: []
74
- rubygems_version: 3.3.7
74
+ rubygems_version: 3.4.10
75
75
  signing_key:
76
76
  specification_version: 4
77
77
  summary: Menu from your most used commands