mirror of
https://github.com/rspec/rspec-metagem.git
synced 2022-11-09 12:09:29 -05:00
Adding in version constant
This commit is contained in:
parent
08b4853a81
commit
704c46c84c
4 changed files with 40 additions and 20 deletions
34
Rakefile
34
Rakefile
|
@ -3,21 +3,25 @@ require 'rake'
|
|||
require 'fileutils'
|
||||
require 'pathname'
|
||||
|
||||
$:.unshift File.expand_path(File.join(File.dirname(__FILE__),'lib'))
|
||||
|
||||
require 'rspec/meta/version'
|
||||
|
||||
begin
|
||||
# require 'jeweler'
|
||||
# Jeweler::Tasks.new do |gem|
|
||||
# gem.name = "rspec-meta"
|
||||
# gem.summary = "pulls in the other rspec gems"
|
||||
# gem.email = "dchelimsky@gmail.com;chad.humphries@gmail.com"
|
||||
# gem.homepage = "http://github.com/rspec/meta"
|
||||
# gem.authors = ["David Chelimsky", "Chad Humphries"]
|
||||
# gem.add_dependency "rspec-core", ">= 2.0.0.a1"
|
||||
# gem.add_dependency "rspec-expectations", ">= 2.0.0.a1"
|
||||
# gem.add_dependency "rspec-mocks", ">= 2.0.0.a1"
|
||||
# gem.add_development_dependency 'git'
|
||||
require 'jeweler'
|
||||
Jeweler::Tasks.new do |gem|
|
||||
gem.name = "rspec-meta"
|
||||
gem.summary = "pulls in the other rspec gems"
|
||||
gem.email = "dchelimsky@gmail.com;chad.humphries@gmail.com"
|
||||
gem.homepage = "http://github.com/rspec/meta"
|
||||
gem.authors = ["David Chelimsky", "Chad Humphries"]
|
||||
gem.version = Rspec::Meta::Version::STRING
|
||||
gem.add_dependency "rspec-core", ">= #{Rspec::Meta::Version::STRING}"
|
||||
gem.add_dependency "rspec-expectations", ">= #{Rspec::Meta::Version::STRING}"
|
||||
gem.add_dependency "rspec-mocks", ">= #{Rspec::Meta::Version::STRING}"
|
||||
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
||||
# end
|
||||
# Jeweler::GemcutterTasks.new
|
||||
end
|
||||
Jeweler::GemcutterTasks.new
|
||||
rescue LoadError
|
||||
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
||||
end
|
||||
|
@ -26,6 +30,4 @@ task :clobber do
|
|||
rm_rf 'pkg'
|
||||
end
|
||||
|
||||
task :default do
|
||||
|
||||
end
|
||||
task :default
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
require 'rspec/core'
|
||||
require 'rspec/expectations'
|
||||
require 'rspec/mocks'
|
||||
require 'rspec/meta/version'
|
||||
|
|
16
lib/rspec/meta/version.rb
Normal file
16
lib/rspec/meta/version.rb
Normal file
|
@ -0,0 +1,16 @@
|
|||
module Rspec # :nodoc:
|
||||
module Meta # :nodoc:
|
||||
module Version # :nodoc:
|
||||
unless defined?(MAJOR)
|
||||
MAJOR = 2
|
||||
MINOR = 0
|
||||
TINY = 0
|
||||
PRE = 'a1'
|
||||
|
||||
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
|
||||
|
||||
SUMMARY = "rspec-expectations #{STRING}"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,15 +1,15 @@
|
|||
# Generated by jeweler
|
||||
# DO NOT EDIT THIS FILE
|
||||
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
||||
# DO NOT EDIT THIS FILE DIRECTLY
|
||||
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
||||
# -*- encoding: utf-8 -*-
|
||||
|
||||
Gem::Specification.new do |s|
|
||||
s.name = %q{rspec-meta}
|
||||
s.version = "2.0.0.a1"
|
||||
|
||||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
||||
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
||||
s.authors = ["David Chelimsky", "Chad Humphries"]
|
||||
s.date = %q{2009-09-16}
|
||||
s.date = %q{2009-11-07}
|
||||
s.email = %q{dchelimsky@gmail.com;chad.humphries@gmail.com}
|
||||
s.extra_rdoc_files = [
|
||||
"README.markdown"
|
||||
|
@ -50,3 +50,4 @@ Gem::Specification.new do |s|
|
|||
s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.a1"])
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue