Sha256: 9c5974e3840feb80eecd8fba7c98577dd3a47786e1ea85010b1e66157c294aff

Contents?: true

Size: 778 Bytes

Versions: 4

Compression:

Stored size: 778 Bytes

Contents

require 'date'

require 'jeweler/bumping'
require 'jeweler/versioning'
require 'jeweler/singleton'
require 'jeweler/gemspec'
require 'jeweler/errors'
require 'jeweler/generator'

require 'jeweler/tasks' if defined?(Rake)

# A Jeweler helps you craft the perfect Rubygem. Give him a gemspec, and he takes care of the rest.
class Jeweler
  include Jeweler::Singleton
  include Jeweler::Bumping
  include Jeweler::Versioning
  include Jeweler::Gemspec
  
  attr_reader :gemspec
  attr_accessor :base_dir
  
  def initialize(gemspec, base_dir = '.')
    raise(GemspecError, "Can't create a Jeweler with a nil gemspec") if gemspec.nil?
    @gemspec = gemspec
    @base_dir = base_dir
    
    @gemspec.files ||= FileList["[A-Z]*.*", "{bin,generators,lib,test,spec}/**/*"]
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
technicalpickles-jeweler-0.3.0 lib/jeweler.rb
technicalpickles-jeweler-0.3.1 lib/jeweler.rb
technicalpickles-jeweler-0.3.2 lib/jeweler.rb
technicalpickles-jeweler-0.3.3 lib/jeweler.rb