Launcher 0.1.0

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.
Files changed (5) hide show
  1. checksums.yaml +15 -0
  2. data/README.md +14 -0
  3. data/launcher.gemspec +28 -0
  4. data/lib/launcher.rbw +24 -0
  5. metadata +50 -0
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YjZmZDAzOGI0OGI2NjI1NDVmZjEzZjMyZjViYzZlMjZjNmU5N2JjNQ==
5
+ data.tar.gz: !binary |-
6
+ YTE3MjBiNzMwZjRlNzE5MmZjYWQ5ZmY0MWJhZmQwN2RjZDU5YWFjNA==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ YTYxODUyMTIzZGY5ZTgzZmI4OTI4ZGM4MzM4ZWQ0ZjBlNjI5Y2EwYTU5ZDQ4
10
+ NmY2ZTcwZmY3ZTMyZDc1MWUxNzE4Y2ZlNjJmMzQ5NjRkMTQ2NGMwYzIwYjdj
11
+ YTE3NzcxZmIyMDk0ZjA4MmY5ZDQyNjVmZmEzZTYyMDRjMjA4ZWE=
12
+ data.tar.gz: !binary |-
13
+ NjhhNTRhZDk3ODQ3OGRmZTM4YTE5ZDkzNjhmM2MxYzI2MjI1YjY3ODUxNzBm
14
+ NDUyNTg4MGVmNTdiYjQ4ZGJjYWMwYjI0ZjI3YzYzNGExNDc5OGIxY2Q5OTc5
15
+ MTNkNTAzZTA4Y2VjMDNmZTRhYjFhMjFiNjlhYmFhNDgyY2E4OTY=
data/README.md ADDED
@@ -0,0 +1,14 @@
1
+ As the number of Ruby Gui Applications increases, it may be difficult to manage the big collection of apps. This launcher makes managing the Ruby widgets and Apps easier through a dropdown menu list. Once the user select a script it is launched. This works mainly with Ruby Gui scripts. Launcher comes as a window Ruby file ".rbw" which is launched without the cmd window.
2
+
3
+ This applies to Microsoft windows. Users of other Operating systems will modify the script to their needs.
4
+
5
+
6
+ USAGE:
7
+ =====
8
+ 1. Install the Launcherr : "gem install launcher" at the prompt.
9
+ 2. create a text file containing:
10
+ require 'launcher'
11
+ Launcher.run
12
+ save it as "launcher.rb" in the folder where the collection of your Ruby scripts resides.
13
+ Create a shortcut link on your desktop to this launcher.rb file in the scripts folder.
14
+ 3. When you click on the Desktop link, the widget will be launched. Select the script to launch from the dropdown menu.
data/launcher.gemspec ADDED
@@ -0,0 +1,28 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = "Launcher"
5
+ s.version = "0.1.0"
6
+ s.licenses = ['MIT']
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Sabry Fattah"]
9
+ s.date = "2015-02-21"
10
+ s.description = "A small desktop Gui widget in the form of dropdown menu to launch Ruby scripts or any executables"
11
+ s.email = "sabryabdelfattah@gmail.com"
12
+ s.extra_rdoc_files = ["README.md"]
13
+ s.files = ["launcher.gemspec", "lib/launcher.rbw", "README.md"]
14
+ s.homepage = "http://sabryfattah.com"
15
+ s.rdoc_options = ["--main", "README.md"]
16
+ s.require_paths = ["lib"]
17
+ s.rubygems_version = "1.8.29"
18
+ s.summary = "A small gui widget to launch Ruby scripts in Apps directory"
19
+
20
+ if s.respond_to? :specification_version then
21
+ s.specification_version = 3
22
+
23
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
24
+ else
25
+ end
26
+ else
27
+ end
28
+ end
data/lib/launcher.rbw ADDED
@@ -0,0 +1,24 @@
1
+ require 'tk'
2
+ require 'tkextlib/tile'
3
+
4
+ class Launcher
5
+ def self.run
6
+ puts `launcher.rb`
7
+ end
8
+ end
9
+
10
+
11
+ $files = TkVariable.new
12
+ $files = Dir.entries(".").select {|f| !File.directory? f}
13
+
14
+ root = TkRoot.new
15
+ root.title = "Launcher"
16
+
17
+
18
+ launcher = TkCombobox.new(root){
19
+ values $files
20
+ pack("side" => "left", "padx"=> "50", "pady"=> "50")
21
+ }
22
+
23
+ launcher.bind("<ComboboxSelected>"){`ruby "#{launcher.get()}"`}
24
+ Tk.mainloop
metadata ADDED
@@ -0,0 +1,50 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: Launcher
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Sabry Fattah
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-02-21 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A small desktop Gui widget in the form of dropdown menu to launch Ruby
14
+ scripts or any executables
15
+ email: sabryabdelfattah@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files:
19
+ - README.md
20
+ files:
21
+ - README.md
22
+ - launcher.gemspec
23
+ - lib/launcher.rbw
24
+ homepage: http://sabryfattah.com
25
+ licenses:
26
+ - MIT
27
+ metadata: {}
28
+ post_install_message:
29
+ rdoc_options:
30
+ - --main
31
+ - README.md
32
+ require_paths:
33
+ - lib
34
+ required_ruby_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ required_rubygems_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ requirements: []
45
+ rubyforge_project:
46
+ rubygems_version: 2.4.5
47
+ signing_key:
48
+ specification_version: 3
49
+ summary: A small gui widget to launch Ruby scripts in Apps directory
50
+ test_files: []