Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 75 lines (63 sloc) 2.598 kb
5416fe8 added licensing
Alejandro Crosa authored
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
16 require 'rubygems'
6a39fa0 Replace deprecated rubygems/gempackagetask with package_task.
Liam Stewart authored
17 require 'rubygems/package_task'
742efd7 Initial import
Alejandro Crosa authored
18 require 'rubygems/specification'
19 require 'date'
77b3c8d update to rspec 2.x
Stefan Mees authored
20 require 'rspec/core/rake_task'
742efd7 Initial import
Alejandro Crosa authored
21
22 spec = Gem::Specification.new do |s|
add7e24 use canonical name for gem
Ale authored
23 s.name = %q{kafka-rb}
7bd4bf3 bumped version for bugfixes
Alejandro Crosa authored
24 s.version = "0.0.11"
13dad52 @tlossen automatic reconnect on socket errors
tlossen authored
25
26 s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
e71ebab added contributor
Alejandro Crosa authored
27 s.authors = ["Alejandro Crosa", "Stefan Mees", "Tim Lossen", "Liam Stewart"]
13dad52 @tlossen automatic reconnect on socket errors
tlossen authored
28 s.autorequire = %q{kafka-rb}
29 s.date = Time.now.strftime("%Y-%m-%d")
30 s.description = %q{kafka-rb allows you to produce and consume messages using the Kafka distributed publish/subscribe messaging service.}
742efd7 Initial import
Alejandro Crosa authored
31 s.extra_rdoc_files = ["LICENSE"]
b14b058 Specs specified in s.test_files rather than s.files.
Liam Stewart authored
32 s.files = ["LICENSE", "README.md", "Rakefile"] + Dir.glob("lib/**/*.rb")
33 s.test_files = Dir.glob("spec/**/*.rb")
984161d removing wooga specifics
Ale authored
34 s.homepage = %q{http://github.com/acrosa/kafka-rb}
13dad52 @tlossen automatic reconnect on socket errors
tlossen authored
35 s.require_paths = ["lib"]
36 s.summary = %q{A Ruby client for the Kafka distributed publish/subscribe messaging service}
742efd7 Initial import
Alejandro Crosa authored
37
13dad52 @tlossen automatic reconnect on socket errors
tlossen authored
38 if s.respond_to? :specification_version then
39 current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
40 s.specification_version = 3
742efd7 Initial import
Alejandro Crosa authored
41
13dad52 @tlossen automatic reconnect on socket errors
tlossen authored
42 if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
43 s.add_development_dependency(%q<rspec>, [">= 0"])
44 else
45 s.add_dependency(%q<rspec>, [">= 0"])
46 end
47 else
48 s.add_dependency(%q<rspec>, [">= 0"])
49 end
742efd7 Initial import
Alejandro Crosa authored
50 end
51
e71ebab added contributor
Alejandro Crosa authored
52 Gem::PackageTask.new(spec) do |pkg|
742efd7 Initial import
Alejandro Crosa authored
53 pkg.gem_spec = spec
54 end
55
56 desc "install the gem locally"
57 task :install => [:package] do
5416fe8 added licensing
Alejandro Crosa authored
58 sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
742efd7 Initial import
Alejandro Crosa authored
59 end
60
61 desc "Run all examples with RCov"
77b3c8d update to rspec 2.x
Stefan Mees authored
62 RSpec::Core::RakeTask.new(:rcov) do |t|
63 t.pattern = FileList['spec/**/*_spec.rb']
742efd7 Initial import
Alejandro Crosa authored
64 t.rcov = true
65 end
13dad52 @tlossen automatic reconnect on socket errors
tlossen authored
66
67 desc "Run specs"
68 RSpec::Core::RakeTask.new do |t|
69 t.pattern = FileList['spec/**/*_spec.rb']
70 t.rspec_opts = %w(-fs --color)
71 end
72
73 task :default => :spec
74
Something went wrong with that request. Please try again.