Class: RSGem::Gem

Inherits:
Object
  • Object
show all
Defined in:
lib/rsgem/gem.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Gem

Returns a new instance of Gem.



7
8
9
# File 'lib/rsgem/gem.rb', line 7

def initialize(options)
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/rsgem/gem.rb', line 5

def options
  @options
end

Instance Method Details

#createObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/rsgem/gem.rb', line 11

def create
  puts 'Creating gem...'
  create_gem
  ensure_author
  add_code_analysis
  add_dependencies
  clean_gemfile
  ignore_gemfile_lock
  add_ci_provider
  clean_gemspec
  set_bundled_files
  set_license_file
  set_required_ruby_version
  bundle_dependencies
  run_rubocop
  puts "#{context.gem_name} created"
end