Module: Avm::EacRubyBase0::Rspec::SourceGenerator

Defined in:
lib/avm/eac_ruby_base0/rspec/source_generator.rb

Constant Summary collapse

APPLICATION_STEREOTYPE =
'EacRubyBase0'
DEFAULT_VERSIONS =
{
  'eac_ruby_base0' => '0.9.0',
  'eac_ruby_gem_support' => '0.10.0',
  'eac_ruby_utils' => '0.122.0'
}.freeze

Instance Method Summary collapse

Instance Method Details

#avm_eac_ruby_base0_source(options = {}) ⇒ Avm::EacRubyBase0::Sources::Base



17
18
19
20
21
22
# File 'lib/avm/eac_ruby_base0/rspec/source_generator.rb', line 17

def avm_eac_ruby_base0_source(options = {})
  avm_source(
    APPLICATION_STEREOTYPE,
    avm_eac_ruby_base0_source_default_options.merge(options)
  )
end

#avm_eac_ruby_base0_source_default_optionsHash

Returns:

  • (Hash)


25
26
27
28
29
# File 'lib/avm/eac_ruby_base0/rspec/source_generator.rb', line 25

def avm_eac_ruby_base0_source_default_options
  DEFAULT_VERSIONS.transform_keys do |gem_name|
    "#{gem_name}_version".dasherize
  end
end