churn 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/churn +12 -1
- data/lib/churn/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1236018db3855b4c8a76c6042e2f24a802cf7984c86579694376bcbec411a7f6
|
4
|
+
data.tar.gz: aaaa0552e8174a62b96ad19d4eb343226ab028c7777454935debaff6c9a026ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb12bdbd96e557019caa760cbb35c1f8f12726511d1cf05f2f88e59d9ce9f20ec2dd66a720e259ced4cb842a0a01d8be08e91c25c52682aa87807a458807a0ba
|
7
|
+
data.tar.gz: 663f62e7e1217a73dc2b48bed537d80929244fba4c599ace0f3cdcd868b5faf81c734a436b01fa7749d96e5d7b651761e97d2dc5d51d2e108e5e5316ec2ce3b3
|
data/bin/churn
CHANGED
@@ -73,6 +73,12 @@ Main do
|
|
73
73
|
default ''
|
74
74
|
end
|
75
75
|
|
76
|
+
option('version', 'v') do
|
77
|
+
cast :boolean
|
78
|
+
argument :optional
|
79
|
+
default false
|
80
|
+
end
|
81
|
+
|
76
82
|
def report_churn(output_string)
|
77
83
|
options = {
|
78
84
|
minimum_churn_count: params['minimum_churn_count'].value,
|
@@ -83,8 +89,13 @@ Main do
|
|
83
89
|
report: params['report'].value,
|
84
90
|
name: params['name'].value,
|
85
91
|
file_extension: params['extension'].value,
|
86
|
-
file_prefix: params['prefix'].value
|
92
|
+
file_prefix: params['prefix'].value,
|
87
93
|
}
|
94
|
+
if params['version'].value
|
95
|
+
puts Churn::VERSION
|
96
|
+
return
|
97
|
+
end
|
98
|
+
|
88
99
|
result = Churn::ChurnCalculator.new(options).report(output_string)
|
89
100
|
if output_string
|
90
101
|
result
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Mayer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: main
|