rack-client 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -3,6 +3,13 @@ h1. What's this?
3
3
  Rack::Client is an HTTP client that aims to be a good Rack
4
4
  citizen.
5
5
 
6
+ h1. Install
7
+
8
+ To install the latest release as a gem:
9
+ <pre>sudo gem install rack-client</pre>
10
+ Then in Ruby:
11
+ <pre>require "rubygems"; require "rack/client" # and you're off!</pre>
12
+
6
13
  h2. Rack responses
7
14
 
8
15
  Rack::Client can be used to make HTTP requests to any type of server, not
@@ -60,4 +67,4 @@ end
60
67
 
61
68
  h1. Contributors
62
69
 
63
- halorgium, larrytheliquid
70
+ halorgium, larrytheliquid, benburkert
data/Rakefile CHANGED
@@ -13,14 +13,18 @@ task :default => :spec
13
13
 
14
14
  spec = Gem::Specification.new do |s|
15
15
  s.name = "rack-client"
16
+ s.rubyforge_project = s.name
16
17
  s.version = Rack::Client::VERSION
17
18
  s.author = "Tim Carey-Smith"
18
- s.email = "time" + "@" + "spork.in"
19
+ s.email = "tim" + "@" + "spork.in"
19
20
  s.homepage = "http://github.com/halorgium/rack-client"
20
21
  s.summary = "A client wrapper around a Rack app or HTTP"
21
22
  s.description = s.summary
22
23
  s.files = %w[History.txt LICENSE README.textile Rakefile] + Dir["lib/**/*"] + Dir["demo/**/*"]
23
24
  s.test_files = Dir["spec/**/*"]
25
+
26
+ s.add_dependency 'rack', '~> 1' # 1.X.X
27
+ s.add_dependency 'rack-test', '~> 0' # 0.X.X
24
28
  end
25
29
 
26
30
  Rake::GemPackageTask.new(spec) do |package|
data/demo/demo_spec.rb CHANGED
@@ -1,4 +1,4 @@
1
- require "demo"
1
+ require File.expand_path(File.dirname(__FILE__) + "/demo")
2
2
  require "rubygems"
3
3
  require "spec"
4
4
  require "rack"
data/lib/rack/client.rb CHANGED
@@ -8,7 +8,7 @@ require 'forwardable'
8
8
 
9
9
  module Rack
10
10
  class Client < Rack::Builder
11
- VERSION = "0.1.0"
11
+ VERSION = "0.1.1"
12
12
  include Rack::Test::Methods
13
13
  HTTP_METHODS = [:head, :get, :put, :post, :delete]
14
14
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-client
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
  - Tim Carey-Smith
@@ -9,12 +9,31 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-14 00:00:00 -07:00
12
+ date: 2009-07-31 00:00:00 -07:00
13
13
  default_executable:
14
- dependencies: []
15
-
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rack
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ~>
22
+ - !ruby/object:Gem::Version
23
+ version: "1"
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: rack-test
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ version:
16
35
  description: A client wrapper around a Rack app or HTTP
17
- email: time@spork.in
36
+ email: tim@spork.in
18
37
  executables: []
19
38
 
20
39
  extensions: []
@@ -29,13 +48,13 @@ files:
29
48
  - lib/rack
30
49
  - lib/rack/client
31
50
  - lib/rack/client/auth.rb
32
- - lib/rack/client/http.rb
33
51
  - lib/rack/client/follow_redirects.rb
52
+ - lib/rack/client/http.rb
34
53
  - lib/rack/client.rb
35
- - demo/config.ru
36
- - demo/demo_spec.rb
37
54
  - demo/client.rb
55
+ - demo/config.ru
38
56
  - demo/demo.rb
57
+ - demo/demo_spec.rb
39
58
  has_rdoc: false
40
59
  homepage: http://github.com/halorgium/rack-client
41
60
  post_install_message:
@@ -57,17 +76,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
76
  version:
58
77
  requirements: []
59
78
 
60
- rubyforge_project:
79
+ rubyforge_project: rack-client
61
80
  rubygems_version: 1.3.1
62
81
  signing_key:
63
82
  specification_version: 2
64
83
  summary: A client wrapper around a Rack app or HTTP
65
84
  test_files:
66
- - spec/redirect_spec.rb
67
- - spec/auth_spec.rb
68
- - spec/spec_helper.rb
69
85
  - spec/apps
70
86
  - spec/apps/example.org.ru
71
- - spec/endpoint_spec.rb
87
+ - spec/auth_spec.rb
72
88
  - spec/core_spec.rb
89
+ - spec/endpoint_spec.rb
73
90
  - spec/middleware_spec.rb
91
+ - spec/redirect_spec.rb
92
+ - spec/spec_helper.rb