wrest 1.4.7 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -2,6 +2,9 @@ Features under the section marked 'Current' are completed but pending release as
2
2
 
3
3
  Features under a numbered section are complete and available in the Wrest gem.
4
4
 
5
+ == 1.5.0
6
+ * Introducing content type text/plain - pull request by buchin
7
+
5
8
  == 1.4.7
6
9
  * Switch to using multi_json to manage Json backend to play nice with Rails 3.1.
7
10
 
data/README.rdoc CHANGED
@@ -1,6 +1,8 @@
1
- = Wrest 1.4.7
1
+ = Wrest 1.5.0
2
2
 
3
- (c) Copyright 2009-2011 {Sidu Ponnappa}[http://blog.sidu.in]. All Rights Reserved.
3
+ (c) Copyright 2009-2011 {Sidu Ponnappa}[http://blog.sidu.in]. All Rights Reserved.
4
+
5
+ {CI Status:}[http://ci.c42.in/projects/wrest] http://ci.c42.in/projects/wrest.png
4
6
 
5
7
  Wrest is a ruby REST/HTTP client library which
6
8
 
@@ -58,7 +60,7 @@ For Facebook, Twitter, Delicious, GitHub and other API examples, see http://gith
58
60
  :results=> '3',
59
61
  :start => '1'
60
62
  ).deserialise_using(
61
- Wrest::Translators::Xml
63
+ Wrest::Components::Translators::Xml
62
64
  )
63
65
  * Basic HTTP auth and URI extensions using Wrest::Uri#[]
64
66
 
@@ -87,7 +89,7 @@ For Facebook, Twitter, Delicious, GitHub and other API examples, see http://gith
87
89
  :key => imgur_key
88
90
  ).deserialise
89
91
 
90
- ** Note: To enable Multipart support, you'll have to explicitly require 'wrest/multipart', which depends on a '{multipart-post}[https://rubygems.org/gems/multipart-post]'
92
+ Note: To enable Multipart support, you'll have to explicitly require 'wrest/multipart', which depends on the multipart-post gem.
91
93
 
92
94
  ==== DELETE
93
95
 
data/bin/rdoc ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env jruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rdoc' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rdoc', 'rdoc')
data/lib/wrest.rb CHANGED
@@ -6,8 +6,6 @@
6
6
  # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
7
7
  # See the License for the specific language governing permissions and limitations under the License.
8
8
 
9
- require 'rubygems'
10
-
11
9
  require 'net/http'
12
10
  require 'net/https'
13
11
  require 'forwardable'
@@ -37,7 +35,7 @@ module Wrest
37
35
  end
38
36
 
39
37
  def self.enable_evented_requests!
40
- require "#{Wrest::Root}/wrest/event_machine_backend"
38
+ require "wrest/event_machine_backend"
41
39
  end
42
40
 
43
41
  # Switch Wrest to using Net::HTTP.
@@ -47,7 +45,7 @@ module Wrest
47
45
 
48
46
  # Switch Wrest to using libcurl.
49
47
  def self.use_curl!
50
- require "#{Wrest::Root}/wrest/curl"
48
+ require "wrest/curl"
51
49
  silence_warnings{ Wrest.const_set('Http', Wrest::Curl) }
52
50
  end
53
51
  end
@@ -55,36 +53,32 @@ end
55
53
  Wrest.logger = ActiveSupport::BufferedLogger.new(STDOUT)
56
54
  Wrest.logger.level = Logger::DEBUG
57
55
 
58
- require "#{Wrest::Root}/wrest/core_ext/string"
59
- require "#{Wrest::Root}/wrest/hash_with_case_insensitive_access"
56
+ require "wrest/core_ext/string"
57
+ require "wrest/hash_with_case_insensitive_access"
60
58
 
61
59
  # Load XmlMini Extensions
62
- require "#{Wrest::Root}/wrest/xml_mini"
60
+ require "wrest/xml_mini"
63
61
 
64
62
  # Load Wrest Core
65
- require "#{Wrest::Root}/wrest/version"
66
- require "#{Wrest::Root}/wrest/cache_proxy"
67
- require "#{Wrest::Root}/wrest/http_shared"
68
- require "#{Wrest::Root}/wrest/http_codes"
69
- require "#{Wrest::Root}/wrest/callback"
70
- require "#{Wrest::Root}/wrest/native"
71
-
72
- require "#{Wrest::Root}/wrest/async_request"
73
- require "#{Wrest::Root}/wrest/async_request/thread_backend"
63
+ require "wrest/version"
64
+ require "wrest/cache_proxy"
65
+ require "wrest/http_shared"
66
+ require "wrest/http_codes"
67
+ require "wrest/callback"
68
+ require "wrest/native"
69
+
70
+ require "wrest/async_request"
71
+ require "wrest/async_request/thread_backend"
74
72
  Wrest::AsyncRequest.default_to_threads!
75
73
 
76
- require "#{Wrest::Root}/wrest/caching"
74
+ require "wrest/caching"
77
75
 
78
76
  # Load Wrest Wrappers
79
- require "#{Wrest::Root}/wrest/uri/builders"
80
- require "#{Wrest::Root}/wrest/uri"
81
- require "#{Wrest::Root}/wrest/uri_template"
82
- require "#{Wrest::Root}/wrest/exceptions"
83
- require "#{Wrest::Root}/wrest/components"
77
+ require "wrest/uri/builders"
78
+ require "wrest/uri"
79
+ require "wrest/uri_template"
80
+ require "wrest/exceptions"
81
+ require "wrest/components"
84
82
 
85
83
  # Load Wrest::Resource
86
- # require "#{Wrest::Root}/wrest/resource"
87
-
88
- # if (ENV['RAILS_ENV'] == 'test' || (Kernel.const_defined?(:RAILS_ENV) && (RAILS_ENV == 'test')))
89
- # require "#{Wrest::Root}/wrest/test"
90
- # end
84
+ # require "wrest/resource"
@@ -12,7 +12,7 @@ module Wrest
12
12
  module AsyncRequest
13
13
  # Loads Wrest eventmachine backend alongwith eventmachine gem
14
14
  def self.enable_em
15
- require "#{Wrest::Root}/wrest/async_request/event_machine_backend"
15
+ require "wrest/async_request/event_machine_backend"
16
16
  end
17
17
 
18
18
  # Assign default backend to be used for asynchronous request. Default is to use threads
data/lib/wrest/caching.rb CHANGED
@@ -11,7 +11,7 @@ module Wrest
11
11
  module Caching
12
12
  # Loads the Memcached caching back-end and the Dalli gem
13
13
  def self.enable_memcached
14
- require "#{Wrest::Root}/wrest/caching/memcached"
14
+ require "wrest/caching/memcached"
15
15
  end
16
16
 
17
17
  # Configures Wrest to cache all requests. This will use a Ruby Hash.
@@ -15,5 +15,5 @@ module Wrest
15
15
  end
16
16
  end
17
17
 
18
- require "#{Wrest::Root}/wrest/components/container"
19
- require "#{Wrest::Root}/wrest/components/translators"
18
+ require "wrest/components/container"
19
+ require "wrest/components/translators"
@@ -12,8 +12,8 @@ module Wrest
12
12
  end
13
13
  end
14
14
 
15
- require "#{Wrest::Root}/wrest/components/container/typecaster"
16
- require "#{Wrest::Root}/wrest/components/container/alias_accessors"
15
+ require "wrest/components/container/typecaster"
16
+ require "wrest/components/container/alias_accessors"
17
17
 
18
18
  module Wrest::Components
19
19
 
@@ -32,9 +32,9 @@ module Wrest
32
32
  end
33
33
  end
34
34
  end
35
- require "#{Wrest::Root}/wrest/core_ext/hash"
36
- require "#{Wrest::Root}/wrest/components/mutators/base"
37
- require "#{Wrest::Root}/wrest/components/mutators/xml_simple_type_caster"
38
- require "#{Wrest::Root}/wrest/components/mutators/xml_mini_type_caster"
39
- require "#{Wrest::Root}/wrest/components/mutators/camel_to_snake_case"
35
+ require "wrest/core_ext/hash"
36
+ require "wrest/components/mutators/base"
37
+ require "wrest/components/mutators/xml_simple_type_caster"
38
+ require "wrest/components/mutators/xml_mini_type_caster"
39
+ require "wrest/components/mutators/camel_to_snake_case"
40
40
 
@@ -23,6 +23,7 @@ module Wrest
23
23
  end
24
24
  end
25
25
 
26
- require "#{Wrest::Root}/wrest/components/translators/xml"
27
- require "#{Wrest::Root}/wrest/components/translators/json"
28
- require "#{Wrest::Root}/wrest/components/translators/content_types"
26
+ require "wrest/components/translators/txt"
27
+ require "wrest/components/translators/xml"
28
+ require "wrest/components/translators/json"
29
+ require "wrest/components/translators/content_types"
@@ -14,7 +14,8 @@ module Wrest
14
14
  'application/xml' => Wrest::Components::Translators::Xml,
15
15
  'text/xml' => Wrest::Components::Translators::Xml,
16
16
  'application/json' => Wrest::Components::Translators::Json,
17
- 'text/javascript' => Wrest::Components::Translators::Json
17
+ 'text/javascript' => Wrest::Components::Translators::Json,
18
+ 'text/plain' => Wrest::Components::Translators::Txt
18
19
  }
