launch-link 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.
- checksums.yaml +7 -0
- data/README.md +22 -0
- data/bin/launch-link +24 -0
- data/launch-link.gemspec +16 -0
- metadata +47 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a793de993004fc22e9f8f9d2364e9380d6530660
|
4
|
+
data.tar.gz: d125e08ae228bc08287a598d7f749cf2a4c9da8b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 59553422bd27b207be367332d1ee57dcd5bc5dc1829beb95526b3931bc77985bc8f55fc1e6d16150fc6688d3076e70616e4e30405e24af512d283f24f933257a
|
7
|
+
data.tar.gz: a9375a1e9e6c175fa439fc5ddeb8f438c7c11e2d2f3c4435b684d0ecc83fd17f25ca4d997fadc4c509aca8fdfe58d69c0546bd4b0ed828fe3e236f70875d8676
|
data/README.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Quickly launch important web pages from command line in your repo: github page, contiunous integration page, live production site etc.
|
2
|
+
|
3
|
+
# Install
|
4
|
+
Only works on osx, it uses the "open" command
|
5
|
+
|
6
|
+
```gem install launch-link```
|
7
|
+
|
8
|
+
|
9
|
+
# Link file
|
10
|
+
In each project repo add a ```./links.yml```file
|
11
|
+
|
12
|
+
```yaml
|
13
|
+
repo: https://github.com/mwq/launch-link
|
14
|
+
ci: https:://travis-ci.com/mwq/launch-link
|
15
|
+
prod: http://mwq.com
|
16
|
+
```
|
17
|
+
|
18
|
+
# Alias
|
19
|
+
|
20
|
+
Optionally set up alias in your .bashrc / .zshrc:
|
21
|
+
|
22
|
+
```alias q=launch-link```
|
data/bin/launch-link
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
require "yaml"
|
3
|
+
|
4
|
+
root_path = `git rev-parse --show-toplevel`.strip()
|
5
|
+
links_file = File.join(root_path, "links.yml")
|
6
|
+
|
7
|
+
if File.exist?(links_file)
|
8
|
+
config = YAML.load_file(links_file)
|
9
|
+
else
|
10
|
+
puts "Not found: #{links_file}"
|
11
|
+
puts "Error: No links.yml exists."
|
12
|
+
exit(1)
|
13
|
+
end
|
14
|
+
command = ARGV[0]
|
15
|
+
if command && link = config[command]
|
16
|
+
cmd = "open #{link}"
|
17
|
+
puts cmd
|
18
|
+
system(cmd)
|
19
|
+
else
|
20
|
+
config.each do |name,url|
|
21
|
+
puts "#{name}\t#{url}"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
data/launch-link.gemspec
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
Gem::Specification.new do |gem|
|
2
|
+
gem.name = 'launch-link'
|
3
|
+
gem.version = "0.1.0"
|
4
|
+
gem.date = Date.today.to_s
|
5
|
+
gem.license = "MIT"
|
6
|
+
|
7
|
+
gem.summary = "Quickly launch links specified in links.yml"
|
8
|
+
|
9
|
+
gem.authors = ['Mattias Warnqvist']
|
10
|
+
gem.email = 'mwq@mwq.se'
|
11
|
+
gem.homepage = 'http://github.com/mwq/launch-link'
|
12
|
+
|
13
|
+
gem.executables << 'launch-link'
|
14
|
+
|
15
|
+
gem.files = `git ls-files -z`.split("\0")
|
16
|
+
end
|
metadata
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: launch-link
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mattias Warnqvist
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-09-18 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description:
|
14
|
+
email: mwq@mwq.se
|
15
|
+
executables:
|
16
|
+
- launch-link
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- README.md
|
21
|
+
- bin/launch-link
|
22
|
+
- launch-link.gemspec
|
23
|
+
homepage: http://github.com/mwq/launch-link
|
24
|
+
licenses:
|
25
|
+
- MIT
|
26
|
+
metadata: {}
|
27
|
+
post_install_message:
|
28
|
+
rdoc_options: []
|
29
|
+
require_paths:
|
30
|
+
- lib
|
31
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - ">="
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '0'
|
36
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
requirements: []
|
42
|
+
rubyforge_project:
|
43
|
+
rubygems_version: 2.5.2
|
44
|
+
signing_key:
|
45
|
+
specification_version: 4
|
46
|
+
summary: Quickly launch links specified in links.yml
|
47
|
+
test_files: []
|