churn 1.0.4 → 1.0.5
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/README.md +2 -2
- data/churn.gemspec +4 -1
- data/lib/churn/calculator.rb +1 -1
- data/lib/churn/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b9e47efbf25dd33432e6a632a22547482c1823786f9fcfe5cc0ddc8867a3d9f
|
4
|
+
data.tar.gz: 7aa8ef62039ced894b3ca96934223fe7c231565c49c07a8fcc261896d6c1c28c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb77031df8cc5a6a864e9c13ffa30ed32282094f38ec126af32f026605a232e647557fd74d54bf03fcb18aaa580e77835889dfa5ef9487a2daefb17feee506ca
|
7
|
+
data.tar.gz: c307331df0e19c3cb6031314ff154e5c1158c41021f0dd9ca4ce965bbe6a7c1840c80a29c4f9edc5945d0c986324085224e76cfb2dd97b0d7e67dbda6511b42a
|
data/README.md
CHANGED
@@ -47,8 +47,8 @@ churn -i "churn.gemspec, Gemfile" # Ignore files
|
|
47
47
|
churn -y # Output yaml format opposed to text
|
48
48
|
churn -c 10 # Set minimum churn count on a file to 10
|
49
49
|
churn -c 5 -y -i "Gemfile" # Mix and match
|
50
|
-
churn -e rb # Specify a file extension. The dot will be prepended automatically ("rb" -> ".rb")
|
51
|
-
churn -f app # Specify a file prefix, e.g. app/models
|
50
|
+
churn -e rb # Specify a file extension. The dot will be prepended automatically ("rb" -> ".rb"). The argument will be evaluated as a RegEx (i.e. you could specify "(js|jsx)").
|
51
|
+
churn -f app # Specify a file prefix, e.g. app/models. The argument will be evaluated as a RegEx.
|
52
52
|
churn --start_date "6 months ago" # Start looking at file changes from 6 months ago
|
53
53
|
churn -p "4 months ago" # Churn the past history to build up data for the last 4 months
|
54
54
|
churn --past_history # Churn the past history for default 3 months to build up data
|
data/churn.gemspec
CHANGED
@@ -21,10 +21,13 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.requirements = "bzr, git, hg or svn"
|
22
22
|
|
23
23
|
s.add_runtime_dependency "main", ">= 0"
|
24
|
-
|
24
|
+
# TODO: How to replace chronic, or just have less verbose time support
|
25
25
|
s.add_runtime_dependency "chronic", ">= 0.2.3"
|
26
26
|
s.add_runtime_dependency "sexp_processor", "~> 4.1"
|
27
27
|
s.add_runtime_dependency "ruby_parser", "~> 3.0"
|
28
|
+
# TODO: Just have clean output and drop hirb
|
28
29
|
s.add_runtime_dependency "hirb", ">= 0"
|
30
|
+
# TODO: Make this an optional depency and eventually
|
31
|
+
# replace dependency with straight net::http
|
29
32
|
s.add_runtime_dependency "rest-client", ">= 1.6.0"
|
30
33
|
end
|
data/lib/churn/calculator.rb
CHANGED
@@ -164,7 +164,7 @@ module Churn
|
|
164
164
|
end
|
165
165
|
|
166
166
|
if @churn_options.file_prefix && !@churn_options.file_prefix.empty?
|
167
|
-
changes = changes.select
|
167
|
+
changes = changes.select { |file_path, _revision_count| file_path =~ /\A#{@churn_options.file_prefix}/ }
|
168
168
|
end
|
169
169
|
|
170
170
|
changes
|
data/lib/churn/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: churn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Mayer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: main
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: json_pure
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: chronic
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|