[DRE-commits] r4446 - trunk/librestclient-ruby

Lucas Nussbaum lucas at alioth.debian.org
Sat Dec 12 16:56:24 UTC 2009


Author: lucas
Date: 2009-12-12 16:56:24 +0000 (Sat, 12 Dec 2009)
New Revision: 4446

Removed:
   trunk/librestclient-ruby/README.rdoc
   trunk/librestclient-ruby/Rakefile
   trunk/librestclient-ruby/VERSION
   trunk/librestclient-ruby/bin/
   trunk/librestclient-ruby/lib/
   trunk/librestclient-ruby/rest-client.gemspec
   trunk/librestclient-ruby/spec/
Log:
remove upstream sources

Deleted: trunk/librestclient-ruby/README.rdoc
===================================================================
--- trunk/librestclient-ruby/README.rdoc	2009-12-12 16:52:23 UTC (rev 4445)
+++ trunk/librestclient-ruby/README.rdoc	2009-12-12 16:56:24 UTC (rev 4446)
@@ -1,104 +0,0 @@
-= REST Client -- simple DSL for accessing REST resources
-
-A simple REST client for Ruby, inspired by the Sinatra's microframework style
-of specifying actions: get, put, post, delete.
-
-== Usage: Raw URL
-
-  require 'rest_client'
-
-  RestClient.get 'http://example.com/resource'
-  RestClient.get 'https://user:password@example.com/private/resource'
-
-  RestClient.post 'http://example.com/resource', :param1 => 'one', :nested => { :param2 => 'two' }
-
-  RestClient.delete 'http://example.com/resource'
-  
-== Multipart
-
-Yeah, that's right!  This does multipart sends for you!
-
-  RestClient.post '/data', :myfile => File.new("/path/to/image.jpg")
-
-This does two things for you:
-
-* Auto-detects that you have a File value sends it as multipart
-* Auto-detects the mime of the file and sets it in the HEAD of the payload for each entry
-
-If you are sending params that do not contain a File object but the payload needs to be multipart then:
-
-  RestClient.post '/data', :foo => 'bar', :multipart => true
-
-== Streaming downloads
-
-RestClient.get('http://some/resource/lotsofdata') do |res|
-  res.read_body do |chunk|
-    .. do something with chunk ..
-  end
-end
-
-See RestClient module docs for more details.
-
-== Usage: ActiveResource-Style
-
-  resource = RestClient::Resource.new 'http://example.com/resource'
-  resource.get
-
-  private_resource = RestClient::Resource.new 'https://example.com/private/resource', 'user', 'pass'
-  private_resource.put File.read('pic.jpg'), :content_type => 'image/jpg'
-
-See RestClient::Resource module docs for details.
-
-== Usage: Resource Nesting
-
-  site = RestClient::Resource.new('http://example.com')
-  site['posts/1/comments'].post 'Good article.', :content_type => 'text/plain'
-
-See RestClient::Resource docs for details.
-
-== Shell
-
-The restclient shell command gives an IRB session with RestClient already loaded:
-
-  $ restclient
-  >> RestClient.get 'http://example.com'
-
-Specify a URL argument for get/post/put/delete on that resource:
-
-  $ restclient http://example.com
-  >> put '/resource', 'data'
-
-Add a user and password for authenticated resources:
-
-  $ restclient https://example.com user pass
-  >> delete '/private/resource'
-
-Create ~/.restclient for named sessions:
-
-  sinatra:
-    url: http://localhost:4567
-  rack:
-    url: http://localhost:9292
-  private_site:
-    url: http://example.com
-    username: user
-    password: pass
-
-Then invoke:
-
-  $ restclient private_site
-  
-== Meta
-
-Written by Adam Wiggins (adam at heroku dot com)
-
-Major modifications by Blake Mizerany
-
-Patches contributed by: Chris Anderson, Greg Borenstein, Ardekantur, Pedro Belo, Rafael Souza, Rick Olson, and Aman Gupta
-
-Released under the MIT License: http://www.opensource.org/licenses/mit-license.php
-
-http://rest-client.heroku.com
-
-http://github.com/adamwiggins/rest-client
-

