timetrap 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -19,7 +19,6 @@ begin
19
19
  require 'jeweler'
20
20
  Jeweler::Tasks.new do |s|
21
21
  s.name = %q{timetrap}
22
- s.version = "0.1.2"
23
22
 
24
23
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
25
24
  s.authors = ["Sam Goldstein"]
@@ -35,25 +34,9 @@ begin
35
34
  s.summary = %q{Command line time tracker}
36
35
  s.add_dependency("sequel", ">= 3.9.0")
37
36
  s.add_dependency("sqlite3-ruby", ">= 1.2.5")
38
- s.add_dependency("chronic", ">= 0.2.3")
37
+ s.add_dependency("chronic", "~> 0.3.0")
39
38
  s.add_dependency("getopt-declare", ">= 1.28")
40
39
  s.add_dependency("icalendar", ">= 1.1.2")
41
-
42
- if s.respond_to? :specification_version then
43
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
44
- s.specification_version = 2
45
-
46
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
47
- s.add_runtime_dependency(%q<mime-types>, [">= 1.16"])
48
- s.add_runtime_dependency(%q<diff-lcs>, [">= 1.1.2"])
49
- else
50
- s.add_dependency(%q<mime-types>, [">= 1.16"])
51
- s.add_dependency(%q<diff-lcs>, [">= 1.1.2"])
52
- end
53
- else
54
- s.add_dependency(%q<mime-types>, [">= 1.16"])
55
- s.add_dependency(%q<diff-lcs>, [">= 1.1.2"])
56
- end
57
40
  end
58
41
  rescue LoadError
59
42
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 4
4
- :patch: 0
4
+ :patch: 1
@@ -14,11 +14,11 @@ module Timetrap
14
14
  end
15
15
 
16
16
  def start= time
17
- self[:start]= Chronic.parse(time) || time
17
+ self[:start]= Chronic.parse(time.to_s) || time
18
18
  end
19
19
 
20
20
  def end= time
21
- self[:end]= Chronic.parse(time) || time
21
+ self[:end]= Chronic.parse(time.to_s) || time
22
22
  end
23
23
 
24
24
  def start
data/lib/timetrap.rb CHANGED
@@ -57,6 +57,7 @@ module Timetrap
57
57
  Entry.create(:sheet => Timetrap.current_sheet, :note => note, :start => time).save
58
58
  rescue => e
59
59
  CLI.say e.message
60
+ CLI.say e.backtrace.join("\n")
60
61
  end
61
62
 
62
63
  def switch sheet
@@ -581,12 +581,12 @@ describe Timetrap::Entry do
581
581
 
582
582
  it "should have a start" do
583
583
  @entry.start = @time
584
- @entry.start.should == @time
584
+ @entry.start.to_i.should == @time.to_i
585
585
  end
586
586
 
587
587
  it "should have a end" do
588
588
  @entry.end = @time
589
- @entry.end.should == @time
589
+ @entry.end.to_i.should == @time.to_i
590
590
  end
591
591
 
592
592
  it "should have a sheet" do
data/timetrap.gemspec CHANGED
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{timetrap}
8
- s.version = "1.4.0"
8
+ s.version = "1.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Sam Goldstein"]
12
- s.date = %q{2010-06-17}
12
+ s.date = %q{2010-10-28}
13
13
  s.default_executable = %q{t}
14
14
  s.description = %q{Command line time tracker}
15
15
  s.email = %q{sgrock@gmail.com}
