Class: GemVersionCheck::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/gem_version_check/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(settings = {}) ⇒ Configuration

Returns a new instance of Configuration.



5
6
7
8
9
10
11
# File 'lib/gem_version_check/configuration.rb', line 5

def initialize(settings = {})
  @github_host = settings[:github_host]     || "github.com"
  @sources = settings[:sources]
  @show_progress_bar = settings[:show_progress_bar] || false
  @ignore_major_version_change = settings[:ignore_major_version_change] || false
  @allow_prerelease_dependencies = settings[:allow_prerelease_dependencies] || false
end

Instance Attribute Details

#allow_prerelease_dependenciesObject (readonly)

Returns the value of attribute allow_prerelease_dependencies.



3
4
5
# File 'lib/gem_version_check/configuration.rb', line 3

def allow_prerelease_dependencies
  @allow_prerelease_dependencies
end

#github_hostObject (readonly)

Returns the value of attribute github_host.



3
4
5
# File 'lib/gem_version_check/configuration.rb', line 3

def github_host
  @github_host
end

#ignore_major_version_changeObject (readonly)

Returns the value of attribute ignore_major_version_change.



3
4
5
# File 'lib/gem_version_check/configuration.rb', line 3

def ignore_major_version_change
  @ignore_major_version_change
end

#show_progress_barObject (readonly)

Returns the value of attribute show_progress_bar.



3
4
5
# File 'lib/gem_version_check/configuration.rb', line 3

def show_progress_bar
  @show_progress_bar
end

#sourcesObject (readonly)

Returns the value of attribute sources.



3
4
5
# File 'lib/gem_version_check/configuration.rb', line 3

def sources
  @sources
end