self-notifo 0.2.0 → 0.3.0

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/README.rdoc CHANGED
@@ -6,9 +6,10 @@ The self-notifo gem allows you to send Notifo (http://notifo.com) notifications
6
6
  $ gem install self-notifo
7
7
 
8
8
  == Usage
9
- Sign up for a Notifo account (it's free). Take note of your API Username and API Secret (find on your account settings page on the Notifo site)
9
+ Sign up for a Notifo account (it's free). Take note of your API Username and API Secret (find on your account settings page on the Notifo site).
10
+ Download and install one of Notifo's mobile, desktop or other apps from their site.
10
11
 
11
- cd into your Rails app and run:
12
+ Now cd into your Rails root and run:
12
13
 
13
14
  ./script/generate self_notifo NOTIFO_USERNAME NOTIFO_API_SECRET "Label Describing Your Application"
14
15
 
@@ -16,7 +17,7 @@ This will generate a file called self-notifo.yml in your config directory (you m
16
17
 
17
18
  When you want to send a notification from your Rails app:
18
19
 
19
- SelfNotifo(:msg => "My message.")
20
+ SelfNotifo.new(:msg => "My message.")
20
21
 
21
22
  Optional parameters can be added:
22
23
 
@@ -30,9 +31,8 @@ See https://api.notifo.com/docs/notifications for more info on the Notifo API.
30
31
 
31
32
  == Dependencies
32
33
 
33
- John Nunemaker's awesome httparty[http://github.com/jnunemaker/httparty].
34
-
35
- Ruby on Rails, version 2.3.6 or newer.
34
+ * Ruby on Rails, version 2.3.6 or newer.
35
+ * self-notifo likes to party with John Nunemaker's awesome httparty[http://github.com/jnunemaker/httparty] version 0.6.1 or newer.
36
36
 
37
37
  == Note on Patches/Pull Requests
38
38
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
data/lib/self-notifo.rb CHANGED
@@ -35,7 +35,7 @@ class SelfNotifo
35
35
  end
36
36
 
37
37
  def send_notification(params)
38
- r = self.class.post('https://api.notifo.com/v1/send_notification', { :body => { :msg => params[:msg], :label => params[:label], :title => params[:title], :uri => params[:uri] } })
38
+ r = self.class.post('https://api.notifo.com/v1/send_notification', { :body => { :msg => params[:msg], :label => params[:label], :title => params[:title], :uri => params[:uri] }.reject{ |k, v| v.blank? } })
39
39
  logger.info "self-notifo: sent notification, response was: " + r.parsed_response.inspect
40
40
  end
41
41
  end
data/self-notifo.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{self-notifo}
8
- s.version = "0.2.0"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Gaelian Ditchburn"]
12
- s.date = %q{2010-09-18}
12
+ s.date = %q{2010-09-19}
13
13
  s.description = %q{The self-notifo gem sends notifications to your own Notifo account from your Rails application.}
14
14
  s.email = %q{gaelian.ditchburn@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: self-notifo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 2
8
+ - 3
9
9
  - 0
10
- version: 0.2.0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gaelian Ditchburn
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-18 00:00:00 +10:00
18
+ date: 2010-09-19 00:00:00 +10:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency