rest-client 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rest-client might be problematic. Click here for more details.
- data/Rakefile +21 -48
- data/VERSION +1 -0
- metadata +20 -14
data/Rakefile
CHANGED
@@ -1,4 +1,24 @@
|
|
1
1
|
require 'rake'
|
2
|
+
|
3
|
+
require 'jeweler'
|
4
|
+
|
5
|
+
Jeweler::Tasks.new do |s|
|
6
|
+
s.name = "rest-client"
|
7
|
+
s.description = "A simple REST client for Ruby, inspired by the Sinatra microframework style of specifying actions: get, put, post, delete."
|
8
|
+
s.summary = "Simple REST client for Ruby, inspired by microframework syntax for specifying actions."
|
9
|
+
s.author = "Adam Wiggins"
|
10
|
+
s.email = "adam@heroku.com"
|
11
|
+
s.homepage = "http://rest-client.heroku.com/"
|
12
|
+
s.rubyforge_project = "rest-client"
|
13
|
+
s.has_rdoc = true
|
14
|
+
s.files = FileList["[A-Z]*", "{bin,lib,spec}/**/*"]
|
15
|
+
s.executables = %w(restclient)
|
16
|
+
end
|
17
|
+
|
18
|
+
Jeweler::RubyforgeTasks.new
|
19
|
+
|
20
|
+
############################
|
21
|
+
|
2
22
|
require 'spec/rake/spectask'
|
3
23
|
|
4
24
|
desc "Run all specs"
|
@@ -22,54 +42,9 @@ end
|
|
22
42
|
|
23
43
|
task :default => :spec
|
24
44
|
|
25
|
-
|
45
|
+
############################
|
26
46
|
|
27
|
-
require 'rake'
|
28
|
-
require 'rake/testtask'
|
29
|
-
require 'rake/clean'
|
30
|
-
require 'rake/gempackagetask'
|
31
47
|
require 'rake/rdoctask'
|
32
|
-
require 'fileutils'
|
33
|
-
|
34
|
-
version = "1.0.1"
|
35
|
-
name = "rest-client"
|
36
|
-
|
37
|
-
spec = Gem::Specification.new do |s|
|
38
|
-
s.name = name
|
39
|
-
s.version = version
|
40
|
-
s.summary = "Simple REST client for Ruby, inspired by microframework syntax for specifying actions."
|
41
|
-
s.description = "A simple REST client for Ruby, inspired by the Sinatra microframework style of specifying actions: get, put, post, delete."
|
42
|
-
s.author = "Adam Wiggins"
|
43
|
-
s.email = "adam@heroku.com"
|
44
|
-
s.homepage = "http://rest-client.heroku.com/"
|
45
|
-
s.rubyforge_project = "rest-client"
|
46
|
-
|
47
|
-
s.platform = Gem::Platform::RUBY
|
48
|
-
s.has_rdoc = true
|
49
|
-
|
50
|
-
s.files = %w(Rakefile README.rdoc) + Dir.glob("{lib,spec}/**/*")
|
51
|
-
s.executables = ['restclient']
|
52
|
-
|
53
|
-
s.require_path = "lib"
|
54
|
-
end
|
55
|
-
|
56
|
-
Rake::GemPackageTask.new(spec) do |p|
|
57
|
-
p.need_tar = true if RUBY_PLATFORM !~ /mswin/
|
58
|
-
end
|
59
|
-
|
60
|
-
task :install => [ :package ] do
|
61
|
-
sh %{sudo gem install pkg/#{name}-#{version}.gem}
|
62
|
-
end
|
63
|
-
|
64
|
-
task :uninstall => [ :clean ] do
|
65
|
-
sh %{sudo gem uninstall #{name}}
|
66
|
-
end
|
67
|
-
|
68
|
-
Rake::TestTask.new do |t|
|
69
|
-
t.libs << "spec"
|
70
|
-
t.test_files = FileList['spec/*_spec.rb']
|
71
|
-
t.verbose = true
|
72
|
-
end
|
73
48
|
|
74
49
|
Rake::RDocTask.new do |t|
|
75
50
|
t.rdoc_dir = 'rdoc'
|
@@ -81,5 +56,3 @@ Rake::RDocTask.new do |t|
|
|
81
56
|
t.rdoc_files.include('lib/restclient/*.rb')
|
82
57
|
end
|
83
58
|
|
84
|
-
CLEAN.include [ 'pkg', '*.gem', '.config' ]
|
85
|
-
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.2
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rest-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Wiggins
|
@@ -9,8 +9,8 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-06-
|
13
|
-
default_executable:
|
12
|
+
date: 2009-06-20 00:00:00 -07:00
|
13
|
+
default_executable: restclient
|
14
14
|
dependencies: []
|
15
15
|
|
16
16
|
description: "A simple REST client for Ruby, inspired by the Sinatra microframework style of specifying actions: get, put, post, delete."
|
@@ -19,24 +19,23 @@ executables:
|
|
19
19
|
- restclient
|
20
20
|
extensions: []
|
21
21
|
|
22
|
-
extra_rdoc_files:
|
23
|
-
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README.rdoc
|
24
24
|
files:
|
25
|
-
- Rakefile
|
26
25
|
- README.rdoc
|
26
|
+
- Rakefile
|
27
|
+
- VERSION
|
28
|
+
- bin/restclient
|
27
29
|
- lib/rest_client.rb
|
28
|
-
- lib/restclient
|
30
|
+
- lib/restclient.rb
|
29
31
|
- lib/restclient/exceptions.rb
|
30
|
-
- lib/restclient/mixin
|
31
32
|
- lib/restclient/mixin/response.rb
|
32
33
|
- lib/restclient/raw_response.rb
|
33
34
|
- lib/restclient/request.rb
|
34
35
|
- lib/restclient/resource.rb
|
35
36
|
- lib/restclient/response.rb
|
36
|
-
- lib/restclient.rb
|
37
37
|
- spec/base.rb
|
38
38
|
- spec/exceptions_spec.rb
|
39
|
-
- spec/mixin
|
40
39
|
- spec/mixin/response_spec.rb
|
41
40
|
- spec/raw_response_spec.rb
|
42
41
|
- spec/request_spec.rb
|
@@ -46,8 +45,8 @@ files:
|
|
46
45
|
has_rdoc: true
|
47
46
|
homepage: http://rest-client.heroku.com/
|
48
47
|
post_install_message:
|
49
|
-
rdoc_options:
|
50
|
-
|
48
|
+
rdoc_options:
|
49
|
+
- --charset=UTF-8
|
51
50
|
require_paths:
|
52
51
|
- lib
|
53
52
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -69,5 +68,12 @@ rubygems_version: 1.3.1
|
|
69
68
|
signing_key:
|
70
69
|
specification_version: 2
|
71
70
|
summary: Simple REST client for Ruby, inspired by microframework syntax for specifying actions.
|
72
|
-
test_files:
|
73
|
-
|
71
|
+
test_files:
|
72
|
+
- spec/base.rb
|
73
|
+
- spec/exceptions_spec.rb
|
74
|
+
- spec/mixin/response_spec.rb
|
75
|
+
- spec/raw_response_spec.rb
|
76
|
+
- spec/request_spec.rb
|
77
|
+
- spec/resource_spec.rb
|
78
|
+
- spec/response_spec.rb
|
79
|
+
- spec/restclient_spec.rb
|