19
20
  end
20
21
  end
@@ -0,0 +1,31 @@
1
+ # Copyright 2009 Sidu Ponnappa
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ # Unless required by applicable law or agreed to in writing, software distributed under the License
7
+ # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8
+ # See the License for the specific language governing permissions and limitations under the License.
9
+ module Wrest
10
+ module Components::Translators
11
+ module Txt
12
+ extend self
13
+
14
+ def deserialise(response,options={})
15
+ response.body
16
+ end
17
+
18
+ def deserialize(response, options = {})
19
+ deserialise(response, options)
20
+ end
21
+
22
+ def serialise(hash, options = {})
23
+ hash.inspect
24
+ end
25
+
26
+ def serialize(hash, options = {})
27
+ serialise(hash, options)
28
+ end
29
+ end
30
+ end
31
+ end
@@ -1,4 +1,4 @@
1
- require "#{Wrest::Root}/wrest/core_ext/hash/conversions"
1
+ require "wrest/core_ext/hash/conversions"
2
2
 
3
3
  class Hash #:nodoc:
4
4
  include Wrest::CoreExt::Hash::Conversions
@@ -1,4 +1,4 @@
1
- require "#{Wrest::Root}/wrest/core_ext/string/conversions"
1
+ require "wrest/core_ext/string/conversions"
2
2
 
