Permalink
Browse files

created gem basecamp-rb

  • Loading branch information...
1 parent 09fc9fa commit 5a49f3daca50d433a8cd7a568d0393fd01606f20 Alexey Panin committed Feb 26, 2009
Showing with 41,040 additions and 0 deletions.
  1. +4 −0 History.txt
  2. +26 −0 Manifest.txt
  3. 0 README
  4. +89 −0 README.rdoc
  5. +20 −0 Rakefile
  6. +59 −0 basecamp-rb.gemspec
  7. +743 −0 coverage/-usr-lib-ruby-1_8-base64_rb.html
  8. +1,179 −0 coverage/-usr-lib-ruby-1_8-benchmark_rb.html
  9. +2,373 −0 coverage/-usr-lib-ruby-1_8-drb-drb_rb.html
  10. +626 −0 coverage/-usr-lib-ruby-1_8-drb-eq_rb.html
  11. +646 −0 coverage/-usr-lib-ruby-1_8-drb-invokemethod_rb.html
  12. +612 −0 coverage/-usr-lib-ruby-1_8-drb_rb.html
  13. +977 −0 coverage/-usr-lib-ruby-1_8-kconv_rb.html
  14. +1,313 −0 coverage/-usr-lib-ruby-1_8-logger_rb.html
  15. +962 −0 coverage/-usr-lib-ruby-1_8-monitor_rb.html
  16. +2,887 −0 coverage/-usr-lib-ruby-1_8-net-http_rb.html
  17. +783 −0 coverage/-usr-lib-ruby-1_8-net-https_rb.html
  18. +1,000 −0 coverage/-usr-lib-ruby-1_8-net-protocol_rb.html
  19. +645 −0 coverage/-usr-lib-ruby-1_8-openssl-bn_rb.html
  20. +849 −0 coverage/-usr-lib-ruby-1_8-openssl-buffering_rb.html
  21. +668 −0 coverage/-usr-lib-ruby-1_8-openssl-cipher_rb.html
  22. +659 −0 coverage/-usr-lib-ruby-1_8-openssl-digest_rb.html
  23. +745 −0 coverage/-usr-lib-ruby-1_8-openssl-ssl_rb.html
  24. +764 −0 coverage/-usr-lib-ruby-1_8-openssl-x509_rb.html
  25. +634 −0 coverage/-usr-lib-ruby-1_8-openssl_rb.html
  26. +663 −0 coverage/-usr-lib-ruby-1_8-parsedate_rb.html
  27. +1,234 −0 coverage/-usr-lib-ruby-1_8-set_rb.html
  28. +970 −0 coverage/-usr-lib-ruby-1_8-singleton_rb.html
  29. +1,407 −0 coverage/-usr-lib-ruby-1_8-time_rb.html
  30. +715 −0 coverage/-usr-lib-ruby-1_8-timeout_rb.html
  31. +1,221 −0 coverage/-usr-lib-ruby-1_8-uri-common_rb.html
  32. +758 −0 coverage/-usr-lib-ruby-1_8-uri-ftp_rb.html
  33. +1,731 −0 coverage/-usr-lib-ruby-1_8-uri-generic_rb.html
  34. +710 −0 coverage/-usr-lib-ruby-1_8-uri-http_rb.html
  35. +630 −0 coverage/-usr-lib-ruby-1_8-uri-https_rb.html
  36. +800 −0 coverage/-usr-lib-ruby-1_8-uri-ldap_rb.html
  37. +876 −0 coverage/-usr-lib-ruby-1_8-uri-mailto_rb.html
  38. +638 −0 coverage/-usr-lib-ruby-1_8-uri_rb.html
  39. +1,359 −0 coverage/index.html
  40. +663 −0 coverage/lib-basecamp-attachment_rb.html
  41. +820 −0 coverage/lib-basecamp-base_rb.html
  42. +633 −0 coverage/lib-basecamp-comment_rb.html
  43. +626 −0 coverage/lib-basecamp-connection_rb.html
  44. +642 −0 coverage/lib-basecamp-message_rb.html
  45. +668 −0 coverage/lib-basecamp-record_rb.html
  46. +639 −0 coverage/lib-basecamp-resource_rb.html
  47. +627 −0 coverage/lib-basecamp-time_entry_rb.html
  48. +635 −0 coverage/lib-basecamp-todoitem_rb.html
  49. +632 −0 coverage/lib-basecamp-todolist_rb.html
  50. +641 −0 coverage/lib-basecamp_rb.html
  51. +31 −0 lib/basecamp.rb
  52. +53 −0 lib/basecamp/attachment.rb
  53. +210 −0 lib/basecamp/base.rb
  54. +23 −0 lib/basecamp/comment.rb
  55. +16 −0 lib/basecamp/connection.rb
  56. +32 −0 lib/basecamp/message.rb
  57. +58 −0 lib/basecamp/record.rb
  58. +29 −0 lib/basecamp/resource.rb
  59. +17 −0 lib/basecamp/time_entry.rb
  60. +25 −0 lib/basecamp/todoitem.rb
  61. +22 −0 lib/basecamp/todolist.rb
  62. +3 −0 lib/basecamp/version.rb
  63. +14 −0 script/destroy
  64. +14 −0 script/generate
  65. +61 −0 spec/basecamp_spec.rb
  66. +75 −0 spec/lib/basecamp_base.rb
  67. +42 −0 spec/lib/basecamp_message_spec.rb
  68. +40 −0 spec/lib/basecamp_todo_item_spec.rb
  69. +32 −0 spec/lib/basecamp_todo_list_spec.rb
  70. +1 −0 spec/rcov.opts
  71. +1 −0 spec/spec.opts
  72. +7 −0 spec/spec_helper.rb
  73. +33 −0 tasks/rspec.rake
