yaddl 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/yaddl.rb +2 -2
  2. data/lib/yaddl/version.rb +1 -1
  3. metadata +2 -2
data/lib/yaddl.rb CHANGED
@@ -597,10 +597,10 @@ end.join } <td><%= link_to 'Show', #{name.underscore} %></td>
597
597
  models[parent]['ddl'] ||= [] if parent
598
598
  models[parent]['ddl'] << (parent ? "#{parent} > " : '') + line if parent
599
599
 
600
- place = line.sub(/^\!\!?(.*\s*)\{.*/m,'\1').strip
600
+ place = line.sub(/^\!\!?([a-zA-Z_]+\??\!?)\{.*/m,'\1').strip
601
601
  place = 'before' if place == ""
602
602
  _unique = line[1] == "!"
603
- line.sub!(line.sub(/^(\!\!?.*\s*)\{.*/m,'\1'),'')
603
+ line.sub!(line.sub(/^(\!\!?[a-zA-Z_]+\??\!?)\{.*/m,'\1'),'')
604
604
  models[parent]['code'] ||= {} if parent
605
605
  models[parent]['code'][place] ||= [] if parent
606
606
  if line[0] == "{"
data/lib/yaddl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Yaddl
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaddl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-21 00:00:00.000000000 Z
12
+ date: 2014-05-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails