Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1 from bezelga/master
Browse files Browse the repository at this point in the history
Updating bulldoggy gem and giving feedback for the user when adding task
  • Loading branch information
philss committed Jan 31, 2014
2 parents 2a3e9f1 + 1ee12d5 commit a95f682
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source 'https://rubygems.org'

gem 'thor'
gem 'bulldoggy', '~> 0.0.1.alpha'
gem 'bulldoggy', '~> 0.0.5.alpha'
gem 'rake'
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
GEM
remote: https://rubygems.org/
specs:
bulldoggy (0.0.3.alpha)
bulldoggy (0.0.5.alpha)
rake (10.1.1)
thor (0.18.1)

PLATFORMS
ruby

DEPENDENCIES
bulldoggy (~> 0.0.1.alpha)
bulldoggy (~> 0.0.5.alpha)
rake
thor
6 changes: 4 additions & 2 deletions lib/bulldoggy-thor/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ module BulldoggyThor
class CLI < ::Thor
desc "add_task DESCRIPTION", "Type a task to create with DESCRIPTION"
def add_task(description)
Bulldoggy.add_task(description)
task = Bulldoggy.add_task(description)
puts "id: #{task.id}, description: #{task.description}"
end

desc "remove_task TASK_ID", "Removes a task with TASK_ID"
Expand All @@ -15,7 +16,8 @@ def remove_task(task_id)

desc "fetch", "fetches all tasks"
def fetch
Bulldoggy.fetch
tasks = Bulldoggy.fetch
puts tasks
end

desc "check_task TASK_ID", "Mark a task as done"
Expand Down

0 comments on commit a95f682

Please sign in to comment.