git-recommend 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a8c6fc1c30e588d383f9170e4fb8a00a600e170
4
- data.tar.gz: e73e56ba11036ce69a7d8fb0c8d16dc73e07ce24
3
+ metadata.gz: a08b5114f7450afd35cb3e24cd592da94a3931ef
4
+ data.tar.gz: fcbdb9fb1d757847639364de4536d01faa5e71dc
5
5
  SHA512:
6
- metadata.gz: e70d838c4c4a099b62c58c96fdb798b5ef4e161330d13c4e96024ba701dfc1ca6d4b49abf94b3aea43fea3f7ad64e2c1f2d5732e1e2c6a7c3f2692a969f0a6ee
7
- data.tar.gz: d1771a6757a53f9452dcd8655533f3d5fe986f2c0cd90ff800ec30e3e1d2d0f4fbcaff5c016c0e6c83cad873955cce84488bc955b7bbc1b97e16578c3f2b1158
6
+ metadata.gz: bbba31cefdf670c38a2730338bb6e2d14863852ec00141d2eaf3322a4576cd21742df36db071b8cb24f1f99d5715fe61732fa2dcdb88c7ffc4d90cf331a82857
7
+ data.tar.gz: 71dc4d3545de9f08bda722379e02f6dff7651017e877b2f1146f53e0e417a19d4a8883f5521a20d61fad52f7e4b93c6a7c5fbf0c1c18bcf124f986c02eeb31b2
data/lib/git_recommend.rb CHANGED
@@ -14,8 +14,8 @@ class GitRecommend < Thor
14
14
  method_option :staged, aliases: '-s', type: :boolean, required: false, desc: "Use staged files to generate recommendation"
15
15
  method_option :unstaged, aliases: '-u', type: :boolean, required: false, desc: "Use unstaged files to generate recommendation"
16
16
  method_option :history, :aliases => '-h', :type => :string, default: DEFAULT_HISTORY, :desc => "Path to change-history"
17
- method_option :algorithm, :default => 'tarmaq0', :desc => "Which algorithm to use"
18
- method_option :aggregator, :default => 'cg', :desc => "Which aggregator to use"
17
+ method_option :algorithm, :default => 'co_change', :desc => "Which algorithm to use"
18
+ method_option :aggregator, :desc => "Which aggregator to use"
19
19
  method_option :measures, aliases: '-m', type: :array, default: ['support','confidence'], desc: "Order rules on the given measures, presedence from left to right"
20
20
  method_option :max_size, type: :numeric, default: 30, desc: "The maximum size of commits that should be considered when looking for patterns"
21
21
  method_option :model_size, type: :numeric, default: 0, desc: "How many previous commits to consider when looking for patterns"
@@ -30,7 +30,7 @@ class GitRecommend < Thor
30
30
  []
31
31
  else
32
32
  if File.exist?(options[:query_from_file])
33
- File.read(options[:query_from_file]).split("\n")
33
+ File.read(options[:query_from_file]).split(%r((?:\r)?\n)) # split lines on \r\n or \n
34
34
  else
35
35
  $stderr.puts "No file found at #{options[:query_from_file]}"
36
36
  []
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  module Recommend
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-recommend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Rolfsnes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-15 00:00:00.000000000 Z
11
+ date: 2016-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor