Overbryd-mighty-mite 0.1.2 → 0.1.3
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.
- data/VERSION +1 -1
- data/lib/mighty_mite/application.rb +1 -1
- data/mighty-mite.gemspec +1 -1
- data/spec/unit/mighty_mite/application_spec.rb +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
@@ -41,7 +41,7 @@ module MightyMite
|
|
41
41
|
total_revenue = Mite::TimeEntry.all(:params => {:at => @arguments.first, :user_id => 'current'}).each do |time_entry|
|
42
42
|
tell time_entry.inspect
|
43
43
|
end.map(&:revenue).compact.sum
|
44
|
-
tell ("%.2f $" % total_revenue).colorize(:lightgreen)
|
44
|
+
tell ("%.2f $" % (total_revenue/100)).colorize(:lightgreen)
|
45
45
|
|
46
46
|
elsif ['stop', 'pause', 'lunch'].include? @arguments.first
|
47
47
|
if current_tracker = (Mite::Tracker.current ? Mite::Tracker.current.stop : nil)
|
data/mighty-mite.gemspec
CHANGED
@@ -262,7 +262,7 @@ describe MightyMite::Application, 'run' do
|
|
262
262
|
end
|
263
263
|
|
264
264
|
it "should tell #{@argument}'s revenue, nicely formatted and colorized in lightgreen" do
|
265
|
-
@application.should_receive(:tell).with("\e[1;32;
|
265
|
+
@application.should_receive(:tell).with("\e[1;32;49m24.00 $\e[0m").at_least(:once)
|
266
266
|
@application.run
|
267
267
|
end
|
268
268
|
end
|