diff options
author | danielsdeleo <dan@opscode.com> | 2013-05-31 21:07:39 -0700 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2013-06-01 11:42:18 -0700 |
commit | 09b0e99771137b5e98587a5eee18b143de06eb6a (patch) | |
tree | a679484ee86732b41717a9117128644f4f661d2e | |
parent | 8e970347f9119769b68508e2ee4808078ae15e8c (diff) | |
download | mixlib-config-09b0e99771137b5e98587a5eee18b143de06eb6a.tar.gz |
de-jewlerize gem creation
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Rakefile | 23 | ||||
-rw-r--r-- | VERSION.yml | 5 | ||||
-rw-r--r-- | lib/mixlib/config.rb | 2 | ||||
-rw-r--r-- | lib/mixlib/config/version.rb | 25 | ||||
-rw-r--r-- | mixlib-config.gemspec | 25 |
6 files changed, 59 insertions, 22 deletions
@@ -3,4 +3,3 @@ coverage rdoc pkg -*.gemspec @@ -1,26 +1,18 @@ require 'rubygems' require 'rake' require 'yaml' +require 'rubygems/package_task' -begin - require 'jeweler' - Jeweler::Tasks.new do |gem| - gem.name = "mixlib-config" - gem.summary = "A class based config mixin, similar to the one found in Chef." - gem.email = "info@opscode.com" - gem.homepage = "http://www.opscode.com" - gem.authors = ["Opscode, Inc."] - - # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings - end -rescue LoadError - puts "Jeweler (or a dependency) not available. Install from gemcutter with: sudo gem install gemcutter jeweler" +spec = eval(File.read("mixlib-config.gemspec")) + +Gem::PackageTask.new(spec) do |pkg| + pkg.gem_spec = spec end begin require 'rspec/core/rake_task' - RSpec::Core::RakeTask.new(:spec) do |spec| - spec.pattern = 'spec/**/*_spec.rb' + RSpec::Core::RakeTask.new(:spec) do |rspec| + rspec.pattern = 'spec/**/*_spec.rb' end end @@ -49,4 +41,3 @@ end desc "Run the spec and features" task :test => [ :features, :spec ] -Jeweler::GemcutterTasks.new diff --git a/VERSION.yml b/VERSION.yml deleted file mode 100644 index c769a65..0000000 --- a/VERSION.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -:patch: 3 -:build: -:major: 1 -:minor: 1 diff --git a/lib/mixlib/config.rb b/lib/mixlib/config.rb index d1a7e7f..2b5bc1c 100644 --- a/lib/mixlib/config.rb +++ b/lib/mixlib/config.rb @@ -18,6 +18,8 @@ # limitations under the License. # +require 'mixlib/config/version' + module Mixlib module Config diff --git a/lib/mixlib/config/version.rb b/lib/mixlib/config/version.rb new file mode 100644 index 0000000..51b10f5 --- /dev/null +++ b/lib/mixlib/config/version.rb @@ -0,0 +1,25 @@ +# +# Author:: Daniel DeLeo (<dan@opscode.com>) +# Copyright:: Copyright (c) 2013 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. +# + +module Mixlib + module Config + + VERSION = "1.1.3" + + end +end diff --git a/mixlib-config.gemspec b/mixlib-config.gemspec new file mode 100644 index 0000000..1614dd6 --- /dev/null +++ b/mixlib-config.gemspec @@ -0,0 +1,25 @@ +# -*- encoding: utf-8 -*- + +$:.unshift(File.dirname(__FILE__) + '/lib') +require 'mixlib/config/version' + + +Gem::Specification.new do |s| + s.name = "mixlib-config" + s.version = Mixlib::Config::VERSION + + s.authors = ["Opscode, Inc."] + s.email = "info@opscode.com" + s.extra_rdoc_files = [ + "LICENSE", + "README.rdoc" + ] + s.files = [ "LICENSE", "NOTICE", "README.rdoc", "Rakefile" ] + Dir.glob("{lib,spec}/**/*") + s.homepage = "http://www.opscode.com" + s.require_paths = ["lib"] + s.rubygems_version = "1.8.23" + s.summary = "A class based configuration library" + s.description = s.summary + +end + |