stickynotifications 0.0.3 → 0.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55dec5a3686fdff700936da1456b732dc442692b
4
- data.tar.gz: 9ef8ec5972cf7db76716521cdca0e0cfcf85aa8a
3
+ metadata.gz: f6a227cb7d63bb6692127472222098ad3cd6927a
4
+ data.tar.gz: 3386c989ab211cbd45cd17881c1f5e5db5d3a428
5
5
  SHA512:
6
- metadata.gz: dbc9518f95f703e851aef8d3e580c5edf28eefe9feebc70346a873e6383ab61c5890c15456f3ba92cf5fad0608ff9c115fcf0a7f071c2d2b87bc3431d6eeaa3d
7
- data.tar.gz: 4663aca6528b47f7e2701373565d0879084e673e41362e8c9d9fe66f3385056082adf0c44e07dc62a26053e2de13764a739188ef0a8444e0844e736911832cf2
6
+ metadata.gz: 58df8d847f9e9e449e00cb2f0c8cd6b9b585f18064d762b4b063cb3c7a1b280e3d8cd34d76fda0850b325684dc87d17076be94a9bd922f54d3d171b79b6efda6
7
+ data.tar.gz: aae1cb77168dcee49c97b1f0d6f1612e4a148f2f9307d9d7c3aea0e9c433325e7145bf169761bb82740b98fb9b95615b81f82f73a910b07a84f99851bd4e4c03
@@ -2,5 +2,7 @@
2
2
 
3
3
  require 'stickynotifications'
4
4
 
5
+ # @author "Brandon Pittman"
6
+ # Starts Thor
5
7
  StickyNotifications.start(ARGV)
6
8
 
@@ -1,3 +1,5 @@
1
+ # Sets version for RubyGems
1
2
  module Stickynotifications
2
- VERSION = "0.0.3"
3
+ # Sets version for RubyGems
4
+ VERSION = "0.0.4"
3
5
  end
@@ -2,13 +2,22 @@ require "stickynotifications/version"
2
2
  require 'uri'
3
3
  require 'thor'
4
4
 
5
+ # @author "Brandon Pittman"
6
+ # All logic for StickyNotifications
5
7
  class StickyNotifications < Thor
8
+
6
9
  desc "new TEXT", "create new Sticky Notification with TEXT"
10
+ # Creates a new Sticky Notification
11
+ # @param sticky_text [String] the text of the Sticky Notification
7
12
  def new(sticky_text)
8
13
  %x{open "sticky-notifications://note?message=#{escape_string(sticky_text)}"}
9
14
  end
10
15
 
11
16
  no_commands do
17
+ # Escapes the Sticky Notification text for URLs. URI produces %20 for
18
+ # spaces instead of CGI's +.
19
+ # @param string_to_escape [String] the text to be escaped
20
+ # @return [String] parsed URL
12
21
  def escape_string(string_to_escape)
13
22
  URI.escape(string_to_escape)
14
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stickynotifications
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - brandonpittman