iab-ActiveRecordBDBXml 0.1.8 → 0.1.9
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.
- data/lib/Marshaller.rb +15 -2
- metadata +3 -2
data/lib/Marshaller.rb
CHANGED
@@ -12,7 +12,20 @@ class ActiveRecord::Base
|
|
12
12
|
end
|
13
13
|
|
14
14
|
module Marshaller
|
15
|
-
|
15
|
+
#generates ruby require statements for each of the classes for the data model
|
16
|
+
#this is then eval'ed in the code to introduce the models into the sessions
|
17
|
+
def getRAILSClassRequiresForProductModelFromOilDef(product)
|
18
|
+
require 'ProductInterpreter'
|
19
|
+
oilfile = File.join("#{DY_MODELS}/#{product}/DSL/product.oil")
|
20
|
+
open(oilfile) {|f| @contents = f.read }
|
21
|
+
dsl = @contents.to_s
|
22
|
+
if (!dsl.include?("product :#{product}"))
|
23
|
+
raise "#{DY_MODELS}/#{product}/DSL/product.oil does NOT contain a product defintion for #{product}"
|
24
|
+
end
|
25
|
+
productModel = ProductInterpreter.execute(dsl)
|
26
|
+
end
|
27
|
+
|
28
|
+
def createXMLMessage(relation,params,nvp_format,&block)
|
16
29
|
@pqbNodes = Array.new
|
17
30
|
#dump the hash table rails builds for use in RTE message building test harness
|
18
31
|
#open('garyparams','w') { |f| YAML.dump(params, f) }
|
@@ -20,7 +33,7 @@ module Marshaller
|
|
20
33
|
xml
|
21
34
|
end
|
22
35
|
|
23
|
-
|
36
|
+
def buildXMLDocFromRailsParms(nodeName,params,nvp_format,myagg,info,&block)
|
24
37
|
if (myagg.length == 0)
|
25
38
|
xml = createNode(nodeName.to_s,params,nvp_format,myagg,&block)
|
26
39
|
else
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iab-ActiveRecordBDBXml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gary Mawdsley
|
@@ -48,6 +48,7 @@ files:
|
|
48
48
|
- lib/models/persist.rb
|
49
49
|
has_rdoc: true
|
50
50
|
homepage: http://github.com/iab/ActiveRecordBDBXml
|
51
|
+
licenses:
|
51
52
|
post_install_message:
|
52
53
|
rdoc_options:
|
53
54
|
- --inline-source
|
@@ -69,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
70
|
requirements: []
|
70
71
|
|
71
72
|
rubyforge_project: ActiveRecordBDBXml
|
72
|
-
rubygems_version: 1.
|
73
|
+
rubygems_version: 1.3.5
|
73
74
|
signing_key:
|
74
75
|
specification_version: 2
|
75
76
|
summary: ActiveRecordBDBXml is a ActiveRecord RAILS adapter for the Berkeley DB Xml - BDBXml
|