Permalink
Browse files

added initial spike. working on starting ruby app with growl notifica…

…tions
  • Loading branch information...
0 parents commit 858f59475dc3e812a8a0a430f232e12895c69a9f @mgornick committed Oct 7, 2011
Showing with 40 additions and 0 deletions.
  1. +1 −0 .rvmrc
  2. +4 −0 Gemfile
  3. +12 −0 Gemfile.lock
  4. +7 −0 config.rb
  5. +13 −0 notification.rb
  6. +3 −0 start.rb
@@ -0,0 +1 @@
+rvm use --create 1.9.2@ruby-onething
@@ -0,0 +1,4 @@
+source :rubygems
+
+
+gem "growl_notify"
@@ -0,0 +1,12 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ growl_notify (0.0.3)
+ rb-appscript
+ rb-appscript (0.6.1)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ growl_notify
@@ -0,0 +1,7 @@
+require 'growl_notify'
+
+GrowlNotify.config do |config|
+ config.notifications = ["Compass Application", "Someother Notification"]
+ config.default_notifications = ["Compass Application"]
+ config.application_name = "My Application" #this shows up in the growl applications list in systems settings
+end
@@ -0,0 +1,13 @@
+require 'growl_notify'
+
+class Notification
+
+ attr_accessor :message
+ def initialize(message = "OneThing Reminder")
+ @message = message
+ end
+
+ def save
+ GrowlNotify.very_low(:title => message, :description => 'Man that was cool')
+ end
+end
@@ -0,0 +1,3 @@
+#!/usr/bin/ruby
+
+puts "HI"

0 comments on commit 858f594

Please sign in to comment.