i3ipc 0.3.0 → 0.4.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 +4 -4
- data/lib/i3ipc/protocol.rb +13 -8
- data/lib/i3ipc/version.rb +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c7e3d2c510024a85232a57b5f85b746e2048ecb7d502c7143c45e7288cbe0733
|
|
4
|
+
data.tar.gz: '059d5c94bb5cf00a0b9d2faaa01a96e27099fc2c5d9c9971382bf0d05152e0e7'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ea322a9f4842087079a18be0cdc56a287e0891de881bd6cff69f955bbdeac2f28f39100ce44af4aca887ffdf346ea7279d7251785d3c29ceecce8be47c8f1aca
|
|
7
|
+
data.tar.gz: 487a918c2b6aa1b108ede111df9725477a3ea49fc8c9ae1a294b30f47d983d27c6790d50e3c2f0c2844c6104b68c955606f37267d3835ad8cf888706634358d4
|
data/lib/i3ipc/protocol.rb
CHANGED
|
@@ -150,16 +150,21 @@ module I3Ipc
|
|
|
150
150
|
end
|
|
151
151
|
|
|
152
152
|
def get_socketpath
|
|
153
|
-
|
|
154
|
-
'
|
|
155
|
-
elsif system('sway --version')
|
|
156
|
-
'sway'
|
|
153
|
+
if !ENV['I3SOCK'].nil?
|
|
154
|
+
ENV['I3SOCK']
|
|
157
155
|
else
|
|
158
|
-
|
|
156
|
+
cmd = if system('i3 --version')
|
|
157
|
+
'i3'
|
|
158
|
+
elsif system('sway --version')
|
|
159
|
+
'sway'
|
|
160
|
+
else
|
|
161
|
+
raise 'Unable to find i3 compatible window manager'
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
path = `#{cmd} --get-socketpath`.chomp!
|
|
165
|
+
raise 'Unable to get i3 compatible socketpath' unless path
|
|
166
|
+
path
|
|
159
167
|
end
|
|
160
|
-
path = `#{cmd} --get-socketpath`.chomp!
|
|
161
|
-
raise 'Unable to get i3 compatible socketpath' unless path
|
|
162
|
-
path
|
|
163
168
|
end
|
|
164
169
|
|
|
165
170
|
def check_connected
|
data/lib/i3ipc/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: i3ipc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vitalii Elengaupt
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-06-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -87,7 +87,7 @@ homepage: https://github.com/veelenga/i3ipc-ruby
|
|
|
87
87
|
licenses:
|
|
88
88
|
- MIT
|
|
89
89
|
metadata: {}
|
|
90
|
-
post_install_message:
|
|
90
|
+
post_install_message:
|
|
91
91
|
rdoc_options: []
|
|
92
92
|
require_paths:
|
|
93
93
|
- lib
|
|
@@ -102,9 +102,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
103
|
version: '0'
|
|
104
104
|
requirements: []
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
signing_key:
|
|
105
|
+
rubygems_version: 3.2.32
|
|
106
|
+
signing_key:
|
|
108
107
|
specification_version: 4
|
|
109
108
|
summary: Interprocess communication with i3 wm
|
|
110
109
|
test_files:
|