reek 1.2.9 → 1.2.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,8 @@
1
- == Unpublished
1
+ == 1.2.10 (2012-06-05)
2
+
3
+ * (troessner) Use bundler rake tasks.
4
+
5
+ == 1.2.9 (2012-06-05)
2
6
 
3
7
  * (marktabler) Allow single underscore as a variable assignment without triggering UncommunicativeVariableName.
4
8
 
data/Rakefile CHANGED
@@ -1,2 +1,19 @@
1
- #!/usr/bin/env rake
1
+ require 'rake/clean'
2
2
  require "bundler/gem_tasks"
3
+
4
+ $:.unshift File.dirname(__FILE__) + '/lib'
5
+
6
+ PROJECT_NAME = 'reek'
7
+
8
+ BUILD_DIR = 'build'; directory BUILD_DIR
9
+ PKG_DIR = "#{BUILD_DIR}/pkg"; directory PKG_DIR
10
+
11
+ GEM_MANIFEST = "Manifest.txt"
12
+ VERSION_FILE = 'lib/reek.rb'
13
+
14
+ CLOBBER.include("#{BUILD_DIR}/*")
15
+
16
+ Dir['tasks/**/*.rake'].each { |t| load t }
17
+
18
+ task :default => [:test]
19
+
@@ -1,3 +1,3 @@
1
1
  module Reek
2
- VERSION = '1.2.9'
2
+ VERSION = '1.2.10'
3
3
  end
@@ -26,6 +26,7 @@ and reports any code smells it finds.
26
26
  s.rubygems_version = %q{1.3.6}
27
27
  s.summary = %q{Code smell detector for Ruby}
28
28
 
29
+ s.add_runtime_dependency(%q<bundler>, ["~> 1.1"])
29
30
  s.add_runtime_dependency(%q<ruby_parser>, ["~> 2.0"])
30
31
  s.add_runtime_dependency(%q<ruby2ruby>, ["~> 1.2.5"])
31
32
  s.add_runtime_dependency(%q<sexp_processor>, ["~> 3.0"])
@@ -41,8 +41,6 @@ namespace 'test' do
41
41
 
42
42
  desc 'Runs all unit tests and acceptance tests'
43
43
  task 'all' => ['test:spec', 'test:features']
44
-
45
- task 'release' => ['test:gem', 'test:all']
46
44
  end
47
45
 
48
46
  task 'clobber_rcov' => 'test:clobber_rcov'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reek
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 9
10
- version: 1.2.9
9
+ - 10
10
+ version: 1.2.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kevin Rutherford
@@ -20,9 +20,24 @@ cert_chain: []
20
20
  date: 2010-04-26 00:00:00 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
- name: ruby_parser
23
+ name: bundler
24
24
  prerelease: false
25
25
  requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ~>
29
+ - !ruby/object:Gem::Version
30
+ hash: 13
31
+ segments:
32
+ - 1
33
+ - 1
34
+ version: "1.1"
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: ruby_parser
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
26
41
  none: false
27
42
  requirements:
28
43
  - - ~>
@@ -33,11 +48,11 @@ dependencies:
33
48
  - 0
34
49
  version: "2.0"
35
50
  type: :runtime
36
- version_requirements: *id001
51
+ version_requirements: *id002
37
52
  - !ruby/object:Gem::Dependency
38
53
  name: ruby2ruby
39
54
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
55
+ requirement: &id003 !ruby/object:Gem::Requirement
41
56
  none: false
42
57
  requirements:
43
58
  - - ~>
@@ -49,11 +64,11 @@ dependencies:
49
64
  - 5
50
65
  version: 1.2.5
51
66
  type: :runtime
52
- version_requirements: *id002
67
+ version_requirements: *id003
53
68
  - !ruby/object:Gem::Dependency
54
69
  name: sexp_processor
55
70
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
71
+ requirement: &id004 !ruby/object:Gem::Requirement
57
72
  none: false
58
73
  requirements:
59
74
  - - ~>
@@ -64,11 +79,11 @@ dependencies:
64
79
  - 0
65
80
  version: "3.0"
66
81
  type: :runtime
67
- version_requirements: *id003
82
+ version_requirements: *id004
68
83
  - !ruby/object:Gem::Dependency
69
84
  name: rake
70
85
  prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
86
+ requirement: &id005 !ruby/object:Gem::Requirement
72
87
  none: false
73
88
  requirements:
74
89
  - - ">="
@@ -78,11 +93,11 @@ dependencies:
78
93
  - 0
79
94
  version: "0"
80
95
  type: :development
81
- version_requirements: *id004
96
+ version_requirements: *id005
82
97
  - !ruby/object:Gem::Dependency