3
3
  class String #:nodoc:
4
4
  include Wrest::CoreExt::String::Conversions unless Wrest.const_defined?('NoStringExtensions')
data/lib/wrest/curl.rb CHANGED
@@ -8,9 +8,9 @@
8
8
  # See the License for the specific language governing permissions and limitations under the License.
9
9
 
10
10
  begin
11
- gem 'patron', '~> 0.4.11'
11
+ gem 'patron', '~> 0.4'
12
12
  rescue Gem::LoadError => e
13
- Wrest.logger.debug "Patron ~> 0.4.11 not found. Patron is necessary to use libcurl. To install Patron run `sudo gem install patron` (patron is not available on JRuby, but you shouldn't need it anyway)."
13
+ Wrest.logger.debug "Patron ~> 0.4.x not found. Patron is necessary to use libcurl. To install Patron run `sudo gem install patron` (patron is not available on JRuby, but you shouldn't need it anyway)."
14
14
  raise e
15
15
  end
16
16
  require 'patron'
@@ -39,13 +39,13 @@ module Patron #:nodoc:
39
39
  end
40
40
  end
41
41
 
42
- require "#{Wrest::Root}/wrest/curl/response"
43
- require "#{Wrest::Root}/wrest/curl/request"
44
- require "#{Wrest::Root}/wrest/curl/get"
45
- require "#{Wrest::Root}/wrest/curl/put"
46
- require "#{Wrest::Root}/wrest/curl/post"
47
- require "#{Wrest::Root}/wrest/curl/delete"
48
- require "#{Wrest::Root}/wrest/curl/options"
49
- require "#{Wrest::Root}/wrest/curl/post_multipart"
50
- require "#{Wrest::Root}/wrest/curl/put_multipart"
51
- # require "#{Wrest::Root}/wrest/curl/session"
42
+ require "wrest/curl/response"
43
+ require "wrest/curl/request"
44
+ require "wrest/curl/get"
45
+ require "wrest/curl/put"
46
+ require "wrest/curl/post"
47
+ require "wrest/curl/delete"
48
+ require "wrest/curl/options"
49
+ require "wrest/curl/post_multipart"
50
+ require "wrest/curl/put_multipart"
51
+ # require "wrest/curl/session"
@@ -14,9 +14,9 @@ module Wrest
14
14
  end
15
15
  end
16
16
 
17
- require "#{Wrest::Root}/wrest/http_shared/headers"
18
- require "#{Wrest::Root}/wrest/http_shared/standard_headers"
19
- require "#{Wrest::Root}/wrest/http_shared/standard_tokens"
17
+ require "wrest/http_shared/headers"
18
+ require "wrest/http_shared/standard_headers"
19
+ require "wrest/http_shared/standard_tokens"
20
20
 
