gjir 0.1.0
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 +7 -0
- data/Gemfile +8 -0
- data/README.md +16 -0
- data/Rakefile +4 -0
- data/exe/gjir +4 -0
- data/lib/gjir/version.rb +5 -0
- data/lib/gjir.rb +12 -0
- data/sig/gjir.rbs +4 -0
- metadata +52 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a92c8cb29075d0c5ae0a94e17f53239e2d82cd3e717ff7896bfd319d01bd694a
|
4
|
+
data.tar.gz: 5c359d4f25512dd6e68af8f0f78b7385f8967447c0f6331ff4281eb017df445b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d43bbb3683eaec6bca85dceed54756e7688b5faebd52de1790b91a2ef03e0f01ef96f04241f04ba6fac715b486d82f92158227b719a65b351c38df62468ad841
|
7
|
+
data.tar.gz: 83696d95124717f6a4029d83665a2d72a49c9e39ee4ea9ba4998ee218f6cb441d381c39a1e78cd12768e297a1edda727990ef1d72cadb0c5bd7de4669e85bbe6
|
data/Gemfile
ADDED
data/README.md
ADDED
data/Rakefile
ADDED
data/exe/gjir
ADDED
data/lib/gjir/version.rb
ADDED
data/lib/gjir.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "gjir/version"
|
4
|
+
|
5
|
+
PROC_NAME = "GoogleJapaneseInput"
|
6
|
+
|
7
|
+
# find pid of GoogleJapaneseInput
|
8
|
+
pid = `ps aux | grep #{PROC_NAME}\$ | grep -v grep | awk '{print $2}'`.chomp
|
9
|
+
|
10
|
+
# kill the process
|
11
|
+
puts "Restart #{PROC_NAME} (pid:#{pid}) process..."
|
12
|
+
`kill -9 #{pid}` unless pid.empty?
|
data/sig/gjir.rbs
ADDED
metadata
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gjir
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Genki Takiuchi
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-06-29 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Restart Google Japanese Input process.
|
14
|
+
email:
|
15
|
+
- genki@s21g.com
|
16
|
+
executables:
|
17
|
+
- gjir
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- Gemfile
|
22
|
+
- README.md
|
23
|
+
- Rakefile
|
24
|
+
- exe/gjir
|
25
|
+
- lib/gjir.rb
|
26
|
+
- lib/gjir/version.rb
|
27
|
+
- sig/gjir.rbs
|
28
|
+
homepage: https://github.com/genki/gjir
|
29
|
+
licenses: []
|
30
|
+
metadata:
|
31
|
+
homepage_uri: https://github.com/genki/gjir
|
32
|
+
source_code_uri: https://github.com/genki/gjir
|
33
|
+
post_install_message:
|
34
|
+
rdoc_options: []
|
35
|
+
require_paths:
|
36
|
+
- lib
|
37
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 2.6.0
|
42
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
requirements: []
|
48
|
+
rubygems_version: 3.4.15
|
49
|
+
signing_key:
|
50
|
+
specification_version: 4
|
51
|
+
summary: Restart Google Japanese Input process.
|
52
|
+
test_files: []
|