fukuzatsu 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae1e5630765bd90dbe2a9e699e908fdcd2a98572
4
- data.tar.gz: b3108dfe80f60f0386416d754b0766631f10fc79
3
+ metadata.gz: 622d8c7306555088bb10339f778eae368dab9968
4
+ data.tar.gz: 60dee104888382877a90a9e542cab6420b723280
5
5
  SHA512:
6
- metadata.gz: b1b43985860745622a8fc86eb28162334e3c3cdb0fbd5c7d87485bb15e4b77e083e3e0ffe63eac3434c370ecbabdeae1705bc618104cbe1ad21f1c87c3d2ac0f
7
- data.tar.gz: 655bef7e49ab151b0dae561b96254601db3a4ee692805d249133bca64599daee2b6f87120e7e4f2a0e172c1779c1452058039357a85cd325de7d13881abc8740
6
+ metadata.gz: 87e0a9c75f497346fbd7accdbb3a317b46e558f4b26bd41e49f11dd11e3d411a2eb0a8b803918b1228b74af6d03e7cecc625e7445028a42c65575e558d14e26a
7
+ data.tar.gz: 460ed046491b966a49184391af65b060956935083b730ead9f9d880ab8a1cb43148cd49ed594687e2500a0aa1c240ce61c71cf9806a033b47bf3d5ab11712c31
data/README.md CHANGED
@@ -1,12 +1,14 @@
1
1
  # Fukuzatsu
2
2
 
3
+ *Note: this gem is a work in progress and should not be considered production-ready until version 1.0*
4
+
3
5
  Fukuzatsu ("complexity") is a tool for measuring code complexity in Ruby class files. Its analysis is based on a cycomatic complexity algorithm.
4
6
 
5
7
  You can learn more about cyclomatic complexity at http://en.wikipedia.org/wiki/Cyclomatic_complexity
6
8
 
7
9
  Why should you care about this kind of complexity? More complex code tends to attract bugs and to increase the friction around extending features or refactoring code.
8
10
 
9
- Fukuzatsu was inspired by Saikuro, written by Zev Blut.
11
+ Fukuzatsu was created by Coraline Ada Ehmke with invaluable assistance from Mike Ziwisky (mziwisky). It was inspired by Saikuro, written by Zev Blut.
10
12
 
11
13
  ## Installation
12
14
 
@@ -2,7 +2,7 @@ require 'parser/current'
2
2
 
3
3
  class Analyzer
4
4
 
5
- CONDITIONALS = [:if]
5
+ CONDITIONALS = [:if, :or_asgn, :and_asgn, :or, :and]
6
6
 
7
7
  attr_accessor :content, :class_name, :edges, :nodes, :exits
8
8
 
@@ -1,3 +1,3 @@
1
1
  module Fukuzatsu
2
- VERSION = "0.9.5"
2
+ VERSION = "0.9.6"
3
3
  end
@@ -22,7 +22,7 @@ class Breathalizer
22
22
  end
23
23
 
24
24
  def file_contents
25
- File.open(path_to_file, "r").read
25
+ contents ||= File.open(path_to_file, "r").read
26
26
  end
27
27
 
28
28
  def parsed
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fukuzatsu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bantik