From d023edf475022bae64614bd1b0b4f52fa894d9e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Re=CC=81mi=20Pre=CC=81vost?= Date: Sun, 9 Oct 2011 22:42:37 -0400 Subject: [PATCH] Add example files --- README.md | 2 ++ examples/simple-four-splits.yml | 12 ++++++++++++ examples/simple-one-and-three-splits.yml | 12 ++++++++++++ examples/simple-six-splits.yml | 18 ++++++++++++++++++ examples/simple-two-horitonzal-splits.yml | 6 ++++++ examples/simple-two-vertical-splits.yml | 6 ++++++ lib/teamocil.rb | 2 +- teamocil.gemspec | 6 +++++- 8 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 examples/simple-four-splits.yml create mode 100644 examples/simple-one-and-three-splits.yml create mode 100644 examples/simple-six-splits.yml create mode 100644 examples/simple-two-horitonzal-splits.yml create mode 100644 examples/simple-two-vertical-splits.yml diff --git a/README.md b/README.md index bd9c8ab..04b7f30 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,8 @@ Every window must define an array of splits that will be created within it. A ve ## Layout examples +See more example files in the `examples` directory. + ### Simple two splits window #### Content of `~/.teamocil/sample-1.yml` diff --git a/examples/simple-four-splits.yml b/examples/simple-four-splits.yml new file mode 100644 index 0000000..47c446a --- /dev/null +++ b/examples/simple-four-splits.yml @@ -0,0 +1,12 @@ +windows: + - name: simple-four-splits + splits: + - cmd: "echo 'first split'" + - cmd: "echo 'second split'" + width: 50 + - cmd: "echo 'fourth split'" + height: 50 + target: bottom-right + - cmd: "echo 'third split'" + height: 50 + target: bottom-left diff --git a/examples/simple-one-and-three-splits.yml b/examples/simple-one-and-three-splits.yml new file mode 100644 index 0000000..fe64699 --- /dev/null +++ b/examples/simple-one-and-three-splits.yml @@ -0,0 +1,12 @@ +windows: + - name: simple-one-and-three-splits + splits: + - cmd: "echo 'first split'" + - cmd: "echo 'second split'" + width: 50 + - cmd: "echo 'third split'" + height: 66 + target: bottom-right + - cmd: "echo 'fourth split'" + height: 50 + target: bottom-right diff --git a/examples/simple-six-splits.yml b/examples/simple-six-splits.yml new file mode 100644 index 0000000..de09370 --- /dev/null +++ b/examples/simple-six-splits.yml @@ -0,0 +1,18 @@ +windows: + - name: simple-six-splits + splits: + - cmd: "echo 'first split'" + - cmd: "echo 'second split'" + width: 50 + - cmd: "echo 'fourth split'" + height: 66 + target: bottom-right + - cmd: "echo 'third split'" + height: 66 + target: bottom-left + - cmd: "echo 'sixth split'" + height: 50 + target: bottom-right + - cmd: "echo 'fifth split'" + height: 50 + target: bottom-left diff --git a/examples/simple-two-horitonzal-splits.yml b/examples/simple-two-horitonzal-splits.yml new file mode 100644 index 0000000..2cfeeb5 --- /dev/null +++ b/examples/simple-two-horitonzal-splits.yml @@ -0,0 +1,6 @@ +windows: + - name: simple-two-horizontal-splits + splits: + - cmd: "echo 'first split'" + - cmd: "echo 'second split'" + height: 50 diff --git a/examples/simple-two-vertical-splits.yml b/examples/simple-two-vertical-splits.yml new file mode 100644 index 0000000..361af5b --- /dev/null +++ b/examples/simple-two-vertical-splits.yml @@ -0,0 +1,6 @@ +windows: + - name: simple-two-vertical-splits + splits: + - cmd: "echo 'first split'" + - cmd: "echo 'second split'" + width: 50 diff --git a/lib/teamocil.rb b/lib/teamocil.rb index c5a15de..88a3619 100644 --- a/lib/teamocil.rb +++ b/lib/teamocil.rb @@ -1,5 +1,5 @@ module Teamocil - VERSION = '0.1.10' + VERSION = "0.1.10" autoload :Layout, "teamocil/layout" autoload :CLI, "teamocil/cli" end diff --git a/teamocil.gemspec b/teamocil.gemspec index 6751a22..f6b53d3 100644 --- a/teamocil.gemspec +++ b/teamocil.gemspec @@ -1,6 +1,10 @@ +# -*- encoding: utf-8 -*- +$:.push File.expand_path("../lib", __FILE__) +require "teamocil" + spec = Gem::Specification.new do |s| s.name = "teamocil" - s.version = "0.1.10" + s.version = Teamocil::VERSION s.platform = Gem::Platform::RUBY s.authors = "Rémi Prévost" s.email = "remi@exomel.com"