Commit 5adae1e8 authored by Daniel DeLeo's avatar Daniel DeLeo
Browse files

[CHEF-1211] store versions under $projectlib/version.rb

parent 09c6e842
require File.dirname(__FILE__) + '/lib/chef-server-api/version'
require 'rubygems'
require 'rake/gempackagetask'
......@@ -5,7 +7,6 @@ require 'merb-core'
require 'merb-core/tasks/merb'
GEM_NAME = "chef-server-api"
CHEF_SERVER_VERSION="0.9.0.a1"
AUTHOR = "Opscode"
EMAIL = "chef@opscode.com"
HOMEPAGE = "http://wiki.opscode.com/display/chef"
......@@ -13,7 +14,7 @@ SUMMARY = "A systems integration framework, built to bring the benefits of confi
spec = Gem::Specification.new do |s|
s.name = GEM_NAME
s.version = CHEF_SERVER_VERSION
s.version = ChefServerApi::VERSION
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.extra_rdoc_files = ["README.rdoc", "LICENSE" ]
......
module ChefServerApi
VERSION = '0.9.0.a1'
end
\ No newline at end of file
require File.dirname(__FILE__) + '/lib/chef-server-webui/version'
require 'rubygems'
require 'rake/gempackagetask'
......
module ChefServerWebui
VERSION = '0.9.0.a1'
end
\ No newline at end of file
......@@ -16,35 +16,59 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
require File.dirname(__FILE__) + '/lib/chef/solr/version'
require 'rubygems'
require 'rake'
require 'rake/gempackagetask'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "chef-solr"
gem.summary = %Q{Search indexing for Chef}
gem.email = "adam@opscode.com"
gem.homepage = "http://wiki.opscode.com/display/chef"
gem.authors = ["Adam Jacob"]
gem.add_dependency "libxml-ruby", ">=1.1.3"
gem.add_dependency "uuidtools", ">=2.0.0"
gem.add_dependency "chef", IO.read("VERSION").strip
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
gem.executables = [ 'chef-solr', 'chef-solr-indexer', 'chef-solr-rebuild' ]
gem.files = [
"README.rdoc",
"Rakefile",
"VERSION"
]
gem.files.include %w{ README.rdoc Rakefile VERSION bin/* lib/**/* solr/* spec/**/* }
end
spec = Gem::Specification.new do |gem|
gem.name = "chef-solr"
gem.version = Chef::Solr::VERSION
gem.summary = %Q{Search indexing for Chef}
gem.email = "adam@opscode.com"
gem.homepage = "http://wiki.opscode.com/display/chef"
gem.authors = ["Adam Jacob"]
gem.add_dependency "libxml-ruby", ">=1.1.3"
gem.add_dependency "uuidtools", ">=2.0.0"
gem.add_dependency "chef", Chef::Solr::VERSION
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
gem.executables = [ 'chef-solr', 'chef-solr-indexer', 'chef-solr-rebuild' ]
gem.files = [
"README.rdoc",
"Rakefile"
]
gem.files = %w{ README.rdoc Rakefile LICENSE} + Dir.glob("{bin,lib,solr,spec}/**/*")
end
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it from gemcutter with: sudo gem install gemcutter jeweler"
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
# begin
# require 'jeweler'
# Jeweler::Tasks.new do |gem|
# gem.name = "chef-solr"
# gem.summary = %Q{Search indexing for Chef}
# gem.email = "adam@opscode.com"
# gem.homepage = "http://wiki.opscode.com/display/chef"
# gem.authors = ["Adam Jacob"]
# gem.add_dependency "libxml-ruby", ">=1.1.3"
# gem.add_dependency "uuidtools", ">=2.0.0"
# gem.add_dependency "chef", Chef::Solr::VERSION
# # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
# gem.executables = [ 'chef-solr', 'chef-solr-indexer', 'chef-solr-rebuild' ]
# gem.files = [
# "README.rdoc",
# "Rakefile"
# ]
# gem.files.include %w{ README.rdoc Rakefile VERSION bin/* lib/**/* solr/* spec/**/* }
# end
#
# rescue LoadError
# puts "Jeweler (or a dependency) not available. Install it from gemcutter with: sudo gem install gemcutter jeweler"
# end
#
begin
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
......@@ -79,7 +103,7 @@ Rake::RDocTask.new do |rdoc|
config = YAML.load(File.read('VERSION.yml'))
version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
else
version = ""
version = Chef::Solr::VERSION
end
rdoc.rdoc_dir = 'rdoc'
......
class Chef
class Solr
VERSION = '0.9.0.a1'
end
end
......@@ -17,13 +17,14 @@
# limitations under the License.
#
require File.dirname(__FILE__) + '/lib/chef/version'
require 'rubygems'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require './tasks/rspec.rb'
GEM = "chef"
CHEF_VERSION = "0.9.0.a1"
AUTHOR = "Adam Jacob"
EMAIL = "adam@opscode.com"
HOMEPAGE = "http://wiki.opscode.com/display/chef"
......@@ -31,7 +32,7 @@ SUMMARY = "A systems integration framework, built to bring the benefits of confi
spec = Gem::Specification.new do |s|
s.name = GEM
s.version = CHEF_VERSION
s.version = Chef::VERSION
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.extra_rdoc_files = ["README.rdoc", "LICENSE" ]
......
......@@ -16,6 +16,8 @@
# limitations under the License.
#
require 'chef/version'
require 'extlib'
require 'chef/exceptions'
require 'chef/log'
......@@ -31,10 +33,6 @@ require 'chef/openid_registration'
require 'chef/handler'
require 'chef/handler/json_file'
class Chef
VERSION = "0.9.0.a1"
end
# Adds a Dir.glob to Ruby 1.8.5, for compat
if RUBY_VERSION < "1.8.6" || RUBY_PLATFORM =~ /mswin|mingw32|windows/
class Dir
......
#
# Author:: Daniel DeLeo (<dan@opscode.com>)
# Copyright:: Copyright (c) 2010 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
class Chef
VERSION = '0.9.0.a1'
end
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment