-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
48 lines (40 loc) · 1.33 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
require 'rubygems'
require 'rake/gempackagetask'
gemspec = Gem::Specification.new do |gem|
gem.name = "streamingjsonparser"
gem.summary = %Q{This gem accepts chunked JSON input and returns nicely segmented JSON.}
gem.description = %Q{This gem accepts chunked JSON input and returns nicely segmented JSON. Streaming JSON is commonly sent as chunked encoded HTTP.}
gem.version = File.read('VERSION').strip
gem.email = "[email protected]"
gem.homepage = "http://statewidesoftware.com"
gem.authors = ["Joshua Harding"]
gem.add_development_dependency "rspec", "~>2.0.0"
files = FileList["**/*"]
files.exclude /\.DS_Store/
files.exclude /\#/
files.exclude /~/
files.exclude /\.swp/
files.exclude '**/._*'
files.exclude '**/*.orig'
files.exclude '**/*.rej'
files.exclude /^pkg/
files.exclude '**/*.o'
files.exclude '**/*.bundle'
files.exclude '**/*.a'
files.exclude '**/*.so'
files.exclude 'streamingjsonparser.gemspec'
gem.files = files.to_a
gem.test_files = FileList["spec/**/*.rb"].to_a
end
# Gem packaging tasks
Rake::GemPackageTask.new(gemspec) do |pkg|
pkg.need_zip = false
pkg.need_tar = false
end
task :gem => :gemspec
desc %{Build the gemspec file.}
task :gemspec do
gemspec.validate
File.open("#{gemspec.name}.gemspec", 'w'){|f| f.write gemspec.to_ruby }
end
task :default => :gemspec