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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/adhd_osx.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 769e5701b127dfc3d8b55be22c1d02e4c7b98993
4
- data.tar.gz: 9a66693253316d68ef3ae219c27f0b2e184e76f4
3
+ metadata.gz: f15d75d42bd3ecba25df89d60e5bbe34c564829a
4
+ data.tar.gz: c48fc6f090d1121bca19521aecf6553f9c430896
5
5
  SHA512:
6
- metadata.gz: 0ad8e03203080c29dc7ad44abdaa6cad03112dc53c3d32e05d1e99f832c6065e49323ae01759aeb37cd03ab9a6a6f19ae0b09c5b86e7612aed7ae9eb9e5f354e
7
- data.tar.gz: 245f230c41db53ccb440b138b3f9cdef0d50ede10771b3ec78c2e7a1fbf2066c56d2975054951edd4eb71b7880fcc8533305d208a3ee0b4a6aa70b9411c78321
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(text, **hash)
7
- command = 'osascript -e \'display notification "%s"' % text
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.1
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
  - - ">="