termodoro 0.3.5 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16556df9d8a9d5dfa7290cf7d67a56e02467c119
4
- data.tar.gz: 91f769310d0adf0ef1819e92d5371dcbad59b06c
3
+ metadata.gz: e518a65c3e6189e99c90384c409760fe2b297ff9
4
+ data.tar.gz: 529100cf12dc3d46cac5011a8b3dfcee20a39df1
5
5
  SHA512:
6
- metadata.gz: 455ee726d7793d2a817a7eb03cbb5b582003bb0f1e7be26e4d8c25274aa2a45d38fa44e8338ac438833b9aee1d0acfb52c93c7679f323dfa447c3b145b44829f
7
- data.tar.gz: bb23182c130575c515445ef343eab99e774b2143a7b443057a2f1516c77b50f7368a78269d457234b6ae7337630e5b22086d7ed1b5cbc16cb0be95d1cd5b78ed
6
+ metadata.gz: 852d02567d1d8910c038b5a260b56a6df98706498d6695050be8a11e65aac39f4378048642488eddbf39064de6e6340c77917fc86fa32d39943bad655b5138b6
7
+ data.tar.gz: d6ac35032b2ff72c6c9ee5ec86f16d6f41ed305e95ab362f1f4f23b001adbbd1e4c7527f49b946815270aa67ac7f9b6abb1c8a4c5d0877ecfda86592ffdec34b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.3.9 (10/30/2013)
2
+
3
+ - Implement VERSION constant and update Gemspec to use that. Added test for the same. Other minor updates to Gemspec file.
4
+
1
5
  ### 0.3.5 (10/30/2013)
2
6
 
3
7
  - Now with SimpleCov! 100% on first run. Damn that felt good. - [@vcavallo](http://github.com/vcavallo)
data/Gemfile CHANGED
@@ -1,9 +1,3 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  gemspec
4
-
5
- gem "rspec"
6
- gem "terminal-notifier"
7
- gem "rake"
8
- gem 'simplecov', :require => false, :group => :test
9
- gem 'json', :require => false, :group => :test
data/README.md CHANGED
@@ -3,6 +3,8 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/termodoro.png)](http://badge.fury.io/rb/termodoro)
4
4
  [![Build Status](https://travis-ci.org/vcavallo/termodoro.png)](https://travis-ci.org/vcavallo/termodoro)
5
5
 
6
+ [RDoc Documentation](http://rdoc.info/github/vcavallo/termodoro/master/frames)
7
+
6
8
  ## What is this?
7
9
 
8
10
  ***Termodoro*** is an ultra-simple, frictionless BASH reminder / pomodoro timer ( in fact it's portmanteau of *terminal* and *[pomodoro](http://en.wikipedia.org/wiki/Pomodoro_Technique)* )
@@ -1 +1,2 @@
1
- require_relative '../lib/termodoro/termodoro'
1
+ require_relative '../lib/termodoro/termodoro'
2
+ require_relative '../lib/termodoro/version'
@@ -1,10 +1,11 @@
1
-
1
+ require_relative 'version'
2
2
  # A new instance of this class takes user-input as command line arguments and
3
3
  # prepares a string to be execute as a Bash system command. The user specifies an
4
4
  # amount of time and an optional message to display. After the amount of time elapses
5
5
  # a terminal-notifier message appears with the message - if the message was omitted,
6
6
  # the word "Termodoro" appears instead.
7
7
  class Termodoro
8
+ include Version
8
9
  attr_accessor :time_unit, :number_of_units, :message
9
10
  attr_reader :arguments
10
11
  # @!attribute time_unit
@@ -0,0 +1,4 @@
1
+ module Version
2
+ VERSION = "0.3.9"
3
+ end
4
+
@@ -16,6 +16,10 @@ describe "Termodoro" do
16
16
  expect(term.command).to be_an_instance_of(String)
17
17
  end
18
18
 
19
+ it "can display its version" do
20
+ expect(Termodoro::VERSION).to be_an_instance_of(String)
21
+ end
22
+
19
23
  describe "Constants" do
20
24
  it "has a constant that represents number of seconds in a minute" do
21
25
  expect(Termodoro::SECS_IN_MIN / 60).to eq(1)
data/termodoro.gemspec CHANGED
@@ -1,20 +1,25 @@
1
+ require './lib/termodoro/version'
2
+ require './lib/termodoro/termodoro'
3
+
1
4
 
2
5
  Gem::Specification.new do |s|
3
6
  s.name = 'termodoro'
4
- s.version = '0.3.5'
5
- s.date = '2013-10-30'
7
+ s.version = Termodoro::Version::VERSION
8
+ s.date = Time.now.utc.strftime("%Y-%m-%d")
6
9
  s.summary = "A lightweight CL reminder app"
7
10
  s.description = "Use this little utility to set simple reminders from the command line. See the github page below for more information"
8
11
  s.authors = ["Vinney Cavallo"]
9
12
  s.email = 'vcavallo@gmail.com'
10
13
  s.files = `git ls-files`.split("\n")
11
- s.executables << 'termodoro'
12
- s.add_runtime_dependency "terminal-notifier"
13
14
  s.homepage =
14
15
  'https://github.com/vcavallo/termodoro'
15
16
  s.license = 'MIT'
17
+ s.executables << 'termodoro'
18
+ s.require_paths = ['lib', 'bin', 'config']
16
19
 
20
+ s.add_runtime_dependency "terminal-notifier"
21
+ s.add_runtime_dependency "rake"
17
22
  s.add_development_dependency 'rspec'
18
- s.add_development_dependency 'simplecov'
23
+ s.add_development_dependency 'simplecov'
19
24
  s.add_development_dependency 'json'
20
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: termodoro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vinney Cavallo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-30 00:00:00.000000000 Z
11
+ date: 2013-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: terminal-notifier
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rspec
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -84,6 +98,7 @@ files:
84
98
  - bin/termodoro
85
99
  - config/environment.rb
86
100
  - lib/termodoro/termodoro.rb
101
+ - lib/termodoro/version.rb
87
102
  - license.md
88
103
  - spec/spec_helper.rb
89
104
  - spec/termodoro_spec.rb
@@ -96,6 +111,8 @@ post_install_message:
96
111
  rdoc_options: []
97
112
  require_paths:
98
113
  - lib
114
+ - bin
115
+ - config
99
116
  required_ruby_version: !ruby/object:Gem::Requirement
100
117
  requirements:
101
118
  - - '>='