churn 0.0.19 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/Gemfile +0 -1
  2. data/Gemfile.lock +0 -41
  3. data/Rakefile +15 -8
  4. data/VERSION +1 -1
  5. data/churn.gemspec +24 -6
  6. metadata +120 -36
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  source :rubygems
2
2
 
3
- gem 'rake'
4
3
  gemspec
@@ -1,49 +1,8 @@
1
- PATH
2
- remote: .
3
- specs:
4
- churn (0.0.19)
5
- chronic (>= 0.2.3)
6
- hirb
7
- json_pure
8
- main
9
- rake
10
- ruby_parser (~> 2.3)
11
- sexp_processor (~> 3.0)
12
-
13
1
  GEM
14
2
  remote: http://rubygems.org/
15
3
  specs:
16
- arrayfields (4.7.4)
17
- chronic (0.6.6)
18
- fattr (2.2.0)
19
- git (1.2.5)
20
- hirb (0.6.0)
21
- jeweler (1.6.4)
22
- bundler (~> 1.0)
23
- git (>= 1.2.5)
24
- rake
25
- json_pure (1.6.4)
26
- main (4.8.1)
27
- arrayfields (~> 4.7.4)
28
- chronic (~> 0.6.2)
29
- fattr (~> 2.2.0)
30
- map (~> 5.1.0)
31
- map (5.1.0)
32
- mocha (0.9.12)
33
- rake (0.8.7)
34
- ruby_parser (2.3.1)
35
- sexp_processor (~> 3.0)
36
- sexp_processor (3.0.10)
37
- shoulda (2.11.3)
38
- test-construct (1.2.0)
39
4
 
40
5
  PLATFORMS
41
6
  ruby
42
7
 
43
8
  DEPENDENCIES
44
- churn!
45
- jeweler (~> 1.6)
46
- mocha (~> 0.9.5)
47
- rake
48
- shoulda
49
- test-construct
data/Rakefile CHANGED
@@ -3,6 +3,11 @@ require 'rake'
3
3
  require 'lib/tasks/churn_tasks'
4
4
 
5
5
  begin
6
+ #Bug in jeweler or bundler to make jeweler
7
+ #create a proper gemspec that doesn't have a circular dependancy
8
+ # on itself uninstall churn
9
+ # Then comment this line out of the Gemfile 'gemspec'
10
+ # then rake gemspec
6
11
  require 'jeweler'
7
12
  Jeweler::Tasks.new do |gem|
8
13
  gem.name = "churn"
@@ -11,9 +16,12 @@ begin
11
16
  gem.email = "dan@mayerdan.com"
12
17
  gem.homepage = "http://github.com/danmayer/churn"
13
18
  gem.authors = ["Dan Mayer"]
19
+ gem.executables = ['churn']
20
+
14
21
  gem.add_development_dependency "shoulda"
15
- gem.add_development_dependency "jeweler", '~> 1.6'
22
+ gem.add_development_dependency "jeweler"
16
23
  gem.add_development_dependency "test-construct"
24
+ gem.add_development_dependency "rake"
17
25
  gem.add_development_dependency "mocha", '~> 0.9.5'
18
26
  gem.add_dependency "main"
19
27
  gem.add_dependency "json_pure"
@@ -21,7 +29,6 @@ begin
21
29
  gem.add_dependency "sexp_processor", '~> 3.0'
22
30
  gem.add_dependency "ruby_parser", '~> 2.3'
23
31
  gem.add_dependency 'hirb'
24
- gem.executables = ['churn']
25
32
  end
26
33
  rescue LoadError
27
34
  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
@@ -30,16 +37,16 @@ end
30
37
  begin
31
38
  #for additional metrics, mostly Rcov which caliper doesn't do
32
39
  require 'metric_fu'
33
-
40
+
34
41
  MetricFu::Configuration.run do |config|
35
42
  config.metrics = [:churn, :saikuro, :roodi, :flog, :flay, :reek, :roodi, :rcov, :hotspots]
36
43
  config.graphs = [:roodi, :flog, :flay, :reek, :roodi, :rcov]
37
-
38
- config.flay = { :dirs_to_flay => ['lib'] }
44
+
45
+ config.flay = { :dirs_to_flay => ['lib'] }
39
46
  config.flog = { :dirs_to_flog => ['lib'] }
40
47
  config.reek = { :dirs_to_reek => ['lib'] }
41
48
  config.roodi = { :dirs_to_roodi => ['lib'] }
42
- config.saikuro = { :output_directory => 'tmp/tmp_saikuro',
49
+ config.saikuro = { :output_directory => 'tmp/tmp_saikuro',
43
50
  :input_directory => ['lib'],
44
51
  :cyclo => "",
45
52
  :filter_cyclo => "0",
@@ -48,8 +55,8 @@ begin
48
55
  :formater => "text"} #this needs to be set to "text"
49
56
  config.churn = { :start_date => "3 months ago", :minimum_churn_count => 10}
50
57
  config.rcov = { :test_files => ['test/unit/**/*_test.rb'],
51
- :rcov_opts => ["--sort coverage",
52
- "--no-html",
58
+ :rcov_opts => ["--sort coverage",
59
+ "--no-html",
53
60
  "--text-coverage",
54
61
  "--no-color",
55
62
  "--profile",
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.19
1
+ 0.0.20
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "churn"
8
- s.version = "0.0.19"
8
+ s.version = "0.0.20"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dan Mayer"]
12
- s.date = "2012-01-12"
12
+ s.date = "2012-09-11"
13
13
  s.description = "High method and class churn has been shown to have increased bug and error rates. This gem helps you know what is changing a lot so you can do additional testing, code review, or refactoring to try to tame the volatile code. "
14
14
  s.email = "dan@mayerdan.com"
15
15
  s.executables = ["churn"]
@@ -58,11 +58,17 @@ Gem::Specification.new do |s|
58
58
  s.specification_version = 3
59
59
 
60
60
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
61
- s.add_runtime_dependency(%q<rake>, [">= 0"])
61
+ s.add_runtime_dependency(%q<churn>, [">= 0"])
62
62
  s.add_development_dependency(%q<shoulda>, [">= 0"])
63
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
63
64
  s.add_development_dependency(%q<test-construct>, [">= 0"])
65
+ s.add_development_dependency(%q<rake>, [">= 0"])
66
+ s.add_development_dependency(%q<mocha>, ["~> 0.9.5"])
67
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
68
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
69
+ s.add_development_dependency(%q<test-construct>, [">= 0"])
70
+ s.add_development_dependency(%q<rake>, [">= 0"])
64
71
  s.add_development_dependency(%q<mocha>, ["~> 0.9.5"])
65
- s.add_development_dependency(%q<jeweler>, ["~> 1.6"])
66
72
  s.add_runtime_dependency(%q<main>, [">= 0"])
67
73
  s.add_runtime_dependency(%q<json_pure>, [">= 0"])
68
74
  s.add_runtime_dependency(%q<chronic>, [">= 0.2.3"])
@@ -70,11 +76,17 @@ Gem::Specification.new do |s|
70
76
  s.add_runtime_dependency(%q<ruby_parser>, ["~> 2.3"])
71
77
  s.add_runtime_dependency(%q<hirb>, [">= 0"])
72
78
  else
79
+ s.add_dependency(%q<churn>, [">= 0"])
80
+ s.add_dependency(%q<shoulda>, [">= 0"])
81
+ s.add_dependency(%q<jeweler>, [">= 0"])
82
+ s.add_dependency(%q<test-construct>, [">= 0"])
73
83
  s.add_dependency(%q<rake>, [">= 0"])
84
+ s.add_dependency(%q<mocha>, ["~> 0.9.5"])
74
85
  s.add_dependency(%q<shoulda>, [">= 0"])
86
+ s.add_dependency(%q<jeweler>, [">= 0"])
75
87
  s.add_dependency(%q<test-construct>, [">= 0"])
88
+ s.add_dependency(%q<rake>, [">= 0"])
76
89
  s.add_dependency(%q<mocha>, ["~> 0.9.5"])
77
- s.add_dependency(%q<jeweler>, ["~> 1.6"])
78
90
  s.add_dependency(%q<main>, [">= 0"])
79
91
  s.add_dependency(%q<json_pure>, [">= 0"])
80
92
  s.add_dependency(%q<chronic>, [">= 0.2.3"])
@@ -83,11 +95,17 @@ Gem::Specification.new do |s|
83
95
  s.add_dependency(%q<hirb>, [">= 0"])
84
96
  end
85
97
  else
98
+ s.add_dependency(%q<churn>, [">= 0"])
99
+ s.add_dependency(%q<shoulda>, [">= 0"])
100
+ s.add_dependency(%q<jeweler>, [">= 0"])
101
+ s.add_dependency(%q<test-construct>, [">= 0"])
86
102
  s.add_dependency(%q<rake>, [">= 0"])
103
+ s.add_dependency(%q<mocha>, ["~> 0.9.5"])
87
104
  s.add_dependency(%q<shoulda>, [">= 0"])
105
+ s.add_dependency(%q<jeweler>, [">= 0"])
88
106
  s.add_dependency(%q<test-construct>, [">= 0"])
107
+ s.add_dependency(%q<rake>, [">= 0"])
89
108
  s.add_dependency(%q<mocha>, ["~> 0.9.5"])
90
- s.add_dependency(%q<jeweler>, ["~> 1.6"])
91
109
  s.add_dependency(%q<main>, [">= 0"])
92
110
  s.add_dependency(%q<json_pure>, [">= 0"])
93
111
  s.add_dependency(%q<chronic>, [">= 0.2.3"])
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: churn
3
3
  version: !ruby/object:Gem::Version
4
- hash: 57
4
+ hash: 55
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 19
10
- version: 0.0.19
9
+ - 20
10
+ version: 0.0.20
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dan Mayer
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-08-04 00:00:00 Z
18
+ date: 2012-09-11 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  version_requirements: &id001 !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: "0"
30
30
  requirement: *id001
31
31
  prerelease: false
32
- name: rake
32
+ name: churn
33
33
  type: :runtime
34
34
  - !ruby/object:Gem::Dependency
35
35
  version_requirements: &id002 !ruby/object:Gem::Requirement
@@ -43,8 +43,8 @@ dependencies:
43
43
  version: "0"
44
44
  requirement: *id002
45
45
  prerelease: false
46
- name: churn
47
- type: :runtime
46
+ name: shoulda
47
+ type: :development
48
48
  - !ruby/object:Gem::Dependency
49
49
  version_requirements: &id003 !ruby/object:Gem::Requirement
50
50
  none: false
@@ -57,7 +57,7 @@ dependencies:
57
57
  version: "0"
58
58
  requirement: *id003
59
59
  prerelease: false
60
- name: shoulda
60
+ name: jeweler
61
61
  type: :development
62
62
  - !ruby/object:Gem::Dependency
63
63
  version_requirements: &id004 !ruby/object:Gem::Requirement
@@ -77,17 +77,15 @@ dependencies:
77
77
  version_requirements: &id005 !ruby/object:Gem::Requirement
78
78
  none: false
79
79
  requirements:
80
- - - ~>
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- hash: 49
82
+ hash: 3
83
83
  segments:
84
84
  - 0
85
- - 9
86
- - 5
87
- version: 0.9.5
85
+ version: "0"
88
86
  requirement: *id005
89
87
  prerelease: false
90
- name: mocha
88
+ name: rake
91
89
  type: :development
92
90
  - !ruby/object:Gem::Dependency
93
91
  version_requirements: &id006 !ruby/object:Gem::Requirement
@@ -95,14 +93,15 @@ dependencies:
95
93
  requirements:
96
94
  - - ~>
97
95
  - !ruby/object:Gem::Version
98
- hash: 3
96
+ hash: 49
99
97
  segments:
100
- - 1
101
- - 6
102
- version: "1.6"
98
+ - 0
99
+ - 9
100
+ - 5
101
+ version: 0.9.5
103
102
  requirement: *id006
104
103
  prerelease: false
105
- name: jeweler
104
+ name: mocha
106
105
  type: :development
107
106
  - !ruby/object:Gem::Dependency
108
107
  version_requirements: &id007 !ruby/object:Gem::Requirement
@@ -122,13 +121,12 @@ dependencies:
122
121
  version_requirements: &id008 !ruby/object:Gem::Requirement
123
122
  none: false
124
123
  requirements:
125
- - - ~>
124
+ - - ">="
126
125
  - !ruby/object:Gem::Version
127
126
  hash: 3
128
127
  segments:
129
- - 1
130
- - 6
131
- version: "1.6"
128
+ - 0
129
+ version: "0"
132
130
  requirement: *id008
133
131
  prerelease: false
134
132
  name: jeweler
@@ -149,6 +147,20 @@ dependencies:
149
147
  type: :development
150
148
  - !ruby/object:Gem::Dependency
151
149
  version_requirements: &id010 !ruby/object:Gem::Requirement
150
+ none: false
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ hash: 3
155
+ segments:
156
+ - 0
157
+ version: "0"
158
+ requirement: *id010
159
+ prerelease: false
160
+ name: rake
161
+ type: :development
162
+ - !ruby/object:Gem::Dependency
163
+ version_requirements: &id011 !ruby/object:Gem::Requirement
152
164
  none: false
153
165
  requirements:
154
166
  - - ~>
@@ -159,12 +171,12 @@ dependencies:
159
171
  - 9
160
172
  - 5
161
173
  version: 0.9.5
162
- requirement: *id010
174
+ requirement: *id011
163
175
  prerelease: false
164
176
  name: mocha
165
177
  type: :development
166
178
  - !ruby/object:Gem::Dependency
167
- version_requirements: &id011 !ruby/object:Gem::Requirement
179
+ version_requirements: &id012 !ruby/object:Gem::Requirement
168
180
  none: false
169
181
  requirements:
170
182
  - - ">="
@@ -173,12 +185,84 @@ dependencies:
173
185
  segments:
174
186
  - 0
175
187
  version: "0"
176
- requirement: *id011
188
+ requirement: *id012
189
+ prerelease: false
190
+ name: shoulda
191
+ type: :development
192
+ - !ruby/object:Gem::Dependency
193
+ version_requirements: &id013 !ruby/object:Gem::Requirement
194
+ none: false
195
+ requirements:
196
+ - - ">="
197
+ - !ruby/object:Gem::Version
198
+ hash: 3
199
+ segments:
200
+ - 0
201
+ version: "0"
202
+ requirement: *id013
203
+ prerelease: false
204
+ name: jeweler
205
+ type: :development
206
+ - !ruby/object:Gem::Dependency
207
+ version_requirements: &id014 !ruby/object:Gem::Requirement
208
+ none: false
209
+ requirements:
210
+ - - ">="
211
+ - !ruby/object:Gem::Version
212
+ hash: 3
213
+ segments:
214
+ - 0
215
+ version: "0"
216
+ requirement: *id014
217
+ prerelease: false
218
+ name: test-construct
219
+ type: :development
220
+ - !ruby/object:Gem::Dependency
221
+ version_requirements: &id015 !ruby/object:Gem::Requirement
222
+ none: false
223
+ requirements:
224
+ - - ">="
225
+ - !ruby/object:Gem::Version
226
+ hash: 3
227
+ segments:
228
+ - 0
229
+ version: "0"
230
+ requirement: *id015
231
+ prerelease: false
232
+ name: rake
233
+ type: :development
234
+ - !ruby/object:Gem::Dependency
235
+ version_requirements: &id016 !ruby/object:Gem::Requirement
236
+ none: false
237
+ requirements:
238
+ - - ~>
239
+ - !ruby/object:Gem::Version
240
+ hash: 49
241
+ segments:
242
+ - 0
243
+ - 9
244
+ - 5
245
+ version: 0.9.5
246
+ requirement: *id016
247
+ prerelease: false
248
+ name: mocha
249
+ type: :development
250
+ - !ruby/object:Gem::Dependency
251
+ version_requirements: &id017 !ruby/object:Gem::Requirement
252
+ none: false
253
+ requirements:
254
+ - - ">="
255
+ - !ruby/object:Gem::Version
256
+ hash: 3
257
+ segments:
258
+ - 0
259
+ version: "0"
260
+ requirement: *id017
177
261
  prerelease: false
178
262
  name: main
179
263
  type: :runtime
180
264
  - !ruby/object:Gem::Dependency
181
- version_requirements: &id012 !ruby/object:Gem::Requirement
265
+ version_requirements: &id018 !ruby/object:Gem::Requirement
182
266
  none: false
183
267
  requirements:
184
268
  - - ">="
@@ -187,12 +271,12 @@ dependencies:
187
271
  segments:
188
272
  - 0
189
273
  version: "0"
190
- requirement: *id012
274
+ requirement: *id018
191
275
  prerelease: false
192
276
  name: json_pure
193
277
  type: :runtime
194
278
  - !ruby/object:Gem::Dependency
195
- version_requirements: &id013 !ruby/object:Gem::Requirement
279
+ version_requirements: &id019 !ruby/object:Gem::Requirement
196
280
  none: false
197
281
  requirements:
198
282
  - - ">="
@@ -203,12 +287,12 @@ dependencies:
203
287
  - 2
204
288
  - 3
205
289
  version: 0.2.3
206
- requirement: *id013
290
+ requirement: *id019
207
291
  prerelease: false
208
292
  name: chronic
209
293
  type: :runtime
210
294
  - !ruby/object:Gem::Dependency
211
- version_requirements: &id014 !ruby/object:Gem::Requirement
295
+ version_requirements: &id020 !ruby/object:Gem::Requirement
212
296
  none: false
213
297
  requirements:
214
298
  - - ~>
@@ -218,12 +302,12 @@ dependencies:
218
302
  - 3
219
303
  - 0
220
304
  version: "3.0"
221
- requirement: *id014
305
+ requirement: *id020
222
306
  prerelease: false
223
307
  name: sexp_processor
224
308
  type: :runtime
225
309
  - !ruby/object:Gem::Dependency
226
- version_requirements: &id015 !ruby/object:Gem::Requirement
310
+ version_requirements: &id021 !ruby/object:Gem::Requirement
227
311
  none: false
228
312
  requirements:
229
313
  - - ~>
@@ -233,12 +317,12 @@ dependencies:
233
317
  - 2
234
318
  - 3
235
319
  version: "2.3"
236
- requirement: *id015
320
+ requirement: *id021
237
321
  prerelease: false
238
322
  name: ruby_parser
239
323
  type: :runtime
240
324
  - !ruby/object:Gem::Dependency
241
- version_requirements: &id016 !ruby/object:Gem::Requirement
325
+ version_requirements: &id022 !ruby/object:Gem::Requirement
242
326
  none: false
243
327
  requirements:
244
328
  - - ">="
@@ -247,7 +331,7 @@ dependencies:
247
331
  segments:
248
332
  - 0
249
333
  version: "0"
250
- requirement: *id016
334
+ requirement: *id022
251
335
  prerelease: false
252
336
  name: hirb
253
337
  type: :runtime