i2cssh 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/i2cssh.gemspec +2 -2
  3. data/lib/i2cssh.rb +7 -6
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.1
1
+ 1.2.2
data/i2cssh.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{i2cssh}
8
- s.version = "1.2.1"
8
+ s.version = "1.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Wouter de Bie"]
12
- s.date = %q{2011-08-04}
12
+ s.date = %q{2011-08-05}
13
13
  s.default_executable = %q{i2cssh}
14
14
  s.description = %q{csshX like cluster ssh using iTerm2 panes}
15
15
  s.email = %q{wouter@evenflow.se}
data/lib/i2cssh.rb CHANGED
@@ -30,16 +30,17 @@ class I2Cssh
30
30
 
31
31
  def compute_geometry
32
32
  count = @servers.size
33
- if @i2_options[:rows] then
34
- @columns = (count / @i2_options[:rows].to_f).ceil
35
- elsif @i2_options[:rows] then
36
- @rows = (count / @i2_options[:columns].to_f).ceil
33
+ @rows = @i2_options[:rows]
34
+ @columns = @i2_options[:columns]
35
+
36
+ if @rows then
37
+ @columns = (count / @rows.to_f).ceil
38
+ elsif @columns then
39
+ @rows = (count / @columns.to_f).ceil
37
40
  else
38
41
  @columns = Math.sqrt(count).ceil
39
42
  @rows = (count / @columns.to_f).ceil
40
43
  end
41
- puts @rows
42
- puts @columns
43
44
  end
44
45
 
45
46
  def split_session
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 2
8
- - 1
9
- version: 1.2.1
8
+ - 2
9
+ version: 1.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Wouter de Bie
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-08-04 00:00:00 +02:00
17
+ date: 2011-08-05 00:00:00 +02:00
18
18
  default_executable: i2cssh
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency