dms 0.0.1 → 0.0.2

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/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dms (0.0.1)
4
+ dms (0.0.2)
5
5
  httparty (>= 0.6.1)
6
6
 
7
7
  GEM
data/lib/dms.rb CHANGED
@@ -2,9 +2,8 @@ module DMS
2
2
  require 'httparty'
3
3
  require 'openssl'
4
4
  require 'base64'
5
-
6
- autoload :API, 'dms/api'
7
- autoload :Node, 'dms/node'
5
+ require 'dms/api'
6
+ require 'dms/node'
8
7
 
9
8
  class ResourceNotFound < RuntimeError; end
10
9
  class AuthenticationError < RuntimeError; end
data/lib/dms/node.rb CHANGED
@@ -10,7 +10,7 @@ module DMS
10
10
  @name = @response.parsed_response.values.first["name"]
11
11
  @type = @response.parsed_response.values.first["type"]
12
12
  @text = @response.parsed_response.values.first["body"]
13
- @html = @response.parsed_response.values.first["body"]
13
+ @html = @response.parsed_response.values.first["html"]
14
14
  end
15
15
  end
16
16
 
data/lib/dms/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DMS
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -17,6 +17,7 @@
17
17
  <body nil="true">This is the body</body>
18
18
  <id type="integer">1</id>
19
19
  <type>Document</type>
20
+ <html>&lt;p&gt;This is the body&lt;/p&gt;</html>
20
21
  </document>
21
22
 
22
23
  401: |
data/spec/node_spec.rb CHANGED
@@ -28,6 +28,11 @@ describe DMS::Node do
28
28
  @node = DMS::Node.new(@response)
29
29
  @node.text.should == "This is the body"
30
30
  end
31
+
32
+ it "sets the @html value correct" do
33
+ @node = DMS::Node.new(@response)
34
+ @node.html.should == "<p>This is the body</p>"
35
+ end
31
36
  end
32
37
  end
33
38
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dms
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jose Fernandez