Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Releasing 0.1.4

  • Loading branch information...
commit 7f1f3e99123f27f31dfef555139b58d8e8a167e4 1 parent b4bfa77
@pjdavis pjdavis authored
Showing with 23 additions and 3 deletions.
  1. +6 −0 History.txt
  2. +14 −0 README.rdoc
  3. +1 −1  lib/roart.rb
  4. +2 −2 roart.gemspec
View
6 History.txt
@@ -1,3 +1,9 @@
+==0.1.4 / 2009-08-19
+Implemented callbacks, you can now hook into the ticket life-cycle with before and after create and update.
+Saving works like ActiveRecord now, with save returning true if successful and false otherwise, and save! raising an error if unsuccessful.
+Creating tickets is more ActiveRecord like now, with new not saving to the ticketing system automatically, you must call save or save!. There is a create function to do this now. Although this does break backward compatability, I'm not going to bump the minor because a) nobody has forked this yet, and b) i skipped 0.
+You can now specify a default queue when you subclass Roart::Ticket. just add a default_queue 'queue name' to your class and that queue will automatically be searched unless you specify a queue.
+
==0.1.3 / 2009-08-18
Can now update tickets with #save. Returns true if saved, raises an error if not.
View
14 README.rdoc
@@ -49,6 +49,20 @@ If you are using Best Practical's Request Tracker (RT) and you need to interact
my_ticket.histories #-> Returns an array of history objects
+* Create a new ticket
+
+ issue = Ticket.new(:queue => 'some_queue', :subject => 'This is not working for me')
+ issue.id #-> 'ticket/new'
+ issue.save
+ issue.id #-> 23423
+
+* Update a ticket
+
+ ticket = Ticket.find(23452)
+ ticket.subject #-> "Some Subject for a ticket."
+ ticket.subject #-> "Smoke me a kipper, I'll be back for breakfast."
+ ticket.save
+ ticket.subject #->"Smoke me a kipper, I'll be back for breakfast."
== REQUIREMENTS:
View
2  lib/roart.rb
@@ -2,7 +2,7 @@
module Roart
# :stopdoc:
- VERSION = '0.1.3'
+ VERSION = '0.1.4'
LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
# :startdoc:
View
4 roart.gemspec
@@ -6,11 +6,11 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["PJ Davis"]
- s.date = %q{2009-08-18}
+ s.date = %q{2009-08-19}
s.description = %q{Interface for working with Request Tracker (RT) tickets inspired by ActiveRecord.}
s.email = %q{pj.davis@gmail.com}
s.extra_rdoc_files = ["History.txt", "README.rdoc", "spec/test_data/full_history.txt", "spec/test_data/single_history.txt"]
- s.files = ["History.txt", "README.rdoc", "Rakefile", "lib/roart.rb", "lib/roart/connection.rb", "lib/roart/core/array.rb", "lib/roart/core/hash.rb", "lib/roart/core/string.rb", "lib/roart/errors.rb", "lib/roart/history.rb", "lib/roart/roart.rb", "lib/roart/ticket.rb", "lib/roart/ticket_page.rb", "spec/roart/connection_spec.rb", "spec/roart/core/array_spec.rb", "spec/roart/core/hash_spec.rb", "spec/roart/core/string_spec.rb", "spec/roart/history_spec.rb", "spec/roart/roart_spec.rb", "spec/roart/ticket_page_spec.rb", "spec/roart/ticket_spec.rb", "spec/roart_spec.rb", "spec/spec_helper.rb", "spec/test_data/full_history.txt", "spec/test_data/single_history.txt"]
+ s.files = ["History.txt", "README.rdoc", "Rakefile", "lib/roart.rb", "lib/roart/callbacks.rb", "lib/roart/connection.rb", "lib/roart/core/array.rb", "lib/roart/core/hash.rb", "lib/roart/core/string.rb", "lib/roart/errors.rb", "lib/roart/history.rb", "lib/roart/roart.rb", "lib/roart/ticket.rb", "lib/roart/ticket_page.rb", "roart.gemspec", "spec/roart/callbacks_spec.rb", "spec/roart/connection_spec.rb", "spec/roart/core/array_spec.rb", "spec/roart/core/hash_spec.rb", "spec/roart/core/string_spec.rb", "spec/roart/history_spec.rb", "spec/roart/roart_spec.rb", "spec/roart/ticket_page_spec.rb", "spec/roart/ticket_spec.rb", "spec/roart_spec.rb", "spec/spec_helper.rb", "spec/test_data/full_history.txt", "spec/test_data/single_history.txt"]
s.has_rdoc = true
s.homepage = %q{http://github.com/pjdavis/roart}
s.rdoc_options = ["--main", "README.rdoc"]
Please sign in to comment.
Something went wrong with that request. Please try again.