Sha256: aaea03562d0b7ec9ecd700b391261c9513167bb880830e8c7651a3bcb19c80fc

Contents?: true

Size: 478 Bytes

Versions: 13

Compression:

Stored size: 478 Bytes

Contents

# frozen_string_literal: true

require 'git'

module GFSM
  module Tools
    class CommitsSubdivider
      def self.subdivide_commits(configuration, commits)
        subdivisions = {}

        commits.each do |commit|
          change_type = configuration.get_change_type_from_category(commit.category)
          
          if change_type
            (subdivisions[change_type] ||= []) << commit
          end
        end

        return subdivisions
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
gfsm-0.8.0 lib/tools/commits_subdivider.rb
gfsm-0.7.0 lib/tools/commits_subdivider.rb
gfsm-0.6.0 lib/tools/commits_subdivider.rb
gfsm-0.5.1 lib/tools/commits_subdivider.rb
gfsm-0.5.0 lib/tools/commits_subdivider.rb
gfsm-0.4.1 lib/tools/commits_subdivider.rb
gfsm-0.4.0 lib/tools/commits_subdivider.rb
gfsm-0.3.2 lib/tools/commits_subdivider.rb
gfsm-0.3.1 lib/tools/commits_subdivider.rb
gfsm-0.3.0 lib/tools/commits_subdivider.rb
gfsm-0.2.0 lib/tools/commits_subdivider.rb
gfsm-0.1.4 lib/tools/commits_subdivider.rb
gfsm-0.1.3 lib/tools/commits_subdivider.rb