21
21
  # Set up a shorter convenience API for constants
22
22
  Wrest::H = Wrest::HttpShared::StandardHeaders
@@ -50,7 +50,6 @@ module Wrest
50
50
  # This implementation of asynchronous post_multipart is currently in alpha. Hence, it should not be used in production.
51
51
  def post_multipart_async(parameters = {}, headers = {}, &block)
52
52
  (@options[:asynchronous_backend] || Wrest::AsyncRequest.default_backend).execute(Http::PostMultipart.new(self, parameters, headers, block ? @options.merge(:callback_block => block) : @options))
53
- nil
54
53
  end
55
54
 
56
55
  # Makes a multipart/form-data encoded PUT request to this URI. This is a convenience API
@@ -66,7 +65,6 @@ module Wrest
66
65
  # This implementation of asynchronous put_multipart is currently in alpha. Hence, it should not be used in production.
67
66
  def put_multipart_async(parameters = {}, headers = {}, &block)
68
67
  (@options[:asynchronous_backend] || Wrest::AsyncRequest.default_backend).execute(Http::PutMultipart.new(self, parameters, headers, block ? @options.merge(:callback_block => block) : @options))
69
- nil
70
68
  end
71
69
  end
72
70
 
data/lib/wrest/native.rb CHANGED
@@ -18,16 +18,16 @@ module Wrest
18
18
  end
19
19
  end
20
20
 
21
- require "#{Wrest::Root}/wrest/native/connection_factory"
22
- require "#{Wrest::Root}/wrest/native/response"
23
- require "#{Wrest::Root}/wrest/native/redirection"
24
- require "#{Wrest::Root}/wrest/native/request"
25
- require "#{Wrest::Root}/wrest/native/get"
26
- require "#{Wrest::Root}/wrest/native/put"
27
- require "#{Wrest::Root}/wrest/native/post"
28
- require "#{Wrest::Root}/wrest/native/delete"
29
- require "#{Wrest::Root}/wrest/native/options"
30
- require "#{Wrest::Root}/wrest/native/session"
21
+ require "wrest/native/connection_factory"
22
+ require "wrest/native/response"
23
+ require "wrest/native/redirection"
24
+ require "wrest/native/request"
25
+ require "wrest/native/get"
26
+ require "wrest/native/put"
27
+ require "wrest/native/post"
28
+ require "wrest/native/delete"
29
+ require "wrest/native/options"
30
+ require "wrest/native/session"
31
31
 
32
32
  # default to using Native libs
33
33
  Wrest::Http = Wrest::Native
data/lib/wrest/test.rb CHANGED
@@ -1 +1 @@
1
- require "#{Wrest::Root}/wrest/test/request_patches"
1
+ require "wrest/test/request_patches"
data/lib/wrest/uri.rb CHANGED
@@ -150,7 +150,6 @@ module Wrest #:nodoc:
150
150
  # This implementation of asynchronous get is currently in alpha. Hence, it should not be used in production.
151
151
  def get_async(parameters = {}, headers = {}, &block)
152
152
  @asynchronous_backend.execute(build_get(parameters, headers, &block))
153
- nil
154
153
  end
155
154
 
156
155
  # Make a PUT request to this URI. This is a convenience API
@@ -170,7 +169,6 @@ module Wrest #:nodoc:
170
169
  # This implementation of asynchronous put is currently in alpha. Hence, it should not be used in production.
171
170
  def put_async(body = '', headers = {}, parameters = {}, &block)
172
171
  @asynchronous_backend.execute(build_put(body, headers, parameters, &block))
173
- nil
174
172
  end
175
173
 
176
174
  # Makes a POST request to this URI. This is a convenience API
@@ -192,7 +190,6 @@ module Wrest #:nodoc:
192
190
  # This implementation of asynchronous post is currently in alpha. Hence, it should not be used in production.
193
191
  def post_async(body = '', headers = {}, parameters = {}, &block)
194
192
  @asynchronous_backend.execute(build_post(body, headers, parameters, &block))
195
- nil
196
193
  end
197
194
 
198
195
  # Makes a POST request to this URI. This is a convenience API
@@ -218,7 +215,6 @@ module Wrest #:nodoc:
218
215
  # This implementation of asynchronous post_form is currently in alpha. Hence, it should not be used in production.
219
216
  def post_form_async(parameters = {}, headers = {}, &block)
220
217
  @asynchronous_backend.execute(build_post_form(parameters, headers, &block))
221
- nil
222
218
  end
223
219
 
224
220
  # Makes a DELETE request to this URI. This is a convenience API
@@ -238,7 +234,6 @@ module Wrest #:nodoc:
238
234
  # This implementation of asynchronous delete is currently in alpha. Hence, it should not be used in production.
239
235
  def delete_async(parameters = {}, headers = {}, &block)
240
236
  @asynchronous_backend.execute(build_delete(parameters, headers, &block))
241
- nil
242
237
  end
243
238
 
244
239
  # Makes an OPTIONS request to this URI. This is a convenience API
data/lib/wrest/version.rb CHANGED
@@ -8,5 +8,5 @@
8
8
  # See the License for the specific language governing permissions and limitations under the License.
9
9
 
10
10
  module Wrest
11
- VERSION = "1.4.7"
11
+ VERSION = "1.5.0"
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.7
4
+ version: 1.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,12 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-08-19 00:00:00.000000000 +05:30
14
- default_executable:
13
+ date: 2011-12-09 00:00:00.000000000Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: rubyforge
18
- requirement: &2168950960 !ruby/object:Gem::Requirement
17
+ requirement: &70190054366140 !ruby/object:Gem::Requirement
19
18
  none: false
20
19
  requirements:
21
20
  - - ! '>='
@@ -23,10 +22,10 @@ dependencies:
23
22
  version: '0'
24
23
  type: :development
25
24
  prerelease: false
26
- version_requirements: *2168950960
25
+ version_requirements: *70190054366140
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: rspec
29
- requirement: &2168950380 !ruby/object:Gem::Requirement
28
+ requirement: &70190054364680 !ruby/object:Gem::Requirement
30
29
  none: false
31
30
  requirements:
32
31
  - - ~>
@@ -34,10 +33,10 @@ dependencies:
34
33
  version: '2.6'
35
34
  type: :development
36
35
  prerelease: false
37
- version_requirements: *2168950380
36
+ version_requirements: *70190054364680
38
37
  - !ruby/object:Gem::Dependency
39
38
  name: sinatra
40
- requirement: &2168949860 !ruby/object:Gem::Requirement
39
+ requirement: &70190054363560 !ruby/object:Gem::Requirement
41
40
  none: false
42
41
  requirements:
43
42
  - - ~>
@@ -45,10 +44,10 @@ dependencies:
45
44
  version: 1.0.0
46
45
  type: :development
47
46
  prerelease: false
48
- version_requirements: *2168949860
47
+ version_requirements: *70190054363560
49
48
  - !ruby/object:Gem::Dependency
50
49
  name: metric_fu
51
- requirement: &2168949420 !ruby/object:Gem::Requirement
50
+ requirement: &70190054362680 !ruby/object:Gem::Requirement
52
51
  none: false
53
52
  requirements:
54
53
  - - ! '>='
@@ -56,10 +55,10 @@ dependencies:
56
55
  version: '0'
57
56
  type: :development
58
57
  prerelease: false
59
- version_requirements: *2168949420
58
+ version_requirements: *70190054362680
60
59
  - !ruby/object:Gem::Dependency
61
60
  name: activesupport
62
- requirement: &2168948820 !ruby/object:Gem::Requirement
61
+ requirement: &70190054361180 !ruby/object:Gem::Requirement
63
62
  none: false
64
63
  requirements:
65
64
  - - ~>
@@ -67,10 +66,10 @@ dependencies:
67
66
  version: '3'
68
67
  type: :runtime
69
68
  prerelease: false
70
- version_requirements: *2168948820
69
+ version_requirements: *70190054361180
71
70
  - !ruby/object:Gem::Dependency
72
71
  name: builder
73
- requirement: &2168948260 !ruby/object:Gem::Requirement
72
+ requirement: &70190054359580 !ruby/object:Gem::Requirement
74
73
  none: false
75
74
  requirements:
76
75
  - - ! '>'
@@ -78,10 +77,10 @@ dependencies:
78
77
  version: '2.0'
79
78
  type: :runtime
80
79
  prerelease: false
81
- version_requirements: *2168948260
80
+ version_requirements: *70190054359580
82
81
  - !ruby/object:Gem::Dependency
83
82
  name: multi_json
84
- requirement: &2168947660 !ruby/object:Gem::Requirement
83
+ requirement: &70190054358640 !ruby/object:Gem::Requirement
85
84
  none: false
86
85
  requirements:
87
86
  - - ~>
@@ -89,7 +88,7 @@ dependencies:
89
88
  version: '1.0'
90
89
  type: :runtime
91
90
  prerelease: false
