ditto_code 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dittocode/parse.rb +1 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0987b9b84f58ba555e6872dbe7213b5426fa0341
4
- data.tar.gz: cb09974765f86b9a1474b3dfdd61f3a404af31fc
3
+ metadata.gz: b7693efce39ccf6d5f4d45b6a4c4819296f93f6b
4
+ data.tar.gz: 803b0ec425e2dc30bba1ebc9578240644681b70f
5
5
  SHA512:
6
- metadata.gz: a4e8ba5a32a01c3c562eab6a872786dd488c95a5dd5a20ca37c8c23ce5e3e5a327c72c1883b0f292b7490f9e0e99ee99284187ee2111b5e3c87d3dab288fd6ae
7
- data.tar.gz: 928027d05c290c2d7bba7077391638fac36bac06a8c5b2a105465251a93ec5eb709a66183f8af007bd68703c9cb1bb6f6daaa4d9dd42c8182ffb05e07c13387b
6
+ metadata.gz: d9f8aeb62bca43e937d224bbe9df4d0f9fd780137f7c795db6d8781951beb5100bda31557bd85c80fe4b9d802e85307fd6836fdda8be54dc22540f64446c25f4
7
+ data.tar.gz: 334dbd191b394199d1b659757ffa7d2925ef32d574502b6f6dd2624c06e4a734edb91e940819161eaa8d0925027a33aa3592451756db0ddc83eea1f5384773af
@@ -238,6 +238,7 @@ module DittoCode
238
238
  finals = line.scan(/[\s]+(end)[\s]*%>/).size
239
239
  else
240
240
  initializers = line.scan(/^[\s\t]*(case|unless|if|def|do)[\s]+/).size
241
+ initializers += line.scan(/ =[\s\t]*(case|unless|if)[\s]+/).size
241
242
  initializers += line.scan(/^[\s\t]*(begin)[\s]*/).size # If, def, unless... of a start line
242
243
  initializers += line.scan(/[\s\t]+(case|do)[\s]+[|]+/).size # Case or do inside a line
243
244
  initializers += line.scan(/[\s\t]+(do)[\s]*$/).size # Finals do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ditto_code
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angel M Miguel