rake_check 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -2,3 +2,10 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in rake_check.gemspec
4
4
  gemspec
5
+
6
+ gem 'rspec', :require => false
7
+ gem 'rails_best_practices', :require => false
8
+ gem 'yard', :require => false
9
+ gem 'cane', :require => false
10
+ gem 'redcarpet', :require => false
11
+ gem 'reek', :require => false
@@ -1,6 +1,3 @@
1
- require 'colored'
2
- require 'yaml'
3
- require 'reek'
4
1
  ##
5
2
  # ReekChecker checks the Output of reek for Code Smells
6
3
  #
@@ -12,6 +9,9 @@ class ReekChecker
12
9
  # @return [Hash] Checkresult
13
10
  # @author dmasur
14
11
  def result
12
+ require 'reek'
13
+ require 'colored'
14
+ require 'yaml'
15
15
  shell_output = `reek app lib -y 2>/dev/null`
16
16
  @shell_output = shell_output.split("\n").
17
17
  delete_if{|line| line.include?('already initialized constant') }.join("\n")
@@ -41,6 +41,7 @@ class ReekChecker
41
41
  # @return [Array] SmellWarnings
42
42
  # @author dmasur
43
43
  def parsed_output
44
+ puts @shell_output
44
45
  YAML::load(@shell_output)
45
46
  end
46
47
 
@@ -10,7 +10,7 @@ class RspecChecker
10
10
  # @return [Hash] Checkresult
11
11
  # @author dmasur
12
12
  def result
13
- @shell_output = `export COVERAGE=true; rspec spec; export COVERAGE=`
13
+ @shell_output = `export COVERAGE=true; rspec spec spec_no_rails; export COVERAGE=`
14
14
  {:type => :rspec, :status => status + code_coverage, :check_output => output}
15
15
  end
16
16
 
@@ -3,5 +3,5 @@ module RakeCheck
3
3
  # The Version Constant
4
4
  #
5
5
  # @author dmasur
6
- VERSION = "0.1.0"
6
+ VERSION = "0.1.1"
7
7
  end
data/rake_check.gemspec CHANGED
@@ -19,8 +19,5 @@ Gem::Specification.new do |gem|
19
19
  gem.add_dependency "colored"
20
20
  gem.add_dependency "rake"
21
21
  gem.add_dependency "reek"
22
- gem.add_dependency "yard"
23
- gem.add_dependency "rails_best_practices"
24
22
  gem.add_dependency "cane"
25
- gem.add_dependency 'redcarpet'
26
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-02 00:00:00.000000000 Z
12
+ date: 2012-05-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70195768050000 !ruby/object:Gem::Requirement
16
+ requirement: &70213128680300 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70195768050000
24
+ version_requirements: *70213128680300
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: colored
27
- requirement: &70195768049400 !ruby/object:Gem::Requirement
27
+ requirement: &70213128678900 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70195768049400
35
+ version_requirements: *70213128678900
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &70195768048880 !ruby/object:Gem::Requirement
38
+ requirement: &70213128678240 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70195768048880
46
+ version_requirements: *70213128678240
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: reek
49
- requirement: &70195768048380 !ruby/object:Gem::Requirement
49
+ requirement: &70213128677780 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,43 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70195768048380
58
- - !ruby/object:Gem::Dependency
59
- name: yard
60
- requirement: &70195768047900 !ruby/object:Gem::Requirement
61
- none: false
62
- requirements:
63
- - - ! '>='
64
- - !ruby/object:Gem::Version
65
- version: '0'
66
- type: :runtime
67
- prerelease: false
68
- version_requirements: *70195768047900
69
- - !ruby/object:Gem::Dependency
70
- name: rails_best_practices
71
- requirement: &70195768063760 !ruby/object:Gem::Requirement
72
- none: false
73
- requirements:
74
- - - ! '>='
75
- - !ruby/object:Gem::Version
76
- version: '0'
77
- type: :runtime
78
- prerelease: false
79
- version_requirements: *70195768063760
57
+ version_requirements: *70213128677780
80
58
  - !ruby/object:Gem::Dependency
81
59
  name: cane
82
- requirement: &70195768063240 !ruby/object:Gem::Requirement
83
- none: false
84
- requirements:
85
- - - ! '>='
86
- - !ruby/object:Gem::Version
87
- version: '0'
88
- type: :runtime
89
- prerelease: false
90
- version_requirements: *70195768063240
91
- - !ruby/object:Gem::Dependency
92
- name: redcarpet
93
- requirement: &70195768062740 !ruby/object:Gem::Requirement
60
+ requirement: &70213128677300 !ruby/object:Gem::Requirement
94
61
  none: false
95
62
  requirements:
96
63
  - - ! '>='
@@ -98,7 +65,7 @@ dependencies:
98
65
  version: '0'
99
66
  type: :runtime
100
67
  prerelease: false
101
- version_requirements: *70195768062740
68
+ version_requirements: *70213128677300
102
69
  description: Checking the Project for Code Smells and bad documentation
103
70
  email:
104
71
  - dominik.masur@googlemail.com
@@ -145,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
112
  version: '0'
146
113
  segments:
147
114
  - 0
148
- hash: 4254309684851123485
115
+ hash: 3126639798450896785
149
116
  required_rubygems_version: !ruby/object:Gem::Requirement
150
117
  none: false
151
118
  requirements:
@@ -154,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
121
  version: '0'
155
122
  segments:
156
123
  - 0
157
- hash: 4254309684851123485
124
+ hash: 3126639798450896785
158
125
  requirements: []
159
126
  rubyforge_project:
160
127
  rubygems_version: 1.8.10