lunchy 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eaa885869b7377c9503943c50f5e3e704bac618e
4
- data.tar.gz: 3e74560a828450807b47e7a2269a6f2575d7ccd9
3
+ metadata.gz: 1d66d79569c8413ff8d9e161d6bbfcfa3333cc84
4
+ data.tar.gz: 984f3c375f146ade4aacdde2a74c6fbc6768473e
5
5
  SHA512:
6
- metadata.gz: 030835963dbbb1156b7b237ee828b9d163ec629da099cbaca6b4ce00ba1ab505a8f3aec2b7d131115bb12c96ac801e618bdb0846f9e1046defd3fe848bb19b98
7
- data.tar.gz: e3d0ad541765352715d0be8e8b676d3c1baefe3e4a760f4fbdea93928d1962c415f03dfb8c1c523bc3dfc552e6646bd0b24193f5354906f2594a40a30f2ebc67
6
+ metadata.gz: 0afc746b752a2e9abc7fccc13180ecffd4de3d908ab54a5990894e45aec427f0b6a74ca06fdc66d88842c25320216e588dfd4865bd6f6077a112a1ccbeb510fc
7
+ data.tar.gz: 060e4bab4f5a72bf98942325f18490fa6fe5b68ccedfa225cc053f8cddf71dbf78079235390aa97e9557fa412dd2466b097ad7981e6bbd5db5cd1b4448db163e
data/History.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Changes
2
2
  ================
3
3
 
4
+ 0.10.3
5
+ ----
6
+
7
+ - Fix regex for exact matching
8
+
4
9
  0.10.1
5
10
  ----
6
11
 
data/README.md CHANGED
@@ -3,7 +3,7 @@ lunchy
3
3
 
4
4
  A friendly wrapper for launchctl. Start your agents and go to lunch!
5
5
 
6
- Don't you hate OSX's launchctl? You have to give it exact filenames. The syntax is annoying different from Linux's nice, simple init system and overly verbose. It's just not a very developer-friendly tool.
6
+ Don't you hate OSX's launchctl? You have to give it exact filenames. The syntax is annoyingly different from Linux's nice, simple init system and overly verbose. It's just not a very developer-friendly tool.
7
7
 
8
8
  Lunchy aims to be that friendly tool by wrapping launchctl and providing a few simple operations that you perform all the time:
9
9
 
@@ -10,7 +10,7 @@ function _lunchy {
10
10
  case "$cur_pos" in
11
11
  1) COMPREPLY=($(compgen -W 'ls list start stop restart status install uninstall show edit' -- $cur))
12
12
  ;;
13
- *) COMPREPLY=($(compgen -W '$(lunchy list)' -- $cur))
13
+ *) COMPREPLY=($(compgen -W "$(lunchy list)" -- $cur))
14
14
  ;;
15
15
  esac
16
16
  }
@@ -0,0 +1,8 @@
1
+ ###
2
+ # completion written by Raphaël Emourgeon
3
+ # on github : osaris
4
+ #
5
+
6
+ autoload bashcompinit
7
+ bashcompinit
8
+ source $(dirname $0)/lunchy-completion.bash
@@ -1,7 +1,7 @@
1
1
  require 'fileutils'
2
2
 
3
3
  class Lunchy
4
- VERSION = '0.10.2'
4
+ VERSION = '0.10.3'
5
5
 
6
6
  def start(params)
7
7
  raise ArgumentError, "start [-wF] [name]" if params.empty?
@@ -126,7 +126,7 @@ class Lunchy
126
126
  end
127
127
 
128
128
  def pattern_for_grep(s)
129
- exact ? "\\b#{s}\\b" : s if s
129
+ exact ? "^#{s}$" : s if s
130
130
  end
131
131
 
132
132
  def pattern_regex(s)
@@ -14,6 +14,13 @@ to your .bash_profile, .bashrc or .profile
14
14
  . $LUNCHY_DIR/lunchy-completion.bash
15
15
  fi
16
16
 
17
+ or add the following to your .zshrc for ZSH
18
+
19
+ LUNCHY_DIR=$(dirname `gem which lunchy`)/../extras
20
+ if [ -f $LUNCHY_DIR/lunchy-completion.zsh ]; then
21
+ . $LUNCHY_DIR/lunchy-completion.zsh
22
+ fi
23
+
17
24
  -------
18
25
  EOS
19
26
 
@@ -21,9 +28,9 @@ Gem::Specification.new do |s|
21
28
  s.name = "lunchy"
22
29
  s.version = Lunchy::VERSION
23
30
  s.platform = Gem::Platform::RUBY
24
- s.authors = ["Mike Perham"]
31
+ s.authors = ["Mike Perham", "Eddie Zaneski", "Mr Rogers"]
25
32
  s.email = ["mperham@gmail.com"]
26
- s.homepage = "http://github.com/mperham/lunchy"
33
+ s.homepage = "http://github.com/eddiezane/lunchy"
27
34
  s.summary = s.description = %q{Friendly wrapper around launchctl}
28
35
  s.post_install_message = post_install_message
29
36
  s.licenses = ['MIT']
metadata CHANGED
@@ -1,14 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lunchy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Perham
8
+ - Eddie Zaneski
9
+ - Mr Rogers
8
10
  autorequire:
9
11
  bindir: bin
10
12
  cert_chain: []
11
- date: 2015-07-14 00:00:00.000000000 Z
13
+ date: 2015-08-19 00:00:00.000000000 Z
12
14
  dependencies:
13
15
  - !ruby/object:Gem::Dependency
14
16
  name: rake
@@ -40,9 +42,10 @@ files:
40
42
  - Rakefile
41
43
  - bin/lunchy
42
44
  - extras/lunchy-completion.bash
45
+ - extras/lunchy-completion.zsh
43
46
  - lib/lunchy.rb
44
47
  - lunchy.gemspec
45
- homepage: http://github.com/mperham/lunchy
48
+ homepage: http://github.com/eddiezane/lunchy
46
49
  licenses:
47
50
  - MIT
48
51
  metadata: {}
@@ -50,7 +53,9 @@ post_install_message: "-------\n\nThanks for installing Lunchy. We know you're
50
53
  to love it!\n\nIf you want to add tab-completion (for bash), add the following \nto
51
54
  your .bash_profile, .bashrc or .profile\n\n LUNCHY_DIR=$(dirname `gem which lunchy`)/../extras\n
52
55
  \ if [ -f $LUNCHY_DIR/lunchy-completion.bash ]; then\n . $LUNCHY_DIR/lunchy-completion.bash\n
53
- \ fi\n\n-------\n"
56
+ \ fi\n\nor add the following to your .zshrc for ZSH\n\n LUNCHY_DIR=$(dirname `gem
57
+ which lunchy`)/../extras\n if [ -f $LUNCHY_DIR/lunchy-completion.zsh ]; then\n
58
+ \ . $LUNCHY_DIR/lunchy-completion.zsh\n fi\n\n-------\n"
54
59
  rdoc_options: []
55
60
  require_paths:
56
61
  - lib
@@ -66,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
71
  version: '0'
67
72
  requirements: []
68
73
  rubyforge_project:
69
- rubygems_version: 2.2.2
74
+ rubygems_version: 2.4.5
70
75
  signing_key:
71
76
  specification_version: 4
72
77
  summary: Friendly wrapper around launchctl