churn 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/churn +12 -1
  3. data/lib/churn/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60626635b7c857bc6a5129f45d42aff3eba37caa4b478492316a2030a0bdebcc
4
- data.tar.gz: 321cfa0f67c7c1a5b0e0ca2b6da68b925d5f598a73af631f13f293a454bcb48c
3
+ metadata.gz: 1236018db3855b4c8a76c6042e2f24a802cf7984c86579694376bcbec411a7f6
4
+ data.tar.gz: aaaa0552e8174a62b96ad19d4eb343226ab028c7777454935debaff6c9a026ed
5
5
  SHA512:
6
- metadata.gz: '0584e9330499a66eeabea707a4aa586ec891d6f5a71acd0d6017d5e745e50f4f9950b4feab97651599a7a279a6cfd8bad4ba1981c21bbc0ba5e564f8ad63ca6e'
7
- data.tar.gz: 6a6a562a668f501d69a51f5bd35a59e6da48aee865431ce17b6ee934c1e2622fe84312e861b1c0d1d805172089398e16107c4201f0ba5227a64ff8d7aff04448
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
@@ -1,3 +1,3 @@
1
1
  module Churn
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
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.6
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-02 00:00:00.000000000 Z
11
+ date: 2020-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: main