terminitor 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- terminitor (0.0.5)
5
- github
4
+ terminitor (0.2.1)
5
+ github (~> 0.4.5)
6
6
  rb-appscript
7
7
  thor (~> 0.14.0)
8
8
 
@@ -10,7 +10,7 @@ GEM
10
10
  remote: http://rubygems.org/
11
11
  specs:
12
12
  fakefs (0.2.1)
13
- github (0.4.3)
13
+ github (0.4.5)
14
14
  highline (~> 1.5.1)
15
15
  json (>= 1.2.0)
16
16
  text-format (>= 1.0.0)
@@ -25,7 +25,7 @@ GEM
25
25
  text-format (1.0.0)
26
26
  text-hyphen (~> 1.0.0)
27
27
  text-hyphen (1.0.0)
28
- thor (0.14.1)
28
+ thor (0.14.4)
29
29
 
30
30
  PLATFORMS
31
31
  ruby
@@ -33,9 +33,9 @@ PLATFORMS
33
33
  DEPENDENCIES
34
34
  bundler (~> 1.0.0)
35
35
  fakefs
36
- github
36
+ github (~> 0.4.5)
37
37
  rb-appscript
38
38
  riot (~> 0.11.0)
39
- rr
39
+ rr (= 1.0.0)
40
40
  terminitor!
41
41
  thor (~> 0.14.0)
@@ -1,3 +1,3 @@
1
1
  module Terminitor
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -12,8 +12,12 @@ module Terminitor
12
12
 
13
13
  # Returns yaml file as Terminitor formmatted hash
14
14
  def to_hash
15
- combined = @file.inject({}) {|base, item| base.merge!(item) ; base } # merge the array of hashes.
16
- { :setup => nil, :windows => { 'default' => combined } }
15
+ combined = @file.inject({}) do |base, item|
16
+ item = {item.keys.first => {:commands => item.values.first, :options => {}}}
17
+ base.merge!(item)
18
+ base
19
+ end # merge the array of hashes.
20
+ { :setup => nil, :windows => { 'default' => {:tabs => combined} } }
17
21
  end
18
22
 
19
23
  end
data/terminitor.gemspec CHANGED
@@ -21,11 +21,11 @@ Gem::Specification.new do |s|
21
21
  else
22
22
  end
23
23
 
24
- s.add_dependency "thor", "~>0.14.0"
25
- s.add_dependency "github"
24
+ s.add_dependency "thor", "~>0.14.0"
25
+ s.add_dependency "github", "~>0.4.5"
26
26
  s.add_development_dependency "bundler", "~>1.0.0"
27
- s.add_development_dependency "riot", "~>0.11.0"
28
- s.add_development_dependency "rr"
27
+ s.add_development_dependency "riot", "~>0.11.0"
28
+ s.add_development_dependency "rr", "=1.0.0"
29
29
  s.add_development_dependency "fakefs"
30
30
  s.post_install_message = %q{********************************************************************************
31
31
 
data/test/yaml_test.rb CHANGED
@@ -7,7 +7,12 @@ context "Yaml" do
7
7
 
8
8
  context "to_hash" do
9
9
  setup { @yaml.to_hash }
10
- asserts_topic.equivalent_to({ :setup => nil, :windows => {'default' => {'tab1' => ['cd /foo/bar','gitx'], 'tab2' => ['ls','mate .']}}})
10
+ asserts_topic.equivalent_to :setup => nil,
11
+ :windows => {'default' => {:tabs => {'tab1' => { :commands => ['cd /foo/bar','gitx'], :options => {}},
12
+ 'tab2' => { :commands => ['ls','mate .'], :options => {}}
13
+ }
14
+ }
15
+ }
11
16
  end
12
17
 
13
18
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terminitor
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Arthur Chiu
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-11-08 00:00:00 -08:00
19
+ date: 2010-11-11 00:00:00 -08:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -55,12 +55,14 @@ dependencies:
55
55
  requirement: &id003 !ruby/object:Gem::Requirement
56
56
  none: false
57
57
  requirements:
58
- - - ">="
58
+ - - ~>
59
59
  - !ruby/object:Gem::Version
60
- hash: 3
60
+ hash: 5
61
61
  segments:
62
62
  - 0
63
- version: "0"
63
+ - 4
64
+ - 5
65
+ version: 0.4.5
64
66
  type: :runtime
65
67
  version_requirements: *id003
66
68
  - !ruby/object:Gem::Dependency
@@ -101,12 +103,14 @@ dependencies:
101
103
  requirement: &id006 !ruby/object:Gem::Requirement
102
104
  none: false
103
105
  requirements:
104
- - - ">="
106
+ - - "="
105
107
  - !ruby/object:Gem::Version
106
- hash: 3
108
+ hash: 23
107
109
  segments:
110
+ - 1
108
111
  - 0
109
- version: "0"
112
+ - 0
113
+ version: 1.0.0
110
114
  type: :development
111
115
  version_requirements: *id006
112
116
  - !ruby/object:Gem::Dependency