Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removing redundant file

  • Loading branch information...
commit 9902b29106e03a67d482e753ef01aeed06c7165e 1 parent a4681bb
DanielVartanov authored
Showing with 3 additions and 26 deletions.
  1. +3 −2 init.rb
  2. +0 −24 lib/newmain.rb
View
5 init.rb
@@ -14,5 +14,6 @@
"xsi" => "http://www.w3.org/2001/XMLSchema-instance"
}
-__DIR__ = File.dirname(__FILE__)
-Dir.glob(File.join(__DIR__, 'lib', '**', '*.rb')) { |filename| require filename }
+dir = File.dirname(__FILE__)
+files = %w[ active_record_mixin atom_content_mixin atom_entry_mixin conditions_builder controller_mixin diagnosis namespace_definitions payload predicate route_mapper router_mixin virtual_base]
+files.each {|file| require File.join(dir, 'lib', file) }
View
24 lib/newmain.rb
@@ -1,24 +0,0 @@
-require 'nokogiri'
-require 'atom'
-
-builder = Nokogiri::XML::Builder.new do |xml|
- xml.payload(
- 'xmlns:sdata' => "http://schemas.sage.com/sdata/2008/1") {
- xml['sdata'].tradingAccount :uuid => "00000-0000-0000-00000",
- :url => "http://www.billingboss.com/myApp/myContract/-/tradingAccounts!46630"
- }
- end
-
-#puts builder.to_xml
-
-content = Atom::Content::Xhtml.new(builder.to_xml)
-
-#require 'pp'
-#puts content
-
-entry = Atom::Entry.new
-entry.content = content
-
-#pp entry
-
-#puts entry.to_xml
Please sign in to comment.
Something went wrong with that request. Please try again.