Overbryd-mighty-mite 0.1.0 → 0.1.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.
data/README.textile CHANGED
@@ -22,7 +22,7 @@ A simple command line interface for basic mite tasks.
22
22
 
23
23
  h3. Installation instructions:
24
24
 
25
- $ gem install overbryd-mighty-mite
25
+ $ gem install Overbryd-mighty-mite
26
26
 
27
27
  I assume github is in your gem sources. You may need @active_support@ and @active_resource@ too.
28
28
 
@@ -49,15 +49,15 @@ You could use this command as an example (replace .bash_login with your bash con
49
49
 
50
50
  h3. Create new time entries with ease:
51
51
 
52
- $ mite "project name" [service name] [start time h:mm] [note]
52
+ $ mite "project name" [service_name] [start_time] [note]
53
53
 
54
54
  $ mite "project name" "service name" [note]
55
55
 
56
- $ mite "project name" [start time h:mm] [note]
56
+ $ mite "project name" [start_time] [note]
57
57
 
58
- $ mite [start time h:mm] [note]
58
+ $ mite [start_time] [note]
59
59
 
60
- h4. The magic of the moment err... start time:
60
+ h4. The magic of the moment err... start_time:
61
61
 
62
62
  Append a @+@ to the start time and it will start the tracker.
63
63
 
@@ -153,4 +153,14 @@ Just create a new time entry and start tracking it.
153
153
 
154
154
  $ mite open
155
155
 
156
- Opens your mite account in a new browser window (Max OSX only) or prints the url to your account.
156
+ Opens your mite account in a new browser window (Max OSX only) or prints the url to your account.
157
+
158
+ h3. Feature Request? Problems? Found a bug? Your girlfriend broke up with you?
159
+
160
+ Your problems are no longer "problems"! They are called issues now, and github has the solution.
161
+
162
+ If you want to tell me an idea, I'll happily take care of them in the issues tracker: http://github.com/Overbryd/mighty-mite/issues
163
+
164
+ |\3. **All time Highscore of people who were involved** |
165
+ | who? |\2. what? |
166
+ | Sebastian Munz (yolk) | 10 issues | found a lot of bugs, did some real use testing. Really cool, thank you! |
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -43,7 +43,7 @@ module MightyMite
43
43
  end.map(&:revenue).compact.sum
44
44
  tell ("%.2f $" % total_revenue).colorize(:lightgreen)
45
45
 
46
- elsif ['stop', 'pause'].include? @arguments.first
46
+ elsif ['stop', 'pause', 'lunch'].include? @arguments.first
47
47
  if current_tracker = (Mite::Tracker.current ? Mite::Tracker.current.stop : nil)
48
48
  tell current_tracker.time_entry.inspect
49
49
  end
@@ -94,13 +94,13 @@ module MightyMite
94
94
  def find_or_create_project(name)
95
95
  project = Mite::Project.first(:params => {:name => name})
96
96
  return nil if name =~ TIME_FORMAT
97
- project ? project : Mite::Project.create(:params => {:name => name})
97
+ project ? project : Mite::Project.create(:name => name)
98
98
  end
99
99
 
100
100
  def find_or_create_service(name)
101
101
  service = Mite::Service.first(:params => {:name => name})
102
102
  return nil if name =~ TIME_FORMAT
103
- service ? service : Mite::Service.create(:params => {:name => name})
103
+ service ? service : Mite::Service.create(:name => name)
104
104
  end
105
105
 
106
106
  def parse_note(args, time_string)
data/mighty-mite.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{mighty-mite}
5
- s.version = "0.1.0"
5
+ s.version = "0.1.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Lukas Rieder"]
@@ -417,8 +417,7 @@ describe MightyMite::Application, 'dynamic time entry creation' do
417
417
  it "should create a new project unless a project was found" do
418
418
  Mite::Project.stub!(:first).and_return nil
419
419
  @project.stub!(:id).and_return 1234
420
- Mite::Project.stub!(:create).and_return @project
421
- Mite::TimeEntry.should_receive(:create).with hash_including(:project_id => 1234)
420
+ Mite::Project.should_receive(:create).with(:name => 'I do not exist').and_return @project
422
421
  new_application(['I do not exist']).run
423
422
  end
424
423
 
@@ -445,17 +444,10 @@ describe MightyMite::Application, 'dynamic time entry creation' do
445
444
  new_application(['1', 'Read a book']).run
446
445
  end
447
446
 
448
- it "should not add the service id to the attributes unless a service was found" do
449
- Mite::Service.stub!(:first).and_return nil
450
- Mite::TimeEntry.should_not_receive(:create).with hash_including(:service_id => 2)
451
- new_application(['1', 'Write a book']).run
452
- end
453
-
454
447
  it "should create a new service unless a service was found" do
455
448
  Mite::Service.stub!(:first).and_return nil
456
449
  @service.stub!(:id).and_return 15
457
- Mite::Service.stub!(:create).and_return @service
458
- Mite::TimeEntry.should_receive(:create).with hash_including(:service_id => 15)
450
+ Mite::Service.should_receive(:create).with(:name => 'I do not exist yet').and_return @service
459
451
  new_application(['1', 'I do not exist yet']).run
460
452
  end
461
453
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Overbryd-mighty-mite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Rieder