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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2de88ac4c9c82b66fc1834a62bb57de6da4d48ef
4
- data.tar.gz: 0d30068dcee2352fe58767bc81f398225b412491
3
+ metadata.gz: bbf5bc70640de302539eea7aa458a60522510f3e
4
+ data.tar.gz: ec07cadbfbb87d87d0c420d48e467cdabb3c7dcd
5
5
  SHA512:
6
- metadata.gz: 19613550d42cb57bdb742230b0c5268b747f8db10567773b14b4572f6d7c0e59f70050910ec347474ee12ced38a780d43760404f6e63509272eb71d8f4e8ed35
7
- data.tar.gz: 0643d9002711cd493d703ebd93b540857ce72edc2100e260bd5ba8994d3735c9468cb395fb95c9cb61e38155bffc414c4c9502e14d48eb5f2a73aa46e04a83bc
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.0.1'
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 = "exe"
30
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
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
@@ -4,7 +4,6 @@ module Lek
4
4
  class Context
5
5
  def open_editor(editors_list)
6
6
  system "subl #{editors_list.join(" ")}"
7
- #TODO: support other editors
8
7
  end
9
8
  end
10
9
  end
@@ -3,14 +3,14 @@
3
3
  module Lek
4
4
  class Context
5
5
  def create_new_workspace
6
- window_manager = WMCtrl.instance
7
- puts "there are #{window_manager.list_desktops.count} desktops"
8
- # create a new desktop/workspace
9
- window_manager.change_number_of_desktops(window_manager.list_desktops.count + 1)
10
- puts "created new desktop with id #{window_manager.desktops.last[:id]}"
11
- # switch to new workspace
12
- window_manager.switch_desktop(window_manager.desktops.last[:id])
13
- puts "switch to desktop id #{window_manager.desktops.last[:id]}"
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.0.1
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcus Baw
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-26 00:00:00.000000000 Z
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
@@ -1,3 +0,0 @@
1
- module Lek
2
- VERSION = "0.1.0"
3
- end