Skip to content

Commit

Permalink
added rhoconnect client api
Browse files Browse the repository at this point in the history
  • Loading branch information
cfh463 committed Apr 3, 2013
1 parent 8594551 commit 632ec17
Show file tree
Hide file tree
Showing 5 changed files with 596 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def process_xml
end

def update_xml
apiSources = ['../rhodes/lib/commonAPI/','../Motorola-Extensions/lib/commonAPI/','../rhodes/res/generators/templates/api/xml_templates/']
apiSources = ['../rhodes/lib/commonAPI/','../Motorola-Extensions/lib/commonAPI/','../rhodes/res/generators/templates/api/xml_templates/','../rhoconnect-client/ext/rhoconnect-client/ext/']

apiSources.each do |s|
apiSourceFolder = File.join(s,"**","*.xml")
Expand Down
12 changes: 8 additions & 4 deletions api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,11 @@ def self.getmethods(doc)
@methhascallback = element["hasCallback"]
end

@methdesc = element["DESC"][0]
if !element["DESC"].nil?
@methdesc = element["DESC"][0]
else
@methdesc = ""
end
methreplaces = ""
#Check to see if need to add to description about this method replacing a deprecated one
if !doc["MODULE"][0]["METHODS"].nil? && !doc["MODULE"][0]["METHODS"][0]["ALIASES"].nil? && !doc["MODULE"][0]["METHODS"][0]["ALIASES"][0].empty?
Expand Down Expand Up @@ -742,15 +746,15 @@ def self.markdown(topic)
doc = XmlSimple.xml_in(topic)
if doc["MODULE"][0]["generateDoc"].nil? || doc["MODULE"][0]["generateDoc"] == "true"
templatePropBag = true
if !doc["MODULE"][0]["TEMPLATES"][0].nil? && doc["MODULE"][0]["TEMPLATES"][0]["PROPERTY_BAG"].nil?
if !doc["MODULE"][0]["TEMPLATES"].nil? && !doc["MODULE"][0]["TEMPLATES"][0].nil? && doc["MODULE"][0]["TEMPLATES"][0]["PROPERTY_BAG"].nil?
templatePropBag = false
end
templateDefault = true
if !doc["MODULE"][0]["TEMPLATES"][0].nil? && doc["MODULE"][0]["TEMPLATES"][0]["DEFAULT_INSTANCE"].nil?
if !doc["MODULE"][0]["TEMPLATES"].nil? && !doc["MODULE"][0]["TEMPLATES"][0].nil? && doc["MODULE"][0]["TEMPLATES"][0]["DEFAULT_INSTANCE"].nil?
templateDefault = false
end
templateSingleton = true
if !doc["MODULE"][0]["TEMPLATES"][0].nil? && doc["MODULE"][0]["TEMPLATES"][0]["SINGLETON_INSTANCES"].nil?
if !doc["MODULE"][0]["TEMPLATES"].nil? && !doc["MODULE"][0]["TEMPLATES"][0].nil? && doc["MODULE"][0]["TEMPLATES"][0]["SINGLETON_INSTANCES"].nil?
templateSingleton = false
end
if templateDefault
Expand Down
Loading

0 comments on commit 632ec17

Please sign in to comment.