consular-iterm 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9a2fc09c1b13f0d64d9b5cff426c007b63224e8
4
- data.tar.gz: e7e0bf7f5bde8015e556a0918d71ffe80b6a682c
3
+ metadata.gz: 5eb6c4ef0678ddfa932f153ccaa2c68701cc6546
4
+ data.tar.gz: 115c7485566eff5061a0a2bc856631b4a2994fc3
5
5
  SHA512:
6
- metadata.gz: a1006be35b45ecfb1a3172544f15d1ded9c6668a714567efa6b3b6e008c984b391a3661f085e7df9bd175cbdcbc2d1d78f117c0af8ddd181ca1d5e70447d78b0
7
- data.tar.gz: ee0b45b2b146a736b012a5dae2ef1b6f4e685bc9e7f33d6d4bd921b81b5aac532688ce2d1c78fcf6d9ec381739375fb450857da9adb409cb7cfffd89183be419
6
+ metadata.gz: d28f54377509cd7cddeb5b161173d2033a25eccb9ecbdb4f6bb539966399ffdcd1553e067bf4a61a7f5cb4eb0e2909a0873c37b8fa3de03b04e7c6b1be9de2ce
7
+ data.tar.gz: 30ec0b1ec2ac7a06d96851fd20db432ccc62102f7dbe47121ca611899c7d07aa4db114082787d3e829e41c5d468c06143d83dcedaa78251a32e3ed15fa26434f
data/README.md CHANGED
@@ -81,3 +81,13 @@ Nevertheless you should be able to split tabs into any kind of pane pattern you
81
81
  with this syntax.
82
82
 
83
83
  Now you can use iTerm Terminal to run your Consular scripts!
84
+
85
+ ## Compatibility
86
+
87
+ The current master branch is a work in progress towards iTerm2 v3 compatibility. If you find any commands that don't work as you expect, please file an issue. For a version compatible with iTerm2 v2, please use version `1.0.3`.
88
+
89
+ # Development
90
+
91
+ iTerm2 documentation for the Applescript API is [here](https://www.iterm2.com/documentation-scripting.html). Ruby bindings for these methods are provided by `rb-scpt`. Generally, the mapping of an Applescript command to a Ruby method is easily discoverable in a `bundle console` session in this repo. A `pry` session is useful for exploring the methods on an `Appscript.app` method.
92
+
93
+ Test local changes with `rake spec` to run the test suite and `rake install` to build and install the gem locally.
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "consular-iterm"
6
- s.version = "1.0.3"
6
+ s.version = "1.0.4"
7
7
  s.authors = ["Arthur Chiu"]
8
8
  s.email = ["mr.arthur.chiu@gmail.com"]
9
9
  s.homepage = "http://www.github.com/achiu/consular-iterm"
@@ -255,7 +255,7 @@ module Consular
255
255
  #
256
256
  # @api public
257
257
  def open_tab(options = nil)
258
- active_window.launch_ :session => 'New session'
258
+ active_window.create_tab_with_default_profile
259
259
  end
260
260
 
261
261
  # Opens a new window and focuses
@@ -266,8 +266,7 @@ module Consular
266
266
  #
267
267
  # @api public
268
268
  def open_window(options = nil)
269
- window = @terminal.make :new => :terminal
270
- window.launch_ :session => 'New session'
269
+ @terminal.create_window_with_default_profile
271
270
  end
272
271
 
273
272
  # Execute the given command in the context of the active window.
@@ -297,14 +296,14 @@ module Consular
297
296
  #
298
297
  # @api public
299
298
  def active_window
300
- @terminal.current_terminal
299
+ @terminal.current_window
301
300
  end
302
301
 
303
302
  # Returns a reference to the iTerm menu bar.
304
303
  #
305
304
  # @api public
306
305
  def iterm_menu
307
- _process = app("System Events").processes["iTerm"]
306
+ _process = app("System Events").processes["iTerm2"]
308
307
  _process.menu_bars.first
309
308
  end
310
309
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: consular-iterm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arthur Chiu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-02 00:00:00.000000000 Z
11
+ date: 2017-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: consular
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  version: '0'
119
119
  requirements: []
120
120
  rubyforge_project: consular-iterm
121
- rubygems_version: 2.0.14
121
+ rubygems_version: 2.0.14.1
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: Automate your ITerm with Consular