83
98
  name: cucumber
84
99
  prerelease: false
85
- requirement: &id005 !ruby/object:Gem::Requirement
100
+ requirement: &id006 !ruby/object:Gem::Requirement
86
101
  none: false
87
102
  requirements:
88
103
  - - ">="
@@ -92,11 +107,11 @@ dependencies:
92
107
  - 0
93
108
  version: "0"
94
109
  type: :development
95
- version_requirements: *id005
110
+ version_requirements: *id006
96
111
  - !ruby/object:Gem::Dependency
97
112
  name: rspec
98
113
  prerelease: false
99
- requirement: &id006 !ruby/object:Gem::Requirement
114
+ requirement: &id007 !ruby/object:Gem::Requirement
100
115
  none: false
101
116
  requirements:
102
117
  - - "="
@@ -108,7 +123,7 @@ dependencies:
108
123
  - 2
109
124
  version: 1.3.2
110
125
  type: :development
111
- version_requirements: *id006
126
+ version_requirements: *id007
112
127
  description: |
113
128
  Reek is a tool that examines Ruby classes, modules and methods
114
129
  and reports any code smells it finds.
@@ -296,7 +311,6 @@ files:
296
311
  - spec/spec_helper.rb
297
312
  - spec/matchers/smell_of_matcher.rb
298
313
  - tasks/test.rake
299
- - tasks/deployment.rake
300
314
  - tasks/develop.rake
301
315
  - tasks/reek.rake
302
316
  - reek.gemspec
@@ -1,69 +0,0 @@
1
- require 'rubygems'
2
- require 'rubygems/package_task'
3
- require 'yaml'
4
- require 'reek'
5
-
6
- GEMSPEC = "#{PROJECT_NAME}.gemspec"
7
- HISTORY_FILE = 'History.txt'
8
- README_FILE = 'README.md'
9
-
10
- RELEASE_TIMESTAMP = "#{BUILD_DIR}/.last-release"
11
-
12
- $gemspec = Gem::Specification.new do |s|
13
- s.name = PROJECT_NAME
14
- s.version = ::Reek::VERSION
15
- s.summary = 'Code smell detector for Ruby'
16
- s.description = <<-EOS
17
- Reek is a tool that examines Ruby classes, modules and methods
18
- and reports any code smells it finds.
19
- EOS
20
- s.author = 'Kevin Rutherford'
21
- s.email = ['kevin@rutherford-software.com']
22
- s.homepage = 'http://wiki.github.com/troessner/reek'
23
- s.rubyforge_project = PROJECT_NAME
24
- s.add_dependency('ruby_parser', '~> 2.0')
25
- s.add_dependency('ruby2ruby', '~> 1.2')
26
- s.add_dependency('sexp_processor', '~> 3.0')
27
- s.files = File.read(GEM_MANIFEST).delete("\r").split(/\n/)
28
- s.executables = s.files.grep(/^bin/) { |f| File.basename(f) }
29
- s.bindir = 'bin'
30
- s.require_paths = ['lib']
31
- s.rdoc_options = ['--main', README_FILE]
32
- s.extra_rdoc_files = s.files.grep(/(txt|rdoc)$/)
33
- s.post_install_message = '
34
- Thank you for downloading Reek. For info:
35
- - see the reek wiki http://wiki.github.com/troessner/reek
36
- - follow @rubyreek on twitter
37
- '
38
- end
39
-
40
- class String
41
- def touch(text)
42
- File.open(self, 'w') { |ios| ios.puts text }
43
- end
44
- end
45
-
46
- file GEMSPEC => [GEM_MANIFEST, README_FILE, HISTORY_FILE, VERSION_FILE, __FILE__] do
47
- GEMSPEC.touch($gemspec.to_ruby)
48
- end
49
-
50
- namespace :build do
51
- Gem::PackageTask.new($gemspec) do |task|
52
- task.package_dir = PKG_DIR
53
- task.need_tar = true
54
- task.need_zip = false
55
- end
56
-
57
- task :package => [GEMSPEC]
58
- end
59
-
60
- task :release => ['test:release', 'build:package'] do
61
- puts <<-EOS
62
- 1) git commit -a -m "Release #{Reek::VERSION}"
63
- 2) git tag -a "v#{Reek::VERSION}" -m "Release #{Reek::VERSION}"
64
- 3) git push
65
- 4) git push --tags
66
- 5) gem push "#{PKG_DIR}/#{PROJECT_NAME}-#{Reek::VERSION}.gem"
67
- EOS
68
- RELEASE_TIMESTAMP.touch(::Reek::VERSION)
69
- end