Permalink
Browse files

added rhoconnect client api

  • Loading branch information...
1 parent 8594551 commit 632ec172c508dcaff76d1aa7ddd6519483b2e5d3 @cfh463 cfh463 committed Apr 3, 2013
Showing with 596 additions and 5 deletions.
  1. +1 −1 Rakefile
  2. +8 −4 api.rb
  3. +303 −0 docs/api/RhoConnectClient.txt
  4. +283 −0 docs/api/RhoConnectClient.xml
  5. +1 −0 toc.rb
View
@@ -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")
View
12 api.rb
@@ -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?
@@ -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
Oops, something went wrong.

0 comments on commit 632ec17

Please sign in to comment.