forked from New-Bamboo/rack-raw-upload
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrack-raw-upload.gemspec
23 lines (20 loc) · 1.09 KB
/
rack-raw-upload.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
lib = File.expand_path("../lib/rack/raw_upload.rb", __FILE__)
version = File.read(lib)[/^\s*VERSION\s*=\s*(['"])(\d\.\d\.\d+)\1/, 2] #'# gedit messing with highlighting...
Gem::Specification.new do |spec|
spec.name = 'rack-raw-upload'
spec.authors = "Pablo Brasero"
spec.email = "[email protected]"
spec.homepage = 'https://github.com/newbamboo/rack-raw-upload'
spec.summary = %{Rack Raw Upload middleware}
spec.description = %{Middleware that converts files uploaded with mimetype application/octet-stream into normal form input, so Rack applications can read these as normal, rather than as raw input.}
spec.extra_rdoc_files = %w{LICENSE README.md}
spec.rdoc_options << "--charset=UTF-8" <<
"--main" << "README.rdoc"
spec.version = version
spec.files = Dir["{lib,test}/**/*.rb"] + spec.extra_rdoc_files + %w{Gemfile Gemfile.lock}
spec.test_files = spec.files.grep(/^test\/.*test_.*\.rb$/)
spec.add_runtime_dependency 'json'
spec.add_development_dependency 'rake'
spec.add_development_dependency 'rack-test'
spec.add_development_dependency 'shoulda'
end