92
- version_requirements: *2168947660
91
+ version_requirements: *70190054358640
93
92
  description: Wrest is a fluent, easy-to-use, object oriented Ruby HTTP/REST client
94
93
  library with support for RFC2616 HTTP caching, multiple HTTP backends and async
95
94
  calls using EventMachine. It runs on CRuby, JRuby and Rubinius.
@@ -101,10 +100,9 @@ extensions: []
101
100
  extra_rdoc_files:
102
101
  - README.rdoc
103
102
  files:
103
+ - bin/rdoc
104
104
  - bin/wrest
105
- - bin/wrest.compiled.rbc
106
105
  - bin/wrest_shell.rb
107
- - bin/wrest_shell.rbc
108
106
  - lib/wrest/async_request/event_machine_backend.rb
109
107
  - lib/wrest/async_request/thread_backend.rb
110
108
  - lib/wrest/async_request.rb
@@ -122,6 +120,7 @@ files:
122
120
  - lib/wrest/components/mutators.rb
123
121
  - lib/wrest/components/translators/content_types.rb
124
122
  - lib/wrest/components/translators/json.rb
123
+ - lib/wrest/components/translators/txt.rb
125
124
  - lib/wrest/components/translators/xml.rb
126
125
  - lib/wrest/components/translators.rb
127
126
  - lib/wrest/components.rb
@@ -181,7 +180,6 @@ files:
181
180
  - README.rdoc
182
181
  - CHANGELOG
183
182
  - LICENCE
184
- has_rdoc: true
185
183
  homepage: http://c42.in/open_source
186
184
  licenses: []
187
185
  post_install_message:
@@ -195,6 +193,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
195
193
  - - ! '>='
196
194
  - !ruby/object:Gem::Version
197
195
  version: '0'
196
+ segments:
197
+ - 0
198
+ hash: -4060002547285215621
198
199
  required_rubygems_version: !ruby/object:Gem::Requirement
199
200
  none: false
200
201
  requirements:
@@ -208,7 +209,7 @@ requirements:
208
209
  (and should be unneccessary) on jruby.
209
210
  - To use eventmachine as a parallel backend, install the 'eventmachine' gem.
210
211
  rubyforge_project: wrest
211
- rubygems_version: 1.6.2
212
+ rubygems_version: 1.8.10
212
213
  signing_key:
213
214
  specification_version: 3
214
215
  summary: Wrest is a fluent, object oriented HTTP client library for 1.8, 1.9, JRuby
