necktie 0.2.0 → 0.2.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.
- data/bin/necktie +2 -1
- data/lib/necktie/services.rb +2 -2
- data/lib/necktie.rb +0 -2
- data/necktie.gemspec +2 -2
- data/session/lib/session-2.4.0.rb +744 -0
- data/session/lib/session.rb +744 -0
- data/session/test/session.rb +227 -0
- metadata +4 -1
data/bin/necktie
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
$LOAD_PATH.unshift File.expand_path("../lib", File.dirname(__FILE__)),
|
2
|
+
$LOAD_PATH.unshift File.expand_path("../lib", File.dirname(__FILE__)),
|
3
|
+
File.expand_path("../rush/lib", File.dirname(__FILE__)), File.expand_path("../session/lib", File.dirname(__FILE__))
|
3
4
|
require "necktie"
|
4
5
|
necktie ARGV
|
data/lib/necktie/services.rb
CHANGED
@@ -27,7 +27,7 @@ module Services
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def self.status(name)
|
30
|
-
status = File.read("|
|
31
|
-
|
30
|
+
status = File.read("|service --status-all 2>&1")[/^ \[ (.) \] #{Regexp.escape name}$/,1]
|
31
|
+
status == "+" ? true : status == "-" ? false : nil
|
32
32
|
end
|
33
33
|
end
|
data/lib/necktie.rb
CHANGED
data/necktie.gemspec
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "necktie"
|
3
|
-
spec.version = "0.2.
|
3
|
+
spec.version = "0.2.1"
|
4
4
|
spec.author = "Assaf Arkin"
|
5
5
|
spec.email = "assaf@labnotes.org"
|
6
6
|
spec.homepage = ""
|
7
7
|
spec.summary = "Dress to impress"
|
8
8
|
spec.description = ""
|
9
9
|
|
10
|
-
spec.files = Dir["{bin,lib,rush}/**/*", "*.{gemspec,rdoc}"]
|
10
|
+
spec.files = Dir["{bin,lib,rush,session}/**/*", "*.{gemspec,rdoc}"]
|
11
11
|
spec.executable = "necktie"
|
12
12
|
end
|