faraday 0.8.2 → 0.8.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
3
3
  s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5") if s.respond_to? :required_rubygems_version=
4
4
 
5
5
  s.name = 'faraday'
6
- s.version = '0.8.2'
6
+ s.version = '0.8.4'
7
7
 
8
8
  s.summary = "HTTP/REST API client library."
9
9
  # TODO: s.description
@@ -23,7 +23,6 @@ Gem::Specification.new do |s|
23
23
  LICENSE.md
24
24
  README.md
25
25
  Rakefile
26
- config.ru
27
26
  faraday.gemspec
28
27
  lib/faraday.rb
29
28
  lib/faraday/adapter.rb
@@ -1,5 +1,5 @@
1
1
  module Faraday
2
- VERSION = "0.8.2"
2
+ VERSION = "0.8.4"
3
3
 
4
4
  class << self
5
5
  attr_accessor :root_path, :lib_path
@@ -4,6 +4,7 @@ rescue LoadError
4
4
  warn "Warning: no such file to load -- net/https. Make sure openssl is installed if you want ssl support"
5
5
  require 'net/http'
6
6
  end
7
+ require 'zlib'
7
8
 
8
9
  module Faraday
9
10
  class Adapter
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env ruby -rubygems -w
1
+ #!/usr/bin/env ruby
2
2
  # Runs the test suite against a local server spawned automatically in a
3
3
  # thread. After tests are done, the server is shut down.
4
4
  #
@@ -11,6 +11,7 @@
11
11
  # $ script/test test/env_test.rb
12
12
  # $ script/test excon typhoeus
13
13
 
14
+ require 'rubygems'
14
15
  require 'bundler'
15
16
  begin
16
17
  Bundler.setup
@@ -21,6 +22,8 @@ rescue Bundler::GemNotFound
21
22
  exit 1
22
23
  end
23
24
 
25
+ $VERBOSE = true
26
+
24
27
  host = '127.0.0.1'
25
28
  logfile = 'log/test.log'
26
29
  test_glob = 'test/**/*_test.rb'
@@ -49,6 +52,7 @@ thread = Thread.new do
49
52
  end
50
53
  require 'webrick'
51
54
  log_io = File.open logfile, 'w'
55
+ log_io.sync = true
52
56
  webrick_opts = {
53
57
  :Port => port, :Logger => WEBrick::Log::new(log_io),
54
58
  :AccessLog => [[log_io, "[%{X-Faraday-Adapter}i] %m %U -> %s %b"]]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-12 00:00:00.000000000 Z
12
+ date: 2012-08-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multipart-post
@@ -85,7 +85,6 @@ files:
85
85
  - LICENSE.md
86
86
  - README.md
87
87
  - Rakefile
88
- - config.ru
89
88
  - faraday.gemspec
90
89
  - lib/faraday.rb
91
90
  - lib/faraday/adapter.rb
data/config.ru DELETED
@@ -1,6 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler'
3
- Bundler.setup
4
-
5
- require File.expand_path('../test/live_server', __FILE__)
6
- run Sinatra::Application