@@ -41,7 +41,7 @@ Gem::Specification.new do |s|
41
41
  s.homepage = %q{http://github.com/samg/timetrap/tree/master}
42
42
  s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
43
43
  s.require_paths = ["lib"]
44
- s.rubygems_version = %q{1.3.5}
44
+ s.rubygems_version = %q{1.3.7}
45
45
  s.summary = %q{Command line time tracker}
46
46
  s.test_files = [
47
47
  "spec/timetrap_spec.rb"
@@ -49,32 +49,27 @@ Gem::Specification.new do |s|
49
49
 
50
50
  if s.respond_to? :specification_version then
51
51
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
52
- s.specification_version = 2
52
+ s.specification_version = 3
53
53
 
54
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
54
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
55
55
  s.add_runtime_dependency(%q<sequel>, [">= 3.9.0"])
56
56
  s.add_runtime_dependency(%q<sqlite3-ruby>, [">= 1.2.5"])
57
- s.add_runtime_dependency(%q<chronic>, [">= 0.2.3"])
57
+ s.add_runtime_dependency(%q<chronic>, ["~> 0.3.0"])
58
58
  s.add_runtime_dependency(%q<getopt-declare>, [">= 1.28"])
59
59
  s.add_runtime_dependency(%q<icalendar>, [">= 1.1.2"])
60
- s.add_runtime_dependency(%q<mime-types>, [">= 1.16"])
61
- s.add_runtime_dependency(%q<diff-lcs>, [">= 1.1.2"])
62
60
  else
63
61
  s.add_dependency(%q<sequel>, [">= 3.9.0"])
64
62
  s.add_dependency(%q<sqlite3-ruby>, [">= 1.2.5"])
65
- s.add_dependency(%q<chronic>, [">= 0.2.3"])
63
+ s.add_dependency(%q<chronic>, ["~> 0.3.0"])
66
64
  s.add_dependency(%q<getopt-declare>, [">= 1.28"])
67
65
  s.add_dependency(%q<icalendar>, [">= 1.1.2"])
68
- s.add_dependency(%q<mime-types>, [">= 1.16"])
69
- s.add_dependency(%q<diff-lcs>, [">= 1.1.2"])
70
66
  end
71
67
  else
72
68
  s.add_dependency(%q<sequel>, [">= 3.9.0"])
73
69
  s.add_dependency(%q<sqlite3-ruby>, [">= 1.2.5"])
74
- s.add_dependency(%q<chronic>, [">= 0.2.3"])
70
+ s.add_dependency(%q<chronic>, ["~> 0.3.0"])
75
71
  s.add_dependency(%q<getopt-declare>, [">= 1.28"])
76
72
  s.add_dependency(%q<icalendar>, [">= 1.1.2"])
77
- s.add_dependency(%q<mime-types>, [">= 1.16"])
78
- s.add_dependency(%q<diff-lcs>, [">= 1.1.2"])
79
73
  end
80
74
  end
75
+
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timetrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ hash: 5
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 4
9
+ - 1
10
+ version: 1.4.1
5
11
  platform: ruby
6
12
  authors:
7
13
  - Sam Goldstein
@@ -9,79 +15,88 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2010-06-17 00:00:00 -07:00
18
+ date: 2010-10-28 00:00:00 -07:00
13
19
  default_executable: t
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: sequel
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 35
30
+ segments:
31
+ - 3
32
+ - 9
33
+ - 0
23
34
  version: 3.9.0
24
- version:
35
+ type: :runtime
36
+ version_requirements: *id001
25
37
  - !ruby/object:Gem::Dependency
26
38
  name: sqlite3-ruby
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
30
42
  requirements:
31
43
  - - ">="
32
44
  - !ruby/object:Gem::Version
45
+ hash: 21
46
+ segments:
47
+ - 1
48
+ - 2
49
+ - 5
33
50
  version: 1.2.5
34
- version:
51
+ type: :runtime
52
+ version_requirements: *id002
35
53
  - !ruby/object:Gem::Dependency
36
54
  name: chronic
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
40
58
  requirements:
41
- - - ">="
59
+ - - ~>
42
60
  - !ruby/object:Gem::Version
43
- version: 0.2.3
44
- version:
61
+ hash: 19
62
+ segments:
63
+ - 0
64
+ - 3
65
+ - 0
66
+ version: 0.3.0
67
+ type: :runtime
68
+ version_requirements: *id003
45
69
  - !ruby/object:Gem::Dependency
46
70
  name: getopt-declare
47
- type: :runtime
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
71
+ prerelease: false
72
+ requirement: &id004 !ruby/object:Gem::Requirement
73
+ none: false
50
74
  requirements:
51
75
  - - ">="
52
76
  - !ruby/object:Gem::Version
77
+ hash: 55
78
+ segments:
79
+ - 1
80
+ - 28
53
81
  version: "1.28"
54
- version:
82
+ type: :runtime
83
+ version_requirements: *id004
55
84
  - !ruby/object:Gem::Dependency
56
85
  name: icalendar
57
- type: :runtime
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Requirement
86
+ prerelease: false
87
+ requirement: &id005 !ruby/object:Gem::Requirement
88
+ none: false
60
89
  requirements:
61
90
  - - ">="
62
91
  - !ruby/object:Gem::Version
92
+ hash: 23
93
+ segments:
94
+ - 1
95
+ - 1
96
+ - 2
63
97
  version: 1.1.2
64
- version:
65
- - !ruby/object:Gem::Dependency
66
- name: mime-types
67
- type: :runtime
68
- version_requirement:
69
- version_requirements: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: "1.16"
74
- version:
75
- - !ruby/object:Gem::Dependency
76
- name: diff-lcs
77
98
  type: :runtime
78
- version_requirement:
79
- version_requirements: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: 1.1.2
84
- version:
99
+ version_requirements: *id005
85
100
  description: Command line time tracker
86
101
  email: sgrock@gmail.com
87
102
  executables:
@@ -121,23 +136,29 @@ rdoc_options:
121
136
  require_paths:
122
137
  - lib
123
138
  required_ruby_version: !ruby/object:Gem::Requirement
139
+ none: false
124
140
  requirements:
125
141
  - - ">="
126
142
  - !ruby/object:Gem::Version
143
+ hash: 3
144
+ segments:
145
+ - 0
127
146
  version: "0"
128
- version:
129
147
  required_rubygems_version: !ruby/object:Gem::Requirement
148
+ none: false
130
149
  requirements:
131
150
  - - ">="
132
151
  - !ruby/object:Gem::Version
152
+ hash: 3
153
+ segments:
154
+ - 0
133
155
  version: "0"
134
- version:
135
156
  requirements: []
136
157
 
137
158
  rubyforge_project:
138
- rubygems_version: 1.3.5
159
+ rubygems_version: 1.3.7
139
160
  signing_key:
140
- specification_version: 2
161
+ specification_version: 3
141
162
  summary: Command line time tracker
142
163
  test_files:
143
164
  - spec/timetrap_spec.rb