Class: Gem::Release::Data

Inherits:
Struct
  • Object
show all
Includes:
Helper::String
Defined in:
lib/gem/release/data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helper::String

#camelize, #underscore, #wrap

Instance Attribute Details

#gemObject

Returns the value of attribute gem

Returns:

  • (Object)

    the current value of gem



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

def gem
  @gem
end

#gitObject

Returns the value of attribute git

Returns:

  • (Object)

    the current value of git



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

def git
  @git
end

#optsObject

Returns the value of attribute opts

Returns:

  • (Object)

    the current value of opts



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

def opts
  @opts
end

Instance Method Details

#dataObject



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/gem/release/data.rb', line 10

def data
  {
    gem_name:     gem_name,
    gem_path:     gem_path,
    module_names: module_names,
    author:       user_name,
    email:        user_email,
    homepage:     homepage,
    licenses:     licenses,
    summary:      '[summary]',
    description:  '[description]',
    files:        files,
    bin_files:    bin_files
  }
end