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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 307a0123538855e09af5e01c6484533407be5bc08d8352d02c6073e439abb920
4
- data.tar.gz: 18c8fe77d241cd6d357bb90b71e4dd68f50d6bcd01be3a8328861b037ca738b2
3
+ metadata.gz: c7e3d2c510024a85232a57b5f85b746e2048ecb7d502c7143c45e7288cbe0733
4
+ data.tar.gz: '059d5c94bb5cf00a0b9d2faaa01a96e27099fc2c5d9c9971382bf0d05152e0e7'
5
5
  SHA512:
6
- metadata.gz: 974bd5a6d1ec54be2d29807d7beb58b7d8bb65c518288efdc8a59470965a67157a8a5e463d62fe5bcf01b2d5c79ce096c1ae90291cff1908734b5335c8f56320
7
- data.tar.gz: 94f3a38c802b40dea4f4f3e8e9164c108a714c3179ca8ebf51dfe3dfcc33c4d1641d148d512c0ec30398030318be322236124c80ac5198060eaa330f4bd96f69
6
+ metadata.gz: ea322a9f4842087079a18be0cdc56a287e0891de881bd6cff69f955bbdeac2f28f39100ce44af4aca887ffdf346ea7279d7251785d3c29ceecce8be47c8f1aca
7
+ data.tar.gz: 487a918c2b6aa1b108ede111df9725477a3ea49fc8c9ae1a294b30f47d983d27c6790d50e3c2f0c2844c6104b68c955606f37267d3835ad8cf888706634358d4
@@ -150,16 +150,21 @@ module I3Ipc
150
150
  end
151
151
 
152
152
  def get_socketpath
153
- cmd = if system('i3 --version')
154
- 'i3'
155
- elsif system('sway --version')
156
- 'sway'
153
+ if !ENV['I3SOCK'].nil?
154
+ ENV['I3SOCK']
157
155
  else
158
- raise 'Unable to find i3 compatible window manager'
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
@@ -1,3 +1,3 @@
1
1
  module I3ipc
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
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.3.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: 2019-12-06 00:00:00.000000000 Z
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
- rubyforge_project:
106
- rubygems_version: 2.7.6
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: