Module: RubygemsHerald

Defined in:
lib/rubygems_herald.rb,
lib/rubygems_herald/engine.rb,
lib/rubygems_herald/spider.rb,
lib/rubygems_herald/railtie.rb,
lib/rubygems_herald/version.rb,
lib/rubygems_herald/configuration.rb,
lib/generators/rubygems_herald/utils.rb,
lib/generators/rubygems_herald/views/views_generator.rb,
lib/generators/rubygems_herald/install/install_generator.rb

Defined Under Namespace

Modules: Generators Classes: Configuration, Engine, InstallGenerator, Railtie, Spider, ViewsGenerator

Constant Summary collapse

VERSION =
File.read(File.expand_path('../../../VERSION', __FILE__))

Class Method Summary collapse

Class Method Details

.configurationObject



9
10
11
# File 'lib/rubygems_herald/configuration.rb', line 9

def self.configuration
  @@configuration ||= RubygemsHerald::Configuration.new
end

.configure(configuration = RubygemsHerald::Configuration.new) ⇒ Object



2
3
4
5
6
7
# File 'lib/rubygems_herald/configuration.rb', line 2

def self.configure(configuration = RubygemsHerald::Configuration.new)
  if block_given?
    yield configuration
  end
  @@configuration = configuration
end

.version_stringObject



4
5
6
# File 'lib/rubygems_herald/version.rb', line 4

def self.version_string
  "RubygemsHerald version #{RubygemsHerald::VERSION}"
end