View
@@ -0,0 +1,4 @@
+== 0.0.1 2009-02-18
+
+* 1 major enhancement:
+ * Initial release
View
@@ -0,0 +1,26 @@
+History.txt
+Manifest.txt
+README.rdoc
+Rakefile
+lib/basecamp.rb
+lib/basecamp/base.rb
+lib/basecamp/version.rb
+lib/basecamp/resource.rb
+lib/basecamp/attachment.rb
+lib/basecamp/comment.rb
+lib/basecamp/connection.rb
+lib/basecamp/message.rb
+lib/basecamp/record.rb
+lib/basecamp/time_entry.rb
+lib/basecamp/todoitem.rb
+lib/basecamp/todolist.rb
+script/destroy
+script/generate
+spec/basecamp_spec.rb
+spec/spec.opts
+spec/spec_helper.rb
+spec/lib/basecamp_base.rb
+spec/lib/basecamp_message_spec.rb
+spec/lib/basecamp_todo_item_spec.rb
+spec/lib/basecamp_todo_list_spec.rb
+tasks/rspec.rake
View
0 README
No changes.
View
@@ -0,0 +1,89 @@
+= basecamp-rb
+
+http://github.com/turingstudio/basecamp-rb/
+
+== DESCRIPTION:
+
+A Ruby gem for working with the Basecamp web-services API.
+
+== FEATURES/PROBLEMS:
+
+
+== SYNOPSIS:
+
+The first thing you need to do is establish a connection to Basecamp. This
+requires your Basecamp site address and your login credentials. Example:
+Basecamp::Base.establish_connection!('your.grouphub.com', 'login', 'password')
+
+m = Basecamp::Message.find(8675309)
+m.title # => 'Jenny'
+
+>> Creating a Resource
+
+ m = Basecamp::Message.new(:project_id => 1037)
+ m.category_id = 7301
+ m.title = 'Message in a bottle'
+ m.body = 'Another lonely day, with no one here but me'
+ m.save # => true
+
+>> Updating a Resource
+
+ m = Basecamp::Message.find(8675309)
+ m.body = 'Changed'
+ m.save # => true
+
+>> Deleting a Resource
+
+ Basecamp::Message.delete(1037)
+
+>> Using the non-REST inteface
+
+# The non-REST interface is accessed via instance methods on the Basecamp
+# class. Ensure you've established a connection, then create a new Basecamp
+# instance and call methods on it. Examples:
+
+ basecamp = Basecamp::Base.new
+
+ basecamp.projects.length # => 5
+ basecamp.person(93832) # => #<Record(person)..>
+ basecamp.file_categories(123) # => [#<Record(file-category)>,#<Record..>]
+
+# Object attributes are accessible as methods. Example:
+
+ person = basecamp.person(93832)
+ person.first_name # => "Jason"
+
+
+== REQUIREMENTS:
+
+ xml-simple >= 1.0.11
+ activeresource >= 2.2.2
+
+== INSTALL:
+
+gem install turingstudio-basecamp-rb
+
+== LICENSE:
+
+(The MIT License)
+
+Copyright (c) 2008 The Turing Studio, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -0,0 +1,20 @@
+%w[rubygems rake rake/clean fileutils newgem rubigen].each { |f| require f }
+require File.dirname(__FILE__) + '/lib/basecamp/version'
+
+# Generate all the Rake tasks
+# Run 'rake -T' to see list of generated tasks (from gem root directory)
+$hoe = Hoe.new('basecamp-rb', Basecamp::VERSION) do |p|
+ p.developer('The Turing Studio, Inc.', 'support@turingstudio.com')
+ p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
+ p.extra_deps = [
+ ['xml-simple','>= 1.0.11'],
+ ['activeresource','>= 2.2.2']
+ ]
+ p.extra_dev_deps = [
+ ['newgem', ">= #{::Newgem::VERSION}"]
+ ]
+ p.clean_globs |= %w[**/.DS_Store tmp *.log]
+end
+
+require 'newgem/tasks' # load /tasks/*.rake
+Dir['tasks/**/*.rake'].each { |t| load t }
View
@@ -0,0 +1,59 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{basecamp-rb}
+ s.version = "0.0.1"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["The Turing Studio, Inc."]
+ s.date = %q{2009-02-25}
+
+ s.email = ["operations@turingstudio.com"]
+ s.description = %q{FIX (describe your package)}
+ s.summary = %q{FIX (describe your package)}
+ s.files = [
+ "History.txt",
+ "README.rdoc",
+ "lib/basecamp.rb",
+ "lib/basecamp/base.rb",
+ "lib/basecamp/version.rb",
+ "lib/basecamp/resource.rb",
+ "lib/basecamp/attachment.rb",
+ "lib/basecamp/comment.rb",
+ "lib/basecamp/connection.rb",
+ "lib/basecamp/message.rb",
+ "lib/basecamp/record.rb",
+ "lib/basecamp/time_entry.rb",
+ "lib/basecamp/todoitem.rb",
+ "lib/basecamp/todolist.rb",
+ "spec/basecamp_spec.rb",
+ "spec/spec.opts",
+ "spec/spec_helper.rb",
+ "spec/lib/basecamp_base.rb",
+ "spec/lib/basecamp_message_spec.rb",
+ "spec/lib/basecamp_todo_item_spec.rb",
+ "spec/lib/basecamp_todo_list_spec.rb",
+ "tasks/rspec.rake"
+ ]
+ s.has_rdoc = true
+ s.extra_rdoc_files = ["README.rdoc"]
+ s.homepage = %q{http://github.com/turingstudio/basecamp-rb/}
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.1}
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 2
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<xml-simple>, [">= 1.0.11"])
+ s.add_runtime_dependency(%q<activeresource>, [">= 2.2.2"])
+ else
+ s.add_dependency(%q<xml-simple>, [">= 1.0.11"])
+ s.add_dependency(%q<activeresource>, [">= 2.2.2"])
+ end
+ else
+ s.add_dependency(%q<xml-simple>, [">= 1.0.11"])
+ s.add_dependency(%q<activeresource>, [">= 2.2.2"])
+ end
+end
Oops, something went wrong.

0 comments on commit 5a49f3d

Please sign in to comment.