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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbe39389e7238ce9ac55fb37224083a50b65692de78df6189e1b2cba21819211
4
- data.tar.gz: adf3e40ea5e98297181a1bf78316fc42c368c560e336797f1d59c38dabfcee4a
3
+ metadata.gz: 6b9e47efbf25dd33432e6a632a22547482c1823786f9fcfe5cc0ddc8867a3d9f
4
+ data.tar.gz: 7aa8ef62039ced894b3ca96934223fe7c231565c49c07a8fcc261896d6c1c28c
5
5
  SHA512:
6
- metadata.gz: fca92c6967f4873fa57836bf5ebbc2f05d80a510eda2b61b3fd9fce40b2ca80338962cef98d56930a5520cd73bb53d4665753d41512cb33c86ac3edf40b1470f
7
- data.tar.gz: d8228f4bcf60a6777e0a590170462019b46d0cfde0fcba4324b2ca5bffef8cf351ce4d4b6036861ac7eb1d6de6d0e77739d5436e45beee8eb1ccbff72be17609
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
@@ -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
- s.add_runtime_dependency "json_pure", ">= 0"
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
@@ -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! { |file_path, _revision_count| file_path =~ /\A#{@churn_options.file_prefix}/ }
167
+ changes = changes.select { |file_path, _revision_count| file_path =~ /\A#{@churn_options.file_prefix}/ }
168
168
  end
169
169
 
170
170
  changes
@@ -1,3 +1,3 @@
1
1
  module Churn
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
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
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-09-01 00:00:00.000000000 Z
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