ditto_code 0.3.2 → 0.3.3

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 +3 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dafc04f0611997b8844763ca8524b8802e4c12a8
4
- data.tar.gz: 46d3139a7066d56bc4c5336b1a80868741face4a
3
+ metadata.gz: b1d0c322e38663309a6c47bf1af6c9a923be3da9
4
+ data.tar.gz: 9d775d7085a66dfb31e1714b648bed4df068cda5
5
5
  SHA512:
6
- metadata.gz: f18baf55edc8ec1325f74dd3eca750121f0df839646340a14f9d7e143aa87ec61e301ee205eb3099779fb9e55871211180b8b1d179c4bcbbfbb02af72054c8e8
7
- data.tar.gz: d7c3439bed824d682b13f258a5f1a5b8ef26e195e3f52118d6fac215373a3e6af4f0620d55135680de2636f92522425d4dda4733f46e50c64dc8a80837aa59db
6
+ metadata.gz: 01b9634b4b72113da0c4cd1d4fd9c28cd569293f6254123ab30a6bdc040078e37d06d33c42c6c4de73dfc8314b98406967443617d87ed4898d920b4214ec6f53
7
+ data.tar.gz: c53aa2fe1930c7681141b1f4709a37c2a7d6474f87af84a62d101c08f8ef17c6deee36ea67fbb18d37cb7d3451f73520166f22920381b0b57a59cd89953d1438
@@ -232,8 +232,9 @@ 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|begin)[\s]+/).size
236
- initializers += line.scan(/<%[@=;\s\w\d\.\:]{2,}[\s]+(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\.\:]{3,}[\s]+(case|do)[\s]+/).size
237
+ initializers += line.scan(/<%[@=;\d\w\s\.\:]{3,}(if|unless)[\s]+[@=;\d\w\s\.\:]+(?:then){1}/).size
237
238
 
238
239
  finals = line.scan(/[\s]+(end)[\s]*%>/).size
239
240
  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.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angel M Miguel