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 ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
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
- configliere
17
- ruby_gntp
18
- thor
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
- this will send MESSAGE to growl.
39
+ This will send MESSAGE to growl.
23
40
 
24
41
  $ long_running_job.sh; safit notify done
25
42
 
26
- this will send "done" to growl when long_running_job.sh is done.
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
@@ -18,11 +18,6 @@
18
18
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
19
19
  #}}}
20
20
 
21
- require "rubygems"
22
- require 'bundler/setup'
23
-
24
- require "thor"
25
-
26
21
  require_relative "../lib/safit"
27
22
 
28
23
  Safit::Cli.start ARGV
data/lib/safit.rb CHANGED
@@ -16,6 +16,8 @@
16
16
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
  #}}}
18
18
 
19
+ require "rubygems"
20
+
19
21
  require_relative 'safit/cli'
20
22
  require_relative 'safit/gntp'
21
23
  require_relative 'safit/settings'
data/lib/safit/cli.rb CHANGED
@@ -16,6 +16,7 @@
16
16
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
  #}}}
18
18
 
19
+ require 'thor'
19
20
  require_relative 'gntp'
20
21
 
21
22
  module Safit
@@ -0,0 +1,3 @@
1
+ module Safit
2
+ VERSION = "0.0.2"
3
+ end
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.1
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-01 00:00:00.000000000 Z
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