gjir 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in gjir.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
data/README.md ADDED
@@ -0,0 +1,16 @@
1
+ # gjir
2
+
3
+ Google Japanese Input Reloader for Mac OS
4
+
5
+
6
+ ## Installation
7
+
8
+ $ gem install gjir
9
+
10
+ ## Usage
11
+
12
+ $ gjir
13
+
14
+ ## Contributing
15
+
16
+ Bug reports and pull requests are welcome on GitHub at https://github.com/genki/gjir.
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ task default: %i[]
data/exe/gjir ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require "bundler/setup"
3
+ require "gjir"
4
+
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Gjir
4
+ VERSION = "0.1.0"
5
+ end
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
@@ -0,0 +1,4 @@
1
+ module Gjir
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
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: []