~ubuntu-branches/ubuntu/utopic/ruby-mixlib-authentication/utopic

« back to all changes in this revision

Viewing changes to Rakefile

  • Committer: Package Import Robot
  • Author(s): Stefano Rivera
  • Date: 2014-01-15 17:38:37 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140115173837-lwkbzmxtp6sndtfl
Tags: 1.3.0-1
* Team upload.
* New upstream release.
* Drop patches, superseded upstream.
* Drop transitional libmixlib-authentication-ruby packages. Not needed
  post-wheezy.
* Bump Stardards-Version to 3.9.5.
  - Bump debhelper dependency to 8.1 for build-{arch,indep} support.
* Update debian/copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
require 'rake/gempackagetask'
3
3
require 'rubygems/specification'
4
4
require 'date'
5
 
require 'spec/rake/spectask'
 
5
require 'rspec/core/rake_task'
6
6
 
7
7
GEM = "mixlib-authentication"
8
 
GEM_VERSION = "1.1.4"
 
8
GEM_VERSION = "1.2.1"
9
9
AUTHOR = "Opscode, Inc."
10
10
EMAIL = "info@opscode.com"
11
11
HOMEPAGE = "http://www.opscode.com"
12
12
SUMMARY = "Mixes in simple per-request authentication"
13
13
 
14
 
spec = Gem::Specification.new do |s|
15
 
  s.name = GEM
16
 
  s.version = GEM_VERSION
17
 
  s.platform = Gem::Platform::RUBY
18
 
  s.has_rdoc = true
19
 
  s.extra_rdoc_files = ["README.rdoc", "LICENSE", 'NOTICE']
20
 
  s.summary = SUMMARY
21
 
  s.description = s.summary
22
 
  s.author = AUTHOR
23
 
  s.email = EMAIL
24
 
  s.homepage = HOMEPAGE
25
 
  
26
 
  # Uncomment this to add a dependency
27
 
  s.add_dependency "mixlib-log"
28
 
  
29
 
  s.require_path = 'lib'
30
 
  s.autorequire = GEM
31
 
  s.files = %w(LICENSE README.rdoc Rakefile NOTICE) + Dir.glob("{lib,spec,features}/**/*")
32
 
end
33
 
 
34
14
task :default => :spec
35
15
 
36
16
desc "Run specs"
37
 
Spec::Rake::SpecTask.new do |t|
38
 
  t.spec_files = FileList['spec/**/*_spec.rb']
39
 
  t.spec_opts = %w(-fs --color)
 
17
RSpec::Core::RakeTask.new do |t|
 
18
  t.pattern = 'spec/**/*_spec.rb'
 
19
  t.rspec_opts = %w(-fs --color)
40
20
end
41
21
 
42
 
Rake::GemPackageTask.new(spec) do |pkg|
43
 
  pkg.gem_spec = spec
 
22
gem_spec = eval(File.read("mixlib-authentication.gemspec"))
 
23
 
 
24
Rake::GemPackageTask.new(gem_spec) do |pkg|
 
25
  pkg.gem_spec = gem_spec
44
26
end
45
27
 
46
28
desc "install the gem locally"