@@ -1,78 +0,0 @@
1
- !RBIX
2
- 0
3
- x
4
- M
5
- 1
6
- n
7
- n
8
- x
9
- 10
10
- __script__
11
- i
12
- 23
13
- 5
14
- 45
15
- 0
16
- 1
17
- 65
18
- 49
19
- 2
20
- 0
21
- 49
22
- 3
23
- 1
24
- 7
25
- 4
26
- 64
27
- 81
28
- 5
29
- 47
30
- 49
31
- 6
32
- 1
33
- 15
34
- 2
35
- 11
36
- I
37
- 3
38
- I
39
- 0
40
- I
41
- 0
42
- I
43
- 0
44
- n
45
- p
46
- 7
47
- x
48
- 4
49
- File
50
- n
51
- x
52
- 11
53
- active_path
54
- x
55
- 7
56
- dirname
57
- s
58
- 15
59
- /wrest_shell.rb
60
- x
61
- 1
62
- +
63
- x
64
- 4
65
- load
66
- p
67
- 3
68
- I
69
- 0
70
- I
71
- 3
72
- I
73
- 17
74
- x
75
- 32
76
- /Users/sidu/Work/wrest/bin/wrest
77
- p
78
- 0
data/bin/wrest_shell.rbc DELETED
@@ -1,642 +0,0 @@
1
- !RBIX
2
- 0
3
- x
4
- M
5
- 1
6
- n
7
- n
8
- x
9
- 10
10
- __script__
11
- i
12
- 233
13
- 5
14
- 7
15
- 0
16
- 45
17
- 1
18
- 2
19
- 47
20
- 49
21
- 3
22
- 0
23
- 7
24
- 4
25
- 45
26
- 5
27
- 6
28
- 47
29
- 49
30
- 3
31
- 0
32
- 7
33
- 4
34
- 45
35
- 7
36
- 8
37
- 47
38
- 49
39
- 3
40
- 0
41
- 63
42
- 6
43
- 47
44
- 49
45
- 9
46
- 1
47
- 15
48
- 45
49
- 10
50
- 11
51
- 65
52
- 49
53
- 12
54
- 0
55
- 49
56
- 13
57
- 1
58
- 47
59
- 49
60
- 3
61
- 0
62
- 7
63
- 14
64
- 63
65
- 2
66
- 19
67
- 0
68
- 15
69
- 45
70
- 10
71
- 15
72
- 65
73
- 49
74
- 12
75
- 0
76
- 49
77
- 13
78
- 1
79
- 47
80
- 49
81
- 3
82
- 0
83
- 7
84
- 16
85
- 63
86
- 2
87
- 19
88
- 1
89
- 15
90
- 45
91
- 7
92
- 17
93
- 7
94
- 18
95
- 13
96
- 70
97
- 9
98
- 98
99
- 15
100
- 44
101
- 43
102
- 19
103
- 7
104
- 20
105
- 78
106
- 49
107
- 21
108
- 2
109
- 6
110
- 18
111
- 49
112
- 22
113
- 1
114
- 9
115
- 108
116
- 7
117
- 23
118
- 64
119
- 8
120
- 111
121
- 7
122
- 24
123
- 64
124
- 19
125
- 2
126
- 15
127
- 5
128
- 7
129
- 25
130
- 64
131
- 47
132
- 49
133
- 26
134
- 1
135
- 15
136
- 44
137
- 43
138
- 27
139
- 79
140
- 49
141
- 28
142
- 1
143
- 13
144
- 7
145
- 29
146
- 20
147
- 2
148
- 49
149
- 30
150
- 2
151
- 15
152
- 19
153
- 3
154
- 15
155
- 45
156
- 31
157
- 32
158
- 56
159
- 33
160
- 50
161
- 21
162
- 0
163
- 15
164
- 7
165
- 34
166
- 64
167
- 19
168
- 4
169
- 15
170
- 20
171
- 4
172
- 7
173
- 35
174
- 20
175
- 0
176
- 47
177
- 49
178
- 3
179
- 0
180
- 63
181
- 2
182
- 49
183
- 36
184
- 1
185
- 15
186
- 5
187
- 20
188
- 1
189
- 47
190
- 49
191
- 26
192
- 1
193
- 15
194
- 5
195
- 7
196
- 37
197
- 45
198
- 38
199
- 39
200
- 43
201
- 40
202
- 43
203
- 41
204
- 47
205
- 49
206
- 3
207
- 0
208
- 63
209
- 2
210
- 47
211
- 49
212
- 9
213
- 1
214
- 15
215
- 5
216
- 20
217
- 3
218
- 7
219
- 29
220
- 49
221
- 42
222
- 1
223
- 47
224
- 49
225
- 3
226
- 0
227
- 7
228
- 43
229
- 20
230
- 4
231
- 47
232
- 49
233
- 3
234
- 0
235
- 7
236
- 44
237
- 63
238
- 4
239
- 47
240
- 49
241
- 45
242
- 1
243
- 15
244
- 2
245
- 11
246
- I
247
- c
248
- I
249
- 5
250
- I
251
- 0
252
- I
253
- 0
254
- n
255
- p
256
- 46
257
- s
258
- 5
259
- Ruby
260
- x
261
- 12
262
- RUBY_VERSION
263
- n
264
- x
265
- 4
266
- to_s
267
- s
268
- 2
269
- ,
270
- x
271
- 17
272
- RUBY_RELEASE_DATE
273
- n
274
- x
275
- 13
276
- RUBY_PLATFORM
277
- n
278
- x
279
- 4
280
- puts
281
- x
282
- 4
283
- File
284
- n
285
- x
286
- 11
287
- active_path
288
- x
289
- 7
290
- dirname
291
- s
292
- 16
293
- /../lib/wrest.rb
294
- n
295
- s
296
- 24
297
- /../lib/wrest/version.rb
298
- n
299
- n
300
- x
301
- 6
302
- Regexp
303
- s
304
- 15
305
- (:?mswin|mingw)
306
- x
307
- 3
308
- new
309
- x
310
- 2
311
- =~
312
- s
313
- 7
314
- irb.bat
315
- s
316
- 3
317
- irb
318
- s
319
- 8
320
- optparse
321
- x
322
- 7
323
- require
324
- x
325
- 4
326
- Hash
327
- x
328
- 16
329
- new_from_literal
330
- x
331
- 3
332
- irb
333
- x
334
- 3
335
- []=
336
- x
337
- 12
338
- OptionParser
339
- n
340
- M
341
- 1
342
- p
343
- 2
344
- x
345
- 9
346
- for_block
347
- t
348
- n
349
- x
350
- 9
351
- __block__
352
- i
353
- 50
354
- 57
355
- 19
356
- 0
357
- 15
358
- 20
359
- 0
360
- 7
361
- 0
362
- 64
363
- 13
364
- 18
365
- 2
366
- 49
367
- 1
368
- 1
369
- 15
370
- 15
371
- 20
372
- 0
373
- 7
374
- 2
375
- 21
376
- 1
377
- 2
378
- 47
379
- 49
380
- 3
381
- 0
382
- 7
383
- 4
384
- 63
385
- 3
386
- 7
387
- 5
388
- 64
389
- 56
390
- 6
391
- 50
392
- 7
393
- 2
394
- 15
395
- 20
396
- 0
397
- 45
398
- 8
399
- 9
400
- 49
401
- 10
402
- 1
403
- 11
404
- I
405
- 6
406
- I
407
- 1
408
- I
409
- 1
410
- I
411
- 1
412
- n
413
- p
414
- 11
415
- s
416
- 24
417
- Usage: console [options]
418
- x
419
- 7
420
- banner=
421
- s
422
- 7
423
- --irb=[
424
- x
425
- 4
426
- to_s
427
- s
428
- 1
429
- ]
430
- s
431
- 23
432
- Invoke a different irb.
433
- M
434
- 1
435
- p
436
- 2
437
- x
438
- 9
439
- for_block
440
- t
441
- n
442
- x
443
- 9
444
- __block__
445
- i
446
- 19
447
- 57
448
- 19
449
- 0
450
- 15
451
- 21
452
- 2
453
- 3
454
- 7
455
- 0
456
- 20
457
- 0
458
- 13
459
- 18
460
- 3
461
- 49
462
- 1
463
- 2
464
- 15
465
- 11
466
- I
467
- 6
468
- I
469
- 1
470
- I
471
- 1
472
- I
473
- 1
474
- n
475
- p
476
- 2
477
- x
478
- 3
479
- irb
480
- x
481
- 3
482
- []=
483
- p
484
- 3
485
- I
486
- 0
487
- I
488
- c
489
- I
490
- 13
491
- x
492
- 41
493
- /Users/sidu/Work/wrest/bin/wrest_shell.rb
494
- p
495
- 1
496
- x
497
- 1
498
- v
499
- x
500
- 2
501
- on
502
- x
503
- 4
504
- ARGV
505
- n
506
- x
507
- 6
508
- parse!
509
- p
510
- 9
511
- I
512
- 0
513
- I
514
- a
515
- I
516
- 4
517
- I
518
- b
519
- I
520
- 11
521
- I
522
- c
523
- I
524
- 29
525
- I
526
- d
527
- I
528
- 32
529
- x
530
- 41
531
- /Users/sidu/Work/wrest/bin/wrest_shell.rb
532
- p
533
- 1
534
- x
535
- 3
536
- opt
537
- s
538
- 18
539
- -r irb/completion
540
- s
541
- 4
542
- -r
543
- x
544
- 2
545
- <<
546
- s
547
- 14
548
- Loading Wrest
549
- x
550
- 5
551
- Wrest
552
- n
553
- x
554
- 7
555
- VERSION
556
- x
557
- 6
558
- STRING
559
- x
560
- 2
561
- []
562
- s
563
- 1
564
-
565
- s
566
- 16
567
- --simple-prompt
568
- x
569
- 4
570
- exec
571
- p
572
- 25
573
- I
574
- 0
575
- I
576
- 1
577
- I
578
- 23
579
- I
580
- 3
581
- I
582
- 38
583
- I
584
- 4
585
- I
586
- 4d
587
- I
588
- 6
589
- I
590
- 72
591
- I
592
- 8
593
- I
594
- 7b
595
- I
596
- 9
597
- I
598
- 8e
599
- I
600
- a
601
- I
602
- 97
603
- I
604
- 10
605
- I
606
- 9d
607
- I
608
- 11
609
- I
610
- ad
611
- I
612
- 13
613
- I
614
- b5
615
- I
616
- 14
617
- I
618
- ca
619
- I
620
- 15
621
- I
622
- e9
623
- x
624
- 41
625
- /Users/sidu/Work/wrest/bin/wrest_shell.rb
626
- p
627
- 5
628
- x
629
- 11
630
- entry_point
631
- x
632
- 7
633
- version
634
- x
635
- 3
636
- irb
637
- x
638
- 7
639
- options
640
- x
641
- 4
642
- libs