lek 0.0.1 → 0.1.1
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.
- checksums.yaml +4 -4
- data/bin/lek +1 -0
- data/lek.gemspec +3 -3
- data/lib/lek/editors.rb +0 -1
- data/lib/lek/workspaces.rb +8 -8
- metadata +5 -5
- data/lib/lek/version.rb +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bbf5bc70640de302539eea7aa458a60522510f3e
|
|
4
|
+
data.tar.gz: ec07cadbfbb87d87d0c420d48e467cdabb3c7dcd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dffd53e475ea470703cb42613e5277878c1f0564be8ab2948a17f874ed6470c24c5719d16e1a5c4b8230365281b3a361b7dc636eddfb7e134fe312a22bb177bf
|
|
7
|
+
data.tar.gz: b5cf53ad872ee6f6d82ede1ae7964d78e28b7b53035058a048345510888a81cb2ba44aeb17d7ee158b682746011a497bb828b9c98d2517f5c71c177cdae73a8f
|
data/bin/lek
CHANGED
|
@@ -4,6 +4,7 @@ require 'lek'
|
|
|
4
4
|
data = YAML.load_file('examples/test.yml')
|
|
5
5
|
# TODO: need to be able to pass in a file via command line argument
|
|
6
6
|
context = Lek::Context.new
|
|
7
|
+
|
|
7
8
|
context.create_new_workspace
|
|
8
9
|
context.open_browsers(data["urls"])
|
|
9
10
|
context.open_terminals(data["terminals"])
|
data/lek.gemspec
CHANGED
|
@@ -5,7 +5,7 @@ require 'lek/version'
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "lek"
|
|
8
|
-
spec.version = '0.
|
|
8
|
+
spec.version = '0.1.1'
|
|
9
9
|
spec.authors = ["Marcus Baw"]
|
|
10
10
|
spec.email = ["marcusbaw@gmail.com"]
|
|
11
11
|
|
|
@@ -26,8 +26,8 @@ Gem::Specification.new do |spec|
|
|
|
26
26
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
27
27
|
f.match(%r{^(test|spec|features)/})
|
|
28
28
|
end
|
|
29
|
-
spec.bindir = "
|
|
30
|
-
spec.executables
|
|
29
|
+
spec.bindir = "bin"
|
|
30
|
+
spec.executables << 'lek'
|
|
31
31
|
spec.require_paths = ["lib"]
|
|
32
32
|
|
|
33
33
|
spec.add_development_dependency "bundler", "~> 1.14"
|
data/lib/lek/editors.rb
CHANGED
data/lib/lek/workspaces.rb
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
module Lek
|
|
4
4
|
class Context
|
|
5
5
|
def create_new_workspace
|
|
6
|
-
|
|
7
|
-
puts "there are #{
|
|
8
|
-
#
|
|
9
|
-
|
|
10
|
-
puts "created new desktop with id #{
|
|
11
|
-
#
|
|
12
|
-
|
|
13
|
-
puts "
|
|
6
|
+
wm = WMCtrl.instance
|
|
7
|
+
puts "there are #{wm.desktops.last[:id] + 1} desktops"
|
|
8
|
+
# create a new desktop/workspace
|
|
9
|
+
wm.change_number_of_desktops(wm.desktops.last[:id] + 2)
|
|
10
|
+
puts "created new desktop with id #{wm.desktops.last[:id]}"
|
|
11
|
+
# switch to new workspace
|
|
12
|
+
wm.switch_desktop(wm.desktops.last[:id])
|
|
13
|
+
puts "switched to desktop id #{wm.desktops.last[:id]}"
|
|
14
14
|
end
|
|
15
15
|
end
|
|
16
16
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lek
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marcus Baw
|
|
8
8
|
autorequire:
|
|
9
|
-
bindir:
|
|
9
|
+
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-05-
|
|
11
|
+
date: 2017-05-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -57,7 +57,8 @@ description: a simple gem for switching work contexts. Opens creates a new Works
|
|
|
57
57
|
you.
|
|
58
58
|
email:
|
|
59
59
|
- marcusbaw@gmail.com
|
|
60
|
-
executables:
|
|
60
|
+
executables:
|
|
61
|
+
- lek
|
|
61
62
|
extensions: []
|
|
62
63
|
extra_rdoc_files: []
|
|
63
64
|
files:
|
|
@@ -80,7 +81,6 @@ files:
|
|
|
80
81
|
- lib/lek/browsers.rb
|
|
81
82
|
- lib/lek/editors.rb
|
|
82
83
|
- lib/lek/terminals.rb
|
|
83
|
-
- lib/lek/version.rb
|
|
84
84
|
- lib/lek/workspaces.rb
|
|
85
85
|
homepage: https://github.com/pacharanero/lek
|
|
86
86
|
licenses:
|
data/lib/lek/version.rb
DELETED