multipart-post 1.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/README.txt +3 -2
  2. data/Rakefile +18 -15
  3. metadata +25 -12
data/README.txt CHANGED
@@ -4,7 +4,8 @@
4
4
 
5
5
  == DESCRIPTION:
6
6
 
7
- Adds a multipart form post capability to Net::HTTP.
7
+ Adds a streamy multipart form post capability to Net::HTTP. Also
8
+ supports other methods besides POST.
8
9
 
9
10
  == FEATURES/PROBLEMS:
10
11
 
@@ -39,7 +40,7 @@ gem install multipart-post
39
40
 
40
41
  (The MIT License)
41
42
 
42
- Copyright (c) 2007-2009 Nick Sieger <nick@nicksieger.com>
43
+ Copyright (c) 2007-2010 Nick Sieger <nick@nicksieger.com>
43
44
 
44
45
  Permission is hereby granted, free of charge, to any person obtaining
45
46
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -1,21 +1,24 @@
1
1
  begin
2
- require 'rubygems'
3
- require 'hoe'
2
+ require 'rubygems'
3
+ require 'hoe'
4
+ require 'lib/multipart_post'
4
5
 
5
- require 'lib/multipart_post'
6
+ Hoe.plugin :gemcutter
7
+ hoe = Hoe.spec("multipart-post") do |p|
8
+ p.version = MultipartPost::VERSION
9
+ p.rubyforge_name = "caldersphere"
10
+ p.author = "Nick Sieger"
11
+ p.url = "http://github.com/nicksieger/multipart-post"
12
+ p.email = "nick@nicksieger.com"
13
+ p.description = "Use with Net::HTTP to do multipart form posts. IO values that have #content_type, #original_filename, and #local_path will be posted as a binary file."
14
+ p.summary = "Creates a multipart form post accessory for Net::HTTP."
15
+ end
16
+ hoe.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
6
17
 
7
- hoe = Hoe.new("multipart-post", MultipartPost::VERSION) do |p|
8
- p.rubyforge_name = "caldersphere"
9
- p.author = "Nick Sieger"
10
- p.url = "http://github.com/nicksieger/multipart-post"
11
- p.email = "nick@nicksieger.com"
12
- p.description = "Use with Net::HTTP to do multipart form posts. IO values that have #content_type, #original_filename, and #local_path will be posted as a binary file."
13
- p.summary = "Creates a multipart form post accessory for Net::HTTP."
14
- end
15
-
16
- task :gemspec do
17
- File.open("#{hoe.name}.gemspec", "w") {|f| f << hoe.spec.to_ruby }
18
- end
18
+ task :gemspec do
19
+ File.open("#{hoe.name}.gemspec", "w") {|f| f << hoe.spec.to_ruby }
20
+ end
21
+ task :package => :gemspec
19
22
  rescue LoadError
20
23
  puts "You really need Hoe installed to be able to package this gem"
21
24
  end
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multipart-post
3
3
  version: !ruby/object:Gem::Version
4
- version: "1.0"
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 1
9
+ version: 1.0.1
5
10
  platform: ruby
6
11
  authors:
7
12
  - Nick Sieger
@@ -9,19 +14,23 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-02-12 00:00:00 -06:00
17
+ date: 2010-04-27 00:00:00 -05:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
- name: hoe
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
21
+ name: rubyforge
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
23
- version: 1.8.2
24
- version:
27
+ segments:
28
+ - 2
29
+ - 0
30
+ - 4
31
+ version: 2.0.4
32
+ type: :development
33
+ version_requirements: *id001
25
34
  description: "Use with Net::HTTP to do multipart form posts. IO values that have #content_type, #original_filename, and #local_path will be posted as a binary file."
26
35
  email: nick@nicksieger.com
27
36
  executables: []
@@ -43,6 +52,8 @@ files:
43
52
  - test/net/http/post/test_multipart.rb
44
53
  has_rdoc: true
45
54
  homepage: http://github.com/nicksieger/multipart-post
55
+ licenses: []
56
+
46
57
  post_install_message:
47
58
  rdoc_options:
48
59
  - --main
@@ -53,20 +64,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
53
64
  requirements:
54
65
  - - ">="
55
66
  - !ruby/object:Gem::Version
67
+ segments:
68
+ - 0
56
69
  version: "0"
57
- version:
58
70
  required_rubygems_version: !ruby/object:Gem::Requirement
59
71
  requirements:
60
72
  - - ">="
61
73
  - !ruby/object:Gem::Version
74
+ segments:
75
+ - 0
62
76
  version: "0"
63
- version:
64
77
  requirements: []
65
78
 
66
79
  rubyforge_project: caldersphere
67
- rubygems_version: 1.3.1
80
+ rubygems_version: 1.3.6
68
81
  signing_key:
69
- specification_version: 2
82
+ specification_version: 3
70
83
  summary: Creates a multipart form post accessory for Net::HTTP.
71
84
  test_files:
72
85
  - test/net/http/post/test_multipart.rb