thyme_ubuntu_notification 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 95a52922416a564c284b831cf951ba47ef2e9034
4
+ data.tar.gz: 160ef3935c7eca3d3e970673f2e990a467ce6f4d
5
+ SHA512:
6
+ metadata.gz: 73b872aa67289ac08cef5904a069a811131cfe12237ed7a76d5f226b1efb7b72b28f0955b92b98fd1c88224dcdb60d4a45a919472568fa755af4c12fdf42f934
7
+ data.tar.gz: d5590d4a6cda446ffacd6b8192fa5bb108cb9a6c849c8d801315a3b9924bd7fb6f4bee994e7543d1cfb5af6a1c80e0391c36fc7d21fa0d47b1213ce71437b52d
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in thyme_ubuntu_notification.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Tomas Valent
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,33 @@
1
+ # ThymeUbuntuNotification
2
+
3
+ Is a plugin for [thyme](https://github.com/hughbien/thyme) gem (Pomodoro timer app)
4
+ that allows Ubuntu "pop-up" notifications(`notify-send`) when a Pomodoro (25min cycle) ends.
5
+
6
+ ## Installation
7
+
8
+ # $ gem install thyme
9
+ $ gem install thyme_ubuntu_notification
10
+
11
+ ## Usage
12
+
13
+ #~/.thymerc
14
+ require 'ThymeUbuntuNotification'
15
+ use ThymeUbuntuNotification
16
+
17
+ # ...or if you want different text
18
+
19
+ use ThymeUbuntuNotification, end_text: "Go take a break!", start_text: "Let's do this!"
20
+
21
+ ## Supported Ubuntu/Linux Versions
22
+
23
+ Works on any Linux that supports `notify-send` command, test it with `$ notify-send 'Hello world'`
24
+
25
+ Durring the time I wrote this plugin I was using Ubuntu 14.04 (works)
26
+
27
+ ## Contributing
28
+
29
+ 1. Fork it ( https://github.com/[my-github-username]/thyme_ubuntu_notification/fork )
30
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
31
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
32
+ 4. Push to the branch (`git push origin my-new-feature`)
33
+ 5. Create a new Pull Request
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "thyme_ubuntu_notification"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,18 @@
1
+ require "thyme_ubuntu_notification/version"
2
+
3
+ class ThymeUbuntuNotification
4
+ attr_reader :end_text, :start_text
5
+
6
+ def initialize(thyme, options={})
7
+ @end_text = options.fetch(:end_text, 'Pomodoro Ended')
8
+ @start_text = options.fetch(:start_text, 'Pomodoro Started')
9
+ end
10
+
11
+ def before
12
+ system('notify-send', start_text)
13
+ end
14
+
15
+ def after(seconds_left)
16
+ system('notify-send', end_text)
17
+ end
18
+ end
@@ -0,0 +1,3 @@
1
+ class ThymeUbuntuNotification
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,21 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'thyme_ubuntu_notification/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "thyme_ubuntu_notification"
8
+ spec.version = ThymeUbuntuNotification::VERSION
9
+ spec.authors = ["Tomas Valent"]
10
+ spec.email = ["equivalent@eq8.eu"]
11
+
12
+ spec.summary = %q{Thyme plugin for Ubuntu Notification}
13
+ spec.description = %q{Plugin for Thyme gem that sends Ubuntu notification when Pomodoro ends}
14
+ spec.homepage = "https://github.com/equivalent/thyme_ubuntu_notification"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+ end
metadata ADDED
@@ -0,0 +1,56 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: thyme_ubuntu_notification
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Tomas Valent
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-05-07 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Plugin for Thyme gem that sends Ubuntu notification when Pomodoro ends
14
+ email:
15
+ - equivalent@eq8.eu
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".gitignore"
21
+ - CODE_OF_CONDUCT.md
22
+ - Gemfile
23
+ - LICENSE.txt
24
+ - README.md
25
+ - Rakefile
26
+ - bin/console
27
+ - bin/setup
28
+ - lib/thyme_ubuntu_notification.rb
29
+ - lib/thyme_ubuntu_notification/version.rb
30
+ - thyme_ubuntu_notification.gemspec
31
+ homepage: https://github.com/equivalent/thyme_ubuntu_notification
32
+ licenses:
33
+ - MIT
34
+ metadata: {}
35
+ post_install_message:
36
+ rdoc_options: []
37
+ require_paths:
38
+ - lib
39
+ required_ruby_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ required_rubygems_version: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ requirements: []
50
+ rubyforge_project:
51
+ rubygems_version: 2.2.2
52
+ signing_key:
53
+ specification_version: 4
54
+ summary: Thyme plugin for Ubuntu Notification
55
+ test_files: []
56
+ has_rdoc: