git-recommend 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/git_recommend.rb +3 -3
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a08b5114f7450afd35cb3e24cd592da94a3931ef
|
4
|
+
data.tar.gz: fcbdb9fb1d757847639364de4536d01faa5e71dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 => '
|
18
|
-
method_option :aggregator, :
|
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(
|
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
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.
|
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-
|
11
|
+
date: 2016-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|