pompous 0.0.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.
Files changed (4) hide show
  1. checksums.yaml +15 -0
  2. data/bin/pompous +4 -0
  3. data/lib/pompous.rb +15 -0
  4. metadata +46 -0
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NDdmZTU1ZDM5YTVjNDFjYWYwNWM3OGU2YjIyOWI0NGFmZDliYzA2NA==
5
+ data.tar.gz: !binary |-
6
+ MDM3YzFkNmJmNGRlNzZlMDgzZThjOGJjMDQ1ZGU1NTI2MDE0NDY3YQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ YTJiNWQzMGNmNTBjNmZiMmY2ZWVlYjdiMDc1ZmViYTk5NzM1YjY1ZGFlYTg2
10
+ YzVjZThlNGZjNzliN2Q2ZWMxOTQ1NzNkMzg2ZTUzOWJjMGE3OWY4OWJmZmYy
11
+ YTg4NmQyZTlhM2I0MDkwMTRiMWFiMjQwNDM1Y2FjMjQ3Y2YzZmM=
12
+ data.tar.gz: !binary |-
13
+ NWE4ODhhZTQ0ZWU4MzNhZDZiY2E2NjNkNTg1YTA0OGNmNGQyZDM3Nzg5NWE0
14
+ Nzk1NzU0MTBjNjI3MjRhMzc5MTViNjUxMmI3YmFkZGVlMDk0ODVjZThiMjIz
15
+ YzE1N2ExMWVlYjYzNzM4ODEyNWIxY2Q2M2Q1MWEyNTg3OTdiODU=
data/bin/pompous ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env/ruby
2
+
3
+ require 'pompous'
4
+ Pompous.new.pomodoro
data/lib/pompous.rb ADDED
@@ -0,0 +1,15 @@
1
+ class Pompous
2
+ def pomodoro
3
+ 3.times { countdown 'work', 25; countdown 'break', 5 }
4
+ countdown 'work', 25; countdown 'break', 15;
5
+ end
6
+
7
+ def countdown message, minutes
8
+ end_time = Time.now + (60 * minutes)
9
+
10
+ while (Time.now < end_time)
11
+ print "\r#{message}: #{((end_time - Time.now) / 60).floor}:#{((end_time - Time.now) % 60).floor.to_s.rjust(2,'0')}"
12
+ sleep 1
13
+ end
14
+ end
15
+ end
metadata ADDED
@@ -0,0 +1,46 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pompous
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - speakingcode
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-11-21 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Yet another pomodoro timer
14
+ email: dlissner@gmail.com
15
+ executables:
16
+ - pompous
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/pompous.rb
21
+ - bin/pompous
22
+ homepage: http://speakingcode.com
23
+ licenses:
24
+ - MIT
25
+ metadata: {}
26
+ post_install_message:
27
+ rdoc_options: []
28
+ require_paths:
29
+ - lib
30
+ required_ruby_version: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ! '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ required_rubygems_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirements: []
41
+ rubyforge_project:
42
+ rubygems_version: 2.1.10
43
+ signing_key:
44
+ specification_version: 4
45
+ summary: pomodoro timer
46
+ test_files: []