Skip to content
Browse files

Release 1.3.0

  • Loading branch information...
1 parent e67024b commit dc92907d428f46a0ba3f9d6e57ac49f061020521 @alloy alloy committed
Showing with 29 additions and 4 deletions.
  1. +20 −2 README.markdown
  2. +2 −1 Ruby/README.markdown
  3. +7 −1 Ruby/Rakefile
View
22 README.markdown
@@ -20,15 +20,33 @@ status of commands which are executed due to filesystem changes. (v3.0.0)
Prebuilt binaries, which are code-signed and ready to use, are available from
the [downloads section](https://github.com/alloy/terminal-notifier/downloads).
+Or if you want to use this from
+[Ruby](https://github.com/alloy/terminal-notifier/tree/master/Ruby), you can
+install it through RubyGems:
+
+```
+$ [sudo] gem install terminal-notifier
+```
+
## Usage
```
-$ ./terminal-notifier.app/Contents/MacOS/terminal-notifier -message VALUE [options]
+$ ./terminal-notifier.app/Contents/MacOS/terminal-notifier -[message|group] [VALUE|ID] [options]
```
In order to use terminal-notifier, you have to call the binary _inside_ the
-application mbundle.
+application bundle.
+
+The Ruby gem, which wraps this tool, _does_ have a bin wrapper. If installed
+you can simply do:
+
+```
+$ terminal-notifier -[message|group] [VALUE|ID] [options]
+```
+
+This will obviously be a bit slower than using the tool without the wrapper.
+
#### Options
View
3 Ruby/README.markdown
@@ -21,10 +21,11 @@ Examples are:
```ruby
TerminalNotifier.notify('Hello World')
TerminalNotifier.notify('Hello World', :title => 'Ruby')
-TerminalNotifier.notify('Hello World', :group => Process.pid)
TerminalNotifier.notify('Hello World', :activate => 'com.apple.Safari')
TerminalNotifier.notify('Hello World', :open => 'http://twitter.com/alloy')
TerminalNotifier.notify('Hello World', :execute => 'say "OMG"')
+TerminalNotifier.notify('Hello World', :group => Process.pid)
+TerminalNotifier.remove('previous Process.pid')
```
View
8 Ruby/Rakefile
@@ -30,8 +30,14 @@ task :update_build do
mv "vendor/#{filename}", "vendor/terminal-notifier"
end
+desc "Build gem"
task :gem => :update_build do
sh "gem build terminal-notifier.gemspec"
end
-task :default => :gem
+desc "Run specs"
+task :spec do
+ sh "bundle exec ruby spec/terminal-notifier_spec.rb"
+end
+
+task :default => :spec

0 comments on commit dc92907

Please sign in to comment.
Something went wrong with that request. Please try again.