bf4-metric_fu 2.1.3.1 → 2.1.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY CHANGED
@@ -1,3 +1,8 @@
1
+ === MetricFu 2.1.3.2 / 2012-11-14
2
+
3
+ * Don't raise an exception in the LineNumbers rescue block. Issue https://github.com/bf4/metric_fu/issues/6 by joonty -Benjamin Fleischer
4
+ tmp/metric_fu/output/flog.js
5
+
1
6
  === MetricFu 2.1.3 / 2012-10-25
2
7
 
3
8
  * Added to rubygems.org as bf-metric_fu -Benjamin Fleischer
data/README.md CHANGED
@@ -2,6 +2,8 @@ This fork is intended to be a maintained version of metric_fu, as [the original
2
2
 
3
3
  At this time, the gem is published on rubygems.org as bf4-metric_fu
4
4
 
5
+ There is also a related bf4-metrical gem published
6
+
5
7
  The japgolly-Saikuro fork is a part of an attempt to get metric_fu working in a modern
6
8
  Ruby environment, specifically compatibility with Ruby 1.9 and Bundler.
7
9
 
@@ -11,6 +13,13 @@ __CI Build Status__
11
13
 
12
14
  This project runs [travis-ci.org](http://travis-ci.org)
13
15
 
16
+ __Code Quality__
17
+
18
+ [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/bf4/metric_fu)
19
+
20
+ This project runs [https://codeclimate.com/](https://codeclimate.com/)
21
+
22
+
14
23
  ===============================================================================
15
24
 
16
25
  See http://metric-fu.rubyforge.org/ for documentation, or the HISTORY file for a change log.
@@ -18,7 +18,7 @@ module MetricFu
18
18
  end
19
19
  rescue Exception => e
20
20
  #catch errors for files ruby_parser fails on
21
- puts "#{e.class}\t#{e.message}\t#{class_name.inspect}\t#{sexp.inspect}\t#{e.backtrace}"
21
+ puts "RUBY PARSE FAILURE: #{e.class}\t#{e.message}\t#{file_sexp.inspect}\t#{contents.inspect}\t#{e.backtrace}"
22
22
  @locations
23
23
  end
24
24
 
@@ -37,7 +37,7 @@ describe MetricFu::LineNumbers do
37
37
 
38
38
  it "should know the name of a class method defined in a 'class << self block at a particular line" do
39
39
  ln = MetricFu::LineNumbers.new(File.read(File.dirname(__FILE__) + "/../resources/line_numbers/foo.rb"))
40
- ln.method_at_line(23).should == "Foo::neat"
40
+ ln.method_at_line(22).should == "Foo::neat"
41
41
  end
42
42
 
43
43
  it "should know the name of an instance method at a particular line in a file with two classes" do
@@ -59,4 +59,4 @@ describe MetricFu::LineNumbers do
59
59
 
60
60
  end
61
61
 
62
- end
62
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bf4-metric_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3.1
4
+ version: 2.1.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -19,7 +19,7 @@ authors:
19
19
  autorequire:
20
20
  bindir: bin
21
21
  cert_chain: []
22
- date: 2012-10-28 00:00:00.000000000 Z
22
+ date: 2012-11-15 00:00:00.000000000 Z
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency
25
25
  name: flay