safit 0.0.1 → 0.0.2
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/.gitignore +17 -0
- data/Gemfile.lock +12 -3
- data/README.md +19 -3
- data/Rakefile +1 -0
- data/bin/safit +0 -5
- data/lib/safit.rb +2 -0
- data/lib/safit/cli.rb +1 -0
- data/lib/safit/version.rb +3 -0
- data/safit.gemspec +27 -0
- metadata +6 -2
data/.gitignore
ADDED
data/Gemfile.lock
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
safit (0.0.1)
|
5
|
+
configliere
|
6
|
+
ruby_gntp
|
7
|
+
thor
|
8
|
+
|
1
9
|
GEM
|
2
10
|
remote: https://rubygems.org/
|
3
11
|
specs:
|
@@ -6,6 +14,7 @@ GEM
|
|
6
14
|
multi_json (>= 1.1)
|
7
15
|
highline (1.6.20)
|
8
16
|
multi_json (1.8.2)
|
17
|
+
rake (10.0.3)
|
9
18
|
ruby_gntp (0.3.4)
|
10
19
|
thor (0.18.1)
|
11
20
|
|
@@ -13,6 +22,6 @@ PLATFORMS
|
|
13
22
|
ruby
|
14
23
|
|
15
24
|
DEPENDENCIES
|
16
|
-
|
17
|
-
|
18
|
-
|
25
|
+
bundler (~> 1.3)
|
26
|
+
rake
|
27
|
+
safit!
|
data/README.md
CHANGED
@@ -11,6 +11,23 @@ safit is short for (S)tick (a) (f)ork (i)n i(t).
|
|
11
11
|
safit is a command line utility to send notifications. It can be used to
|
12
12
|
notify when a long running command is finished for example.
|
13
13
|
|
14
|
+
# Installation
|
15
|
+
|
16
|
+
I'd be nice if this could be distributed as a stand alone binary or
|
17
|
+
something. But since it's not...
|
18
|
+
|
19
|
+
$ gem install safit
|
20
|
+
|
21
|
+
Then run like:
|
22
|
+
|
23
|
+
$ safit notify "does this work?"
|
24
|
+
|
25
|
+
If using rvm, this is a nice way to make the executable available
|
26
|
+
globally (with rvm version 1.20.7):
|
27
|
+
|
28
|
+
$ rvm wrapper
|
29
|
+
$ rvm wrapper ruby-1.9.3@whatever --no-prefix safit
|
30
|
+
|
14
31
|
# Usage
|
15
32
|
|
16
33
|
There are two ways to use this.
|
@@ -19,11 +36,11 @@ There are two ways to use this.
|
|
19
36
|
|
20
37
|
$ safit notify MESSAGE
|
21
38
|
|
22
|
-
|
39
|
+
This will send MESSAGE to growl.
|
23
40
|
|
24
41
|
$ long_running_job.sh; safit notify done
|
25
42
|
|
26
|
-
|
43
|
+
This will send "done" to growl when long_running_job.sh is done.
|
27
44
|
|
28
45
|
## exec
|
29
46
|
|
@@ -48,5 +65,4 @@ in yaml format. Here's an example
|
|
48
65
|
|
49
66
|
# TODO
|
50
67
|
|
51
|
-
* Look into rvm wrappers
|
52
68
|
* Look into using os x notification center directly
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/bin/safit
CHANGED
data/lib/safit.rb
CHANGED
data/lib/safit/cli.rb
CHANGED
data/safit.gemspec
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'safit/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "safit"
|
8
|
+
spec.version = Safit::VERSION
|
9
|
+
spec.authors = ["Andrew Hartford"]
|
10
|
+
spec.email = ["hartorda@gmail.com"]
|
11
|
+
spec.description = %q{A command line notification utility}
|
12
|
+
spec.summary = %q{A command line notification utility}
|
13
|
+
spec.homepage = "https://github.com/ajh/safit"
|
14
|
+
spec.license = "GPL"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
|
24
|
+
spec.add_runtime_dependency "configliere"
|
25
|
+
spec.add_runtime_dependency "ruby_gntp"
|
26
|
+
spec.add_runtime_dependency "thor"
|
27
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: safit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-12-
|
12
|
+
date: 2013-12-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -99,17 +99,21 @@ executables:
|
|
99
99
|
extensions: []
|
100
100
|
extra_rdoc_files: []
|
101
101
|
files:
|
102
|
+
- .gitignore
|
102
103
|
- .ruby-gemset
|
103
104
|
- .ruby-version
|
104
105
|
- Gemfile
|
105
106
|
- Gemfile.lock
|
106
107
|
- LICENSE
|
107
108
|
- README.md
|
109
|
+
- Rakefile
|
108
110
|
- bin/safit
|
109
111
|
- lib/safit.rb
|
110
112
|
- lib/safit/cli.rb
|
111
113
|
- lib/safit/gntp.rb
|
112
114
|
- lib/safit/settings.rb
|
115
|
+
- lib/safit/version.rb
|
116
|
+
- safit.gemspec
|
113
117
|
homepage: https://github.com/ajh/safit
|
114
118
|
licenses:
|
115
119
|
- GPL
|