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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f73c0fdee49ab3924a4a54c9f2eae17d2e8ed9d0
|
4
|
+
data.tar.gz: d8ea19380c6292ea0e05f7abcfc14c02c9258af6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 "
|
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 "
|
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
|
data/scaffold_parser.gemspec
CHANGED
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.
|
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-
|
11
|
+
date: 2018-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xsd_model
|