screeninator 1.0.4 → 1.0.5
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.
- data/README.md +14 -13
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/screeninator/assets/sample.yml +1 -1
- data/lib/screeninator/assets/screen_config.screen +3 -1
- data/lib/screeninator/config_writer.rb +5 -1
- data/screeninator.gemspec +28 -45
- metadata +44 -54
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Installation
|
|
7
7
|
------------
|
8
8
|
|
9
9
|
$ gem install screeninator
|
10
|
-
|
10
|
+
|
11
11
|
Then follow the instructions. You just have to drop a line in your ~/.bashrc file, similar to RVM if you've used that before:
|
12
12
|
|
13
13
|
if [[ -s $HOME/.screeninator/scripts/screeninator ]] ; then source $HOME/.screeninator/scripts/screeninator ; fi
|
@@ -16,38 +16,39 @@ Editor
|
|
16
16
|
------
|
17
17
|
|
18
18
|
Screeninator uses your shell's default editor for opening files. If you're not sure what that is type:
|
19
|
-
|
19
|
+
|
20
20
|
$ echo $EDITOR
|
21
|
-
|
22
|
-
For me that produces "mate -w"
|
21
|
+
|
22
|
+
For me that produces "mate -w"
|
23
23
|
If you want to change your default editor simple put a line in ~/.bashrc that changes it. Mine looks like this:
|
24
24
|
|
25
25
|
export EDITOR='mate -w'
|
26
26
|
|
27
27
|
Usage
|
28
28
|
-----
|
29
|
-
|
29
|
+
|
30
30
|
### Create a project ###
|
31
|
-
|
31
|
+
|
32
32
|
$ screeninator open project_name
|
33
|
-
|
33
|
+
|
34
34
|
Create or edit your projects with this command. Your default editor ($EDITOR) is used to open the file. If this is a new project you will see this default config:
|
35
35
|
|
36
36
|
# ~/.screeninator/project_name.yml
|
37
37
|
# you can make as many tabs as you wish...
|
38
38
|
|
39
|
-
escape:
|
39
|
+
escape: tick
|
40
40
|
project_name: Screeninator
|
41
41
|
project_root: ~/code/rails_project
|
42
42
|
tabs:
|
43
43
|
- shell: git pull
|
44
44
|
- database: rails db
|
45
45
|
- console: rails c
|
46
|
-
- logs:
|
46
|
+
- logs:
|
47
47
|
- cd logs
|
48
48
|
- tail -f development.log
|
49
49
|
- ssh: ssh me@myhost
|
50
|
-
|
50
|
+
|
51
|
+
By default screen's escape key is C-a but I prefer to use ` instead. If you'd rather use C-a just remove the escape line altogether.
|
51
52
|
|
52
53
|
If a tab contains multiple commands, they will be 'joined' together with '&&'.
|
53
54
|
|
@@ -58,7 +59,7 @@ Starting a project
|
|
58
59
|
------------------
|
59
60
|
|
60
61
|
$ start_project_name
|
61
|
-
|
62
|
+
|
62
63
|
This will fire up screen with all the tabs you configured.
|
63
64
|
|
64
65
|
### Limitations ###
|
@@ -76,7 +77,7 @@ Other Commands
|
|
76
77
|
--------------
|
77
78
|
|
78
79
|
For a list of available commands:
|
79
|
-
|
80
|
+
|
80
81
|
$ screeninator help
|
81
82
|
|
82
83
|
Questions? Comments? Feature Request?
|
@@ -89,7 +90,7 @@ For realtime feedback check out the #screeninator channel on irc.freenode.com
|
|
89
90
|
|
90
91
|
Note on Patches/Pull Requests
|
91
92
|
-----------------------------
|
92
|
-
|
93
|
+
|
93
94
|
* Fork the project.
|
94
95
|
* Make your feature addition or bug fix.
|
95
96
|
* Add tests for it. This is important so I don't break it in a
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.5
|
@@ -44,7 +44,11 @@ module Screeninator
|
|
44
44
|
raise ArgumentError.new("Your configuration file didn't specify a 'project_root'") if yaml["project_root"].nil?
|
45
45
|
raise ArgumentError.new("Your configuration file didn't specify a 'project_name'") if yaml["project_name"].nil?
|
46
46
|
|
47
|
-
@escape
|
47
|
+
@escape = if yaml["escape"]
|
48
|
+
yaml["escape"] == "tick" ? "``" : yaml["escape"]
|
49
|
+
else
|
50
|
+
nil
|
51
|
+
end
|
48
52
|
@project_name = yaml["project_name"]
|
49
53
|
@project_root = yaml["project_root"]
|
50
54
|
@tabs = []
|
data/screeninator.gemspec
CHANGED
@@ -1,68 +1,51 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "1.0.
|
7
|
+
s.name = "screeninator"
|
8
|
+
s.version = "1.0.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jon Druse"]
|
12
|
-
s.date =
|
13
|
-
s.
|
14
|
-
s.
|
15
|
-
s.email = %q{jon@jondruse.com}
|
12
|
+
s.date = "2013-03-15"
|
13
|
+
s.description = "Create and manage complex screen sessions easily."
|
14
|
+
s.email = "jon@jondruse.com"
|
16
15
|
s.executables = ["screeninator"]
|
17
16
|
s.extra_rdoc_files = [
|
18
17
|
"LICENSE",
|
19
|
-
|
18
|
+
"README.md"
|
20
19
|
]
|
21
20
|
s.files = [
|
22
21
|
".document",
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
"screeninator.gemspec",
|
37
|
-
"test/helper.rb",
|
38
|
-
"test/test_screeninator.rb"
|
39
|
-
]
|
40
|
-
s.homepage = %q{http://github.com/jondruse/screeninator}
|
41
|
-
s.post_install_message = %q{
|
42
|
-
Thanks for installing Screeninator!
|
43
|
-
|
44
|
-
UPGRADE WARNING - If you have a custom default config, move it to ~/.screeninator/defaults/
|
45
|
-
|
46
|
-
Remember to add the following line to your .bashrc file
|
47
|
-
|
48
|
-
[[ -s "$HOME/.screeninator/scripts/screeninator" ]] && source "$HOME/.screeninator/scripts/screeninator"
|
49
|
-
|
50
|
-
}
|
51
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
52
|
-
s.require_paths = ["lib"]
|
53
|
-
s.rubygems_version = %q{1.3.6}
|
54
|
-
s.summary = %q{Create and manage complex screen sessions easily.}
|
55
|
-
s.test_files = [
|
22
|
+
"CHANGELOG.md",
|
23
|
+
"LICENSE",
|
24
|
+
"README.md",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION",
|
27
|
+
"bin/screeninator",
|
28
|
+
"lib/screeninator.rb",
|
29
|
+
"lib/screeninator/assets/sample.yml",
|
30
|
+
"lib/screeninator/assets/screen_config.screen",
|
31
|
+
"lib/screeninator/cli.rb",
|
32
|
+
"lib/screeninator/config_writer.rb",
|
33
|
+
"lib/screeninator/helper.rb",
|
34
|
+
"screeninator.gemspec",
|
56
35
|
"test/helper.rb",
|
57
|
-
|
36
|
+
"test/test_screeninator.rb"
|
58
37
|
]
|
38
|
+
s.homepage = "http://github.com/jondruse/screeninator"
|
39
|
+
s.post_install_message = "\nThanks for installing Screeninator!\n\nUPGRADE WARNING - If you have a custom default config, move it to ~/.screeninator/defaults/\n\nRemember to add the following line to your .bashrc file\n\n[[ -s \"$HOME/.screeninator/scripts/screeninator\" ]] && source \"$HOME/.screeninator/scripts/screeninator\"\n\n"
|
40
|
+
s.require_paths = ["lib"]
|
41
|
+
s.rubygems_version = "1.8.25"
|
42
|
+
s.summary = "Create and manage complex screen sessions easily."
|
59
43
|
|
60
44
|
if s.respond_to? :specification_version then
|
61
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
62
45
|
s.specification_version = 3
|
63
46
|
|
64
|
-
if Gem::Version.new(Gem::
|
65
|
-
s.add_development_dependency(%q<
|
47
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
48
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
66
49
|
else
|
67
50
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
68
51
|
end
|
metadata
CHANGED
@@ -1,46 +1,41 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: screeninator
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.5
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 4
|
10
|
-
version: 1.0.4
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Jon Druse
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-03-15 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: shoulda
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
32
22
|
type: :development
|
33
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
34
30
|
description: Create and manage complex screen sessions easily.
|
35
31
|
email: jon@jondruse.com
|
36
|
-
executables:
|
32
|
+
executables:
|
37
33
|
- screeninator
|
38
34
|
extensions: []
|
39
|
-
|
40
|
-
extra_rdoc_files:
|
35
|
+
extra_rdoc_files:
|
41
36
|
- LICENSE
|
42
37
|
- README.md
|
43
|
-
files:
|
38
|
+
files:
|
44
39
|
- .document
|
45
40
|
- CHANGELOG.md
|
46
41
|
- LICENSE
|
@@ -59,45 +54,40 @@ files:
|
|
59
54
|
- test/test_screeninator.rb
|
60
55
|
homepage: http://github.com/jondruse/screeninator
|
61
56
|
licenses: []
|
57
|
+
post_install_message: ! '
|
62
58
|
|
63
|
-
post_install_message: |+
|
64
|
-
|
65
59
|
Thanks for installing Screeninator!
|
66
|
-
|
60
|
+
|
61
|
+
|
67
62
|
UPGRADE WARNING - If you have a custom default config, move it to ~/.screeninator/defaults/
|
68
|
-
|
63
|
+
|
64
|
+
|
69
65
|
Remember to add the following line to your .bashrc file
|
70
|
-
|
66
|
+
|
67
|
+
|
71
68
|
[[ -s "$HOME/.screeninator/scripts/screeninator" ]] && source "$HOME/.screeninator/scripts/screeninator"
|
72
|
-
|
73
|
-
rdoc_options: []
|
74
69
|
|
75
|
-
|
70
|
+
|
71
|
+
'
|
72
|
+
rdoc_options: []
|
73
|
+
require_paths:
|
76
74
|
- lib
|
77
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
75
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
78
76
|
none: false
|
79
|
-
requirements:
|
80
|
-
- -
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
|
83
|
-
|
84
|
-
- 0
|
85
|
-
version: "0"
|
86
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ! '>='
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
82
|
none: false
|
88
|
-
requirements:
|
89
|
-
- -
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
|
92
|
-
segments:
|
93
|
-
- 0
|
94
|
-
version: "0"
|
83
|
+
requirements:
|
84
|
+
- - ! '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
95
87
|
requirements: []
|
96
|
-
|
97
88
|
rubyforge_project:
|
98
|
-
rubygems_version: 1.8.
|
89
|
+
rubygems_version: 1.8.25
|
99
90
|
signing_key:
|
100
91
|
specification_version: 3
|
101
92
|
summary: Create and manage complex screen sessions easily.
|
102
93
|
test_files: []
|
103
|
-
|