Deleted: trunk/librestclient-ruby/Rakefile
===================================================================
--- trunk/librestclient-ruby/Rakefile	2009-12-12 16:52:23 UTC (rev 4445)
+++ trunk/librestclient-ruby/Rakefile	2009-12-12 16:56:24 UTC (rev 4446)
@@ -1,57 +0,0 @@
-require 'rake'
-
-require 'jeweler'
-
-Jeweler::Tasks.new do |s|
-	s.name = "rest-client"
-	s.description = "A simple REST client for Ruby, inspired by the Sinatra microframework style of specifying actions: get, put, post, delete."
-	s.summary = "Simple REST client for Ruby, inspired by microframework syntax for specifying actions."
-	s.author = "Adam Wiggins"
-	s.email = "adam at heroku.com"
-	s.homepage = "http://rest-client.heroku.com/"
-	s.rubyforge_project = "rest-client"
-	s.has_rdoc = true
-	s.files = FileList["[A-Z]*", "{bin,lib,spec}/**/*"]
-	s.executables = %w(restclient)
-end
-
-Jeweler::RubyforgeTasks.new
-
-############################
-
-require 'spec/rake/spectask'
-
-desc "Run all specs"
-Spec::Rake::SpecTask.new('spec') do |t|
-	t.spec_opts = ['--colour --format progress --loadby mtime --reverse']
-	t.spec_files = FileList['spec/*_spec.rb']
-end
-
-desc "Print specdocs"
-Spec::Rake::SpecTask.new(:doc) do |t|
-	t.spec_opts = ["--format", "specdoc", "--dry-run"]
-	t.spec_files = FileList['spec/*_spec.rb']
-end
-
-desc "Run all examples with RCov"
-Spec::Rake::SpecTask.new('rcov') do |t|
-	t.spec_files = FileList['spec/*_spec.rb']
-	t.rcov = true
-	t.rcov_opts = ['--exclude', 'examples']
-end
-
-task :default => :spec
-
-############################
-
-require 'rake/rdoctask'
-
-Rake::RDocTask.new do |t|
-	t.rdoc_dir = 'rdoc'
-	t.title    = "rest-client, fetch RESTful resources effortlessly"
-	t.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object'
-	t.options << '--charset' << 'utf-8'
-	t.rdoc_files.include('README.rdoc')
-	t.rdoc_files.include('lib/*.rb')
-end
-

Deleted: trunk/librestclient-ruby/VERSION
===================================================================
--- trunk/librestclient-ruby/VERSION	2009-12-12 16:52:23 UTC (rev 4445)
+++ trunk/librestclient-ruby/VERSION	2009-12-12 16:56:24 UTC (rev 4446)
@@ -1 +0,0 @@
-1.1.5

Deleted: trunk/librestclient-ruby/rest-client.gemspec
===================================================================
--- trunk/librestclient-ruby/rest-client.gemspec	2009-12-12 16:52:23 UTC (rev 4445)
+++ trunk/librestclient-ruby/rest-client.gemspec	2009-12-12 16:56:24 UTC (rev 4446)
@@ -1,70 +0,0 @@
-# -*- encoding: utf-8 -*-
-
-Gem::Specification.new do |s|
-  s.name = %q{rest-client}
-  s.version = "1.1.5"
-
-  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
-  s.authors = ["Adam Wiggins"]
-  s.date = %q{2009-08-12}
-  s.default_executable = %q{restclient}
-  s.description = %q{A simple REST client for Ruby, inspired by the Sinatra microframework style of specifying actions: get, put, post, delete.}
-  s.email = %q{adam at heroku.com}
-  s.executables = ["restclient"]
-  s.extra_rdoc_files = [
-    "README.rdoc"
-  ]
-  s.files = [
-    "README.rdoc",
-     "Rakefile",
-     "VERSION",
-     "bin/restclient",
-     "lib/rest_client.rb",
-     "lib/restclient.rb",
-     "lib/restclient/exceptions.rb",
-     "lib/restclient/mixin/response.rb",
-     "lib/restclient/net_http_ext.rb",
-     "lib/restclient/payload.rb",
-     "lib/restclient/raw_response.rb",
-     "lib/restclient/request.rb",
-     "lib/restclient/resource.rb",
-     "lib/restclient/response.rb",
-     "spec/base.rb",
-     "spec/exceptions_spec.rb",
-     "spec/master_shake.jpg",
-     "spec/mixin/response_spec.rb",
-     "spec/payload_spec.rb",
-     "spec/raw_response_spec.rb",
-     "spec/request_spec.rb",
-     "spec/resource_spec.rb",
-     "spec/response_spec.rb",
-     "spec/restclient_spec.rb"
-  ]
-  s.homepage = %q{http://rest-client.heroku.com/}
-  s.rdoc_options = ["--charset=UTF-8"]
-  s.require_paths = ["lib"]
-  s.rubyforge_project = %q{rest-client}
-  s.rubygems_version = %q{1.3.5}
-  s.summary = %q{Simple REST client for Ruby, inspired by microframework syntax for specifying actions.}
-  s.test_files = [
-    "spec/base.rb",
-     "spec/exceptions_spec.rb",
-     "spec/mixin/response_spec.rb",
-     "spec/payload_spec.rb",
-     "spec/raw_response_spec.rb",
-     "spec/request_spec.rb",
-     "spec/resource_spec.rb",
-     "spec/response_spec.rb",
-     "spec/restclient_spec.rb"
-  ]
-
-  if s.respond_to? :specification_version then
-    current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
-    s.specification_version = 3
-
-    if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
-    else
-    end
-  else
-  end
-end




More information about the Pkg-ruby-extras-commits mailing list