adhd_osx 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.
- checksums.yaml +4 -4
- data/lib/adhd_osx.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f15d75d42bd3ecba25df89d60e5bbe34c564829a
|
|
4
|
+
data.tar.gz: c48fc6f090d1121bca19521aecf6553f9c430896
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6b8964100a416637d7af24097228b6423282f35bdbc2a2a9038d791908b3488bec6e5a633f85f4674bea2a642954c10ce8f954c321e5859a6a632d999e40fafb
|
|
7
|
+
data.tar.gz: fff7908865626f29736ad7673f92a5ac844dd864f59aed3a90b0ff38d8a6709ae4d16087f51816abebf77a230a7fff7d9cbf515af63c18c027f3d559d6f28b51
|
data/lib/adhd_osx.rb
CHANGED
|
@@ -3,8 +3,8 @@ module Adhd_Osx
|
|
|
3
3
|
|
|
4
4
|
# Displays a notification in OS X Notification Center
|
|
5
5
|
#
|
|
6
|
-
def self.notify(
|
|
7
|
-
command = 'osascript -e \'display notification "%s"' %
|
|
6
|
+
def self.notify(**hash)
|
|
7
|
+
command = 'osascript -e \'display notification "%s"' % hash[:body]
|
|
8
8
|
command += 'with title "%s"' % hash[:title] if hash[:title]
|
|
9
9
|
command += 'subtitle "%s"' % hash[:subtitle] if hash[:subtitle]
|
|
10
10
|
command += 'sound name "%s"' % hash[:sound] if hash[:sound]
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: adhd_osx
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matthias Winkelmann
|
|
@@ -30,7 +30,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '0'
|
|
33
|
+
version: '2.0'
|
|
34
34
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
35
35
|
requirements:
|
|
36
36
|
- - ">="
|