Class: Diggit::DevelopersActivity::Analyses::ActivityAnalysis Abstract

Inherits:
Analysis
  • Object
show all
Includes:
Diggit::DevelopersActivity::ActivityExtractor
Defined in:
lib/diggit/developers_activity/analyses/activity_analysis.rb

Overview

This class is abstract.

Abstract class for analyses using the dataset

Since:

  • 0.0.1

Instance Method Summary collapse

Methods included from Diggit::DevelopersActivity::ActivityExtractor

#extract_developers_activity

Instance Method Details

#load_optionsObject

Since:

  • 0.0.1



21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/diggit/developers_activity/analyses/activity_analysis.rb', line 21

def load_options
	@all_releases = false
	@all_releases = @options["all_releases"] if @options.key? "all_releases"
	if @options.key? 'alternative_modules'
		source_options['modules'] = Oj.load_file(@options['alternative_modules'])[@source.url]['modules']
	end
	@modules_metrics = @options.key?("modules_metrics") ? @options["modules_metrics"] : true

	return if src_opt[@source].nil?
	@releases = src_opt[@source]["releases"]
	Authors.read_options(src_opt[@source])
	source_options = src_opt[@source]
	Modules.read_options(@source, source_options, db.client)
end

#runObject

Since:

  • 0.0.1



17
18
19
# File 'lib/diggit/developers_activity/analyses/activity_analysis.rb', line 17

def run
	load_options
end