reek 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.2.2 2008-09-15
2
+
3
+ * Tweaks:
4
+ * Fixed --version!
5
+
1
6
  == 0.2.1 2008-09-14
2
7
 
3
8
  * Tweaks:
data/lib/reek/options.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  $:.unshift File.dirname(__FILE__)
2
2
 
3
3
  require 'reek/report'
4
+ require 'reek/version'
4
5
  require 'optparse'
5
6
 
6
7
  include Reek
data/lib/reek/version.rb CHANGED
@@ -2,7 +2,7 @@ module Reek #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -1,5 +1,15 @@
1
1
  require File.dirname(__FILE__) + '/spec_helper.rb'
2
2
 
3
+ require 'reek/version'
4
+
5
+ describe 'Reek version number' do
6
+ it 'should reprot the correct value' do
7
+ actual = `ruby -Ilib bin/reek --version`.split
8
+ actual[0].should == 'reek'
9
+ actual[1].should == Reek::VERSION::STRING
10
+ end
11
+ end
12
+
3
13
  describe 'Integration test:' do
4
14
  Dir['spec/samples/*.rb'].each do |source|
5
15
  describe source do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reek
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Rutherford
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-14 00:00:00 +01:00
12
+ date: 2008-09-15 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency