scaffold_parser 0.8.0 → 0.9.0

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: 96091a0980204269f8a932357cb225cd1d2d9ae8
4
- data.tar.gz: 7ab015075a04be35f3199cfd399b6b14747b1bdd
3
+ metadata.gz: f73c0fdee49ab3924a4a54c9f2eae17d2e8ed9d0
4
+ data.tar.gz: d8ea19380c6292ea0e05f7abcfc14c02c9258af6
5
5
  SHA512:
6
- metadata.gz: df55b57182decf235dca79704cef3238b60330143620ddf55ab351126ff4c6457d42fe00724e7bcd92193db3b25a73d5b5aa636014b6a3dc75765ba8dd812963
7
- data.tar.gz: 61fa3c5464cd7c0e8970daa7d96f7a113e238e11ea0362d0cece1b679a1ae86a4607ab48428b26195fcb9060dd34c7eea797843b04a3df2f655c1ed03c302304
6
+ metadata.gz: 1276523459199eab21d88f73499137fb64b0470c99d4667ca04be3c9b23f54e1a461a03d1641cc5226f2cc3cc58d7aa2ae27a5b7140acdbbb96165b5d4370b9b
7
+ data.tar.gz: ba0943f8c1d19e392099447381ac829a9ce0acb28d25253cbae9cd20091fc133aa59721df1f546a182aa2fff9450a6eb3f2c76fb795a537693af26f48a46e6e0
@@ -101,9 +101,7 @@ module ScaffoldParser
101
101
  f.puts
102
102
  f.puts " def builder"
103
103
  f.puts " root = Ox::Element.new(name)"
104
- f.puts " if data.key? :attributes"
105
- f.puts " data[:attributes].each { |k, v| root[k] = v }"
106
- f.puts " end"
104
+ f.puts " root = add_attributes_and_namespaces(root)"
107
105
  f.puts
108
106
  if inherit_from
109
107
  f.puts " super.nodes.each do |n|"
@@ -65,9 +65,7 @@ module ScaffoldParser
65
65
  meth = StringIO.new
66
66
  meth.puts " def builder"
67
67
  meth.puts " root = Ox::Element.new(name)"
68
- meth.puts " if data.key? :attributes"
69
- meth.puts " data[:attributes].each { |k, v| root[k] = v }"
70
- meth.puts " end"
68
+ meth.puts " root = add_attributes_and_namespaces(root)"
71
69
  meth.puts
72
70
  meth.puts methods.map { |method| indent(indent(method.to_builder.lines)).join }.join("\n")
73
71
  meth.puts
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = 'scaffold_parser'
6
- spec.version = '0.8.0'
6
+ spec.version = '0.9.0'
7
7
  spec.authors = ['Premysl Donat']
8
8
  spec.email = ['pdonat@seznam.cz']
9
9
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scaffold_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Premysl Donat
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-21 00:00:00.000000000 Z
11
+ date: 2018-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xsd_model