Skip to content
Newer
Older
100644 41 lines (33 sloc) 1.27 KB
5416fe8 added licensing
Alejandro Crosa authored Oct 26, 2011
1 # Licensed to the Apache Software Foundation (ASF) under one or more
2 # contributor license agreements. See the NOTICE file distributed with
3 # this work for additional information regarding copyright ownership.
4 # The ASF licenses this file to You under the Apache License, Version 2.0
5 # (the "License"); you may not use this file except in compliance with
6 # the License. You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
742efd7 Initial import
Alejandro Crosa authored Jan 8, 2011
16 require 'rubygems'
6a39fa0 Replace deprecated rubygems/gempackagetask with package_task.
Liam Stewart authored Sep 12, 2012
17 require 'rubygems/package_task'
742efd7 Initial import
Alejandro Crosa authored Jan 8, 2011
18 require 'rubygems/specification'
19 require 'date'
77b3c8d update to rspec 2.x
Stefan Mees authored Oct 25, 2011
20 require 'rspec/core/rake_task'
742efd7 Initial import
Alejandro Crosa authored Jan 8, 2011
21
f4eda48 Added support for Snappy compression to the Consumer, and added compr…
Bob Cotton authored Sep 14, 2012
22 spec = eval(File.open("kafka-rb.gemspec", "r").read)
742efd7 Initial import
Alejandro Crosa authored Jan 8, 2011
23
e71ebab added contributor
Alejandro Crosa authored Sep 11, 2012
24 Gem::PackageTask.new(spec) do |pkg|
742efd7 Initial import
Alejandro Crosa authored Jan 8, 2011
25 pkg.gem_spec = spec
26 end
27
28 desc "install the gem locally"
29 task :install => [:package] do
5416fe8 added licensing
Alejandro Crosa authored Oct 26, 2011
30 sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
742efd7 Initial import
Alejandro Crosa authored Jan 8, 2011
31 end
32
13dad52 @tlossen automatic reconnect on socket errors
tlossen authored Dec 6, 2011
33 desc "Run specs"
34 RSpec::Core::RakeTask.new do |t|
35 t.pattern = FileList['spec/**/*_spec.rb']
36 t.rspec_opts = %w(-fs --color)
37 end
38
39 task :default => :spec
40
Something went wrong with that request. Please try again.