iterm2_ruby 0.3.0 → 0.3.1

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: 194961f55a2fe05730f2eef7d605adc7f1b85c56e20a5cf00e4246d8addeaeff
4
- data.tar.gz: ccd08415f1310c4eb02055e95a6182d3a191f00bb5f2bb95662df9f8b11be6f3
3
+ metadata.gz: 7ea8b3aab793d0294a0cb9f726e8cc01123b0da6a22b02034a7f64c3e4744959
4
+ data.tar.gz: 3773d06e8c6969221bb52049ff3a11131a786f8280d36e3f5a889174c3a56d17
5
5
  SHA512:
6
- metadata.gz: 89abd155fc91b83c69e0ce22dcd3b7f196170f5754600d732c0e11603f5481df7e64b4777bbd6002a1fb0bc61313a64865a5607ea6daa45b7ab0a6d06118faed
7
- data.tar.gz: 2b826f95958ae6520865c1b104530646566ef1f9a280241ab590b10b2ee084189737fede9ea79ac553f62122c44ac152bc0a29a529bcbd0a9c5955776772e25c
6
+ metadata.gz: ecff09efcb6229d0079eff7f8cc324fb0da17287c762f39fb1e99ada8c2476283373ed6ef48c097c3c36f6fe87346485c3b311133f0ca45be22e5f60940da729
7
+ data.tar.gz: 143e8af32d29624720bb35719eb399e620364c0e632bc5613ea710190acd0c8a5b8c3112a150db5794ff8da1968a6c39d38d1288626366ee9231ddf9810c63f5
data/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project are documented here. Format follows
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
5
5
 
6
+ ## [0.3.1] - 2026-09-04
7
+
8
+ ### Fixed
9
+ - `client.get_window_frame(window_id)` restored under its documented name. A local
10
+ amend of the 0.3.0 commit (made before publish, after this method had already been
11
+ verified) silently renamed it to `client.window_frame`; the published 0.3.0 gem on
12
+ rubygems only exposes `window_frame` and lacks `get_window_frame`. Source is fixed
13
+ here; the published artifact is fixed by the next release.
14
+
6
15
  ## [0.3.0] - 2026-09-03
7
16
 
8
17
  ### Added
data/bin/iterm2ctl CHANGED
@@ -339,7 +339,7 @@ module ITerm2CTL
339
339
  end
340
340
 
341
341
  ITerm2.connect do |client|
342
- frame = client.window_frame(window_id)
342
+ frame = client.get_window_frame(window_id)
343
343
  if json_mode
344
344
  puts JSON.pretty_generate(frame)
345
345
  else
data/docs/api.md CHANGED
@@ -217,7 +217,7 @@ iTerm2 opens windows created via `create_tab`/`split_pane` at the profile's defa
217
217
  size, regardless of what's inside them. These wrap the `"frame"`/`"grid_size"`
218
218
  `SetProperty`/`GetProperty` conventions so callers can size a window explicitly.
219
219
 
220
- ### `client.window_frame(window_id)` -> Hash
220
+ ### `client.get_window_frame(window_id)` -> Hash
221
221
 
222
222
  ```ruby
223
223
  { x: Numeric, y: Numeric, width: Numeric, height: Numeric } # pixels
data/lib/iterm2/client.rb CHANGED
@@ -412,7 +412,7 @@ module ITerm2
412
412
  # size one explicitly via the "frame"/"grid_size" SetProperty/GetProperty
413
413
  # conventions (see proto/api.proto).
414
414
 
415
- def window_frame(window_id)
415
+ def get_window_frame(window_id)
416
416
  origin, size = get_property("frame", window_id: window_id).values_at("origin", "size")
417
417
  { x: origin["x"], y: origin["y"], width: size["width"], height: size["height"] }
418
418
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ITerm2
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iterm2_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Forrest Chang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-03 00:00:00.000000000 Z
11
+ date: 2026-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf