ruby-notify-my-android 0.4.0 → 0.4.1
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 +1 -1
- data/VERSION +1 -1
- data/bin/notify-my-android +1 -1
- data/lib/ruby-notify-my-android/notification.rb +1 -2
- data/ruby-notify-my-android.gemspec +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
|
@@ -68,7 +68,7 @@ The standard API response for a unsuccessful call is as follows:
|
|
|
68
68
|
Note that the @code signifies the success or failure of the HTTP call, not the NMA call. Use the @response["code"] for that determination.
|
|
69
69
|
|
|
70
70
|
== Contributing to ruby-notify-my-android
|
|
71
|
-
|
|
71
|
+
|
|
72
72
|
* Familiarize yourself with the documentation at https://nma.usk.bz/api.php
|
|
73
73
|
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
|
74
74
|
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.1
|
data/bin/notify-my-android
CHANGED
|
@@ -18,7 +18,7 @@ opts.on("-k", "--apikey APIKEY", "Your API Key", String) {|val| o
|
|
|
18
18
|
opts.on("-p", "--priority PRIORITY", "Priority (-2,-1,0,1,2)", Integer) {|val| o[:priority] = val }
|
|
19
19
|
opts.on("-a", "--application APPNAME", "Name of app", String) {|val| o[:application] = val }
|
|
20
20
|
opts.on("-e", "--event EVENTNAME", "Name of event", String) {|val| o[:event] = val }
|
|
21
|
-
opts.on("-d", "--description DESCRIPTION", "Notify text", String)
|
|
21
|
+
opts.on("-d", "--description DESCRIPTION", "Notify text", String) {|val| o[:description] = val }
|
|
22
22
|
z = opts.parse(ARGV)
|
|
23
23
|
|
|
24
24
|
# set defaults
|
|
@@ -10,7 +10,7 @@ module NMA
|
|
|
10
10
|
class NoApplicationNameGiven < RuntimeError; end
|
|
11
11
|
|
|
12
12
|
attr_accessor :application, :description
|
|
13
|
-
attr_accessor :providerkey, :priority, :event
|
|
13
|
+
attr_accessor :providerkey, :priority, :event
|
|
14
14
|
attr_writer :apikey
|
|
15
15
|
|
|
16
16
|
def apikey
|
|
@@ -27,7 +27,6 @@ module NMA
|
|
|
27
27
|
@event = params[:event] || "NMA is working!!"
|
|
28
28
|
@description = params[:description] || "This is the default description"
|
|
29
29
|
@priority = params[:priority] || Priority::NORMAL
|
|
30
|
-
@url = params[:url] || nil
|
|
31
30
|
end
|
|
32
31
|
|
|
33
32
|
def to_params
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-notify-my-android
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 13
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 4
|
|
9
|
-
-
|
|
10
|
-
version: 0.4.
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.4.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Ken Pepple
|