ditto_code 0.3.1 → 0.3.2

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 +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e1fd99e5c18ccdae4d442fee9e42291c1b93ed8
4
- data.tar.gz: a01eb14cfebccf271da712f0a41e7613e1e25c8f
3
+ metadata.gz: dafc04f0611997b8844763ca8524b8802e4c12a8
4
+ data.tar.gz: 46d3139a7066d56bc4c5336b1a80868741face4a
5
5
  SHA512:
6
- metadata.gz: 5ca50bc3b6b2ae8657e2bd9d3e274bccb0a782a28304d3f5364b4ba0eccad21285ff160492dab1c9e0dda04b91c12d0307f6f9efbfa090f7fa328f186185dc25
7
- data.tar.gz: 85ac19f0d9285ad3a94b5e574a058fddb9dd56e9b4234ad9c85cf71de0936a856a1ffe5f6a4c75f6b1554c8b7dddb771984a726a43587dcfb4f88c66c923bfb8
6
+ metadata.gz: f18baf55edc8ec1325f74dd3eca750121f0df839646340a14f9d7e143aa87ec61e301ee205eb3099779fb9e55871211180b8b1d179c4bcbbfbb02af72054c8e8
7
+ data.tar.gz: d7c3439bed824d682b13f258a5f1a5b8ef26e195e3f52118d6fac215373a3e6af4f0620d55135680de2636f92522425d4dda4733f46e50c64dc8a80837aa59db
@@ -232,8 +232,8 @@ module DittoCode
232
232
 
233
233
  # Get the initializers and the ends of the blocks
234
234
  if @isView
235
- initializers = line.scan(/<%[\s]*(case|unless|if|do|def|begin)[\s]+/).size
236
- initializers += line.scan(/<%[@=;\s\w\d\.\:]{2,}(case|unless|if|do)[\s]+/).size
235
+ initializers = line.scan(/<%[\s]*(case|unless|if|do|begin)[\s]+/).size
236
+ initializers += line.scan(/<%[@=;\s\w\d\.\:]{2,}[\s]+(case|unless|if|do)[\s]+/).size
237
237
 
238
238
  finals = line.scan(/[\s]+(end)[\s]*%>/).size
239
239
  else
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.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angel M Miguel