netsuite 0.0.30 → 0.0.31

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Netsuite
2
- VERSION = '0.0.30'
2
+ VERSION = '0.0.31'
3
3
  end
@@ -1,6 +1,8 @@
1
+ require 'logger'
2
+
1
3
  module NetSuite
2
- require 'logger'
3
4
  class XmlLogger < ::Logger
5
+
4
6
  def format_message(severity, timestamp, progname, msg)
5
7
  if msg.match('<?xml') && !(msg.match('SOAPAction'))
6
8
  xp(msg)
@@ -10,7 +12,7 @@ module NetSuite
10
12
  end
11
13
 
12
14
  def xp(xml_text)
13
- xsl = <<XSL
15
+ xsl = <<-XSL
14
16
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
15
17
  <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
16
18
  <xsl:strip-space elements="*"/>
@@ -18,13 +20,11 @@ module NetSuite
18
20
  <xsl:copy-of select="."/>
19
21
  </xsl:template>
20
22
  </xsl:stylesheet>
21
- XSL
22
-
23
+ XSL
23
24
  doc = Nokogiri::XML(xml_text)
24
25
  xslt = Nokogiri::XSLT(xsl)
25
26
  out = xslt.transform(doc)
26
-
27
- puts out.to_xml
27
+ out.to_xml
28
28
  end
29
29
 
30
30
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netsuite
3
3
  version: !ruby/object:Gem::Version
4
- hash: 35
4
+ hash: 33
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 30
10
- version: 0.0.30
9
+ - 31
10
+ version: 0.0.31
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Moran