obix 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/Guardfile +5 -0
- data/LICENSE.txt +22 -0
- data/README.md +128 -0
- data/Rakefile +7 -0
- data/lib/obix.rb +55 -0
- data/lib/obix/alarms.rb +48 -0
- data/lib/obix/builder.rb +45 -0
- data/lib/obix/configuration.rb +79 -0
- data/lib/obix/errors.rb +6 -0
- data/lib/obix/history.rb +65 -0
- data/lib/obix/network.rb +76 -0
- data/lib/obix/objects.rb +46 -0
- data/lib/obix/objects/base.rb +97 -0
- data/lib/obix/objects/boolean.rb +13 -0
- data/lib/obix/objects/date.rb +15 -0
- data/lib/obix/objects/duration.rb +14 -0
- data/lib/obix/objects/enumerable.rb +13 -0
- data/lib/obix/objects/error.rb +26 -0
- data/lib/obix/objects/feed.rb +14 -0
- data/lib/obix/objects/float.rb +16 -0
- data/lib/obix/objects/integer.rb +15 -0
- data/lib/obix/objects/list.rb +14 -0
- data/lib/obix/objects/object.rb +20 -0
- data/lib/obix/objects/operation.rb +28 -0
- data/lib/obix/objects/reference.rb +10 -0
- data/lib/obix/objects/string.rb +14 -0
- data/lib/obix/objects/time.rb +15 -0
- data/lib/obix/objects/uri.rb +13 -0
- data/lib/obix/tag.rb +43 -0
- data/lib/obix/types.rb +15 -0
- data/lib/obix/types/boolean.rb +25 -0
- data/lib/obix/types/date.rb +20 -0
- data/lib/obix/types/duration.rb +21 -0
- data/lib/obix/types/float.rb +18 -0
- data/lib/obix/types/integer.rb +18 -0
- data/lib/obix/types/string.rb +18 -0
- data/lib/obix/types/time.rb +20 -0
- data/lib/obix/types/type.rb +17 -0
- data/lib/obix/types/uri.rb +28 -0
- data/lib/obix/version.rb +3 -0
- data/lib/obix/watch.rb +119 -0
- data/obix.gemspec +31 -0
- data/test/fixtures/alarmqueryout.xml +19 -0
- data/test/fixtures/alarmsubject.xml +5 -0
- data/test/fixtures/history.xml +9 -0
- data/test/fixtures/historyqueryout.xml +15 -0
- data/test/fixtures/invalid.xml +1 -0
- data/test/fixtures/objects/boolean.xml +1 -0
- data/test/fixtures/objects/date.xml +1 -0
- data/test/fixtures/objects/duration.xml +1 -0
- data/test/fixtures/objects/enumerable.xml +1 -0
- data/test/fixtures/objects/error.xml +1 -0
- data/test/fixtures/objects/feed.xml +4 -0
- data/test/fixtures/objects/float.xml +1 -0
- data/test/fixtures/objects/integer.xml +1 -0
- data/test/fixtures/objects/list.xml +4 -0
- data/test/fixtures/objects/object.xml +1 -0
- data/test/fixtures/objects/operation.xml +1 -0
- data/test/fixtures/objects/reference.xml +1 -0
- data/test/fixtures/objects/string.xml +1 -0
- data/test/fixtures/objects/time.xml +1 -0
- data/test/fixtures/objects/uri.xml +1 -0
- data/test/fixtures/valid.xml +11 -0
- data/test/fixtures/watch.xml +8 -0
- data/test/fixtures/watchout.xml +5 -0
- data/test/fixtures/watchservice.xml +3 -0
- data/test/obix/alarms_test.rb +36 -0
- data/test/obix/builder_test.rb +32 -0
- data/test/obix/configuration_test.rb +32 -0
- data/test/obix/history_test.rb +54 -0
- data/test/obix/network_test.rb +134 -0
- data/test/obix/objects/base_test.rb +54 -0
- data/test/obix/objects/boolean_test.rb +17 -0
- data/test/obix/objects/date_test.rb +16 -0
- data/test/obix/objects/duration_test.rb +16 -0
- data/test/obix/objects/enumerable_test.rb +17 -0
- data/test/obix/objects/error_test.rb +47 -0
- data/test/obix/objects/feed_test.rb +16 -0
- data/test/obix/objects/float_test.rb +16 -0
- data/test/obix/objects/integer_test.rb +16 -0
- data/test/obix/objects/list_test.rb +17 -0
- data/test/obix/objects/object_test.rb +17 -0
- data/test/obix/objects/operation_test.rb +37 -0
- data/test/obix/objects/reference_test.rb +16 -0
- data/test/obix/objects/string_test.rb +16 -0
- data/test/obix/objects/time_test.rb +16 -0
- data/test/obix/objects/uri_test.rb +16 -0
- data/test/obix/objects_test.rb +13 -0
- data/test/obix/tag_test.rb +42 -0
- data/test/obix/types/boolean_test.rb +18 -0
- data/test/obix/types/date_test.rb +20 -0
- data/test/obix/types/duration_test.rb +18 -0
- data/test/obix/types/float_test.rb +18 -0
- data/test/obix/types/integer_test.rb +18 -0
- data/test/obix/types/string_test.rb +18 -0
- data/test/obix/types/time_test.rb +20 -0
- data/test/obix/types/uri_test.rb +48 -0
- data/test/obix/watch_test.rb +169 -0
- data/test/obix_test.rb +42 -0
- data/test/test_helper.rb +18 -0
- metadata +357 -0
@@ -0,0 +1,18 @@
|
|
1
|
+
require "obix"
|
2
|
+
require "minitest/unit"
|
3
|
+
require "minitest/autorun"
|
4
|
+
require "nokogiri"
|
5
|
+
require "active_support/all"
|
6
|
+
|
7
|
+
require "test_helper"
|
8
|
+
|
9
|
+
class IntegerTest < MiniTest::Unit::TestCase
|
10
|
+
def setup
|
11
|
+
@object = OBIX::Objects::Object.new
|
12
|
+
@type = OBIX::Types::Integer.new @object
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_cast
|
16
|
+
assert_equal 1, @type.cast("1")
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require "obix"
|
2
|
+
require "minitest/unit"
|
3
|
+
require "minitest/autorun"
|
4
|
+
require "nokogiri"
|
5
|
+
require "active_support/all"
|
6
|
+
|
7
|
+
require "test_helper"
|
8
|
+
|
9
|
+
class StringTest < MiniTest::Unit::TestCase
|
10
|
+
def setup
|
11
|
+
@object = OBIX::Objects::Object.new
|
12
|
+
@type = OBIX::Types::String.new @object
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_cast
|
16
|
+
assert_equal "foo", @type.cast("foo")
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require "obix"
|
2
|
+
require "minitest/unit"
|
3
|
+
require "minitest/autorun"
|
4
|
+
require "nokogiri"
|
5
|
+
require "active_support/all"
|
6
|
+
|
7
|
+
require "test_helper"
|
8
|
+
|
9
|
+
class TimeTest < MiniTest::Unit::TestCase
|
10
|
+
def setup
|
11
|
+
@object = OBIX::Objects::Object.new
|
12
|
+
@type = OBIX::Types::Time.new @object
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_cast
|
16
|
+
time = "2005-03-09T13:30:00Z"
|
17
|
+
|
18
|
+
assert_equal DateTime.parse(time), @type.cast(time)
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require "obix"
|
2
|
+
require "minitest/unit"
|
3
|
+
require "minitest/autorun"
|
4
|
+
require "nokogiri"
|
5
|
+
require "active_support/all"
|
6
|
+
|
7
|
+
require "test_helper"
|
8
|
+
|
9
|
+
class URITest < MiniTest::Unit::TestCase
|
10
|
+
def setup
|
11
|
+
@object = OBIX::Objects::Object.new
|
12
|
+
@type = OBIX::Types::URI.new @object
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_cast
|
16
|
+
assert_equal "http://example.org/", @type.cast("http://example.org/")
|
17
|
+
end
|
18
|
+
|
19
|
+
def test_concatenates
|
20
|
+
obix = OBIX::Builder.new do |obix|
|
21
|
+
obix.obj href: "http://domain/" do |obix|
|
22
|
+
obix.obj href: "path/"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
assert_equal "http://domain/path/", obix.object.objects.first.href
|
27
|
+
end
|
28
|
+
|
29
|
+
def test_derives_host
|
30
|
+
builder = OBIX::Builder.new do
|
31
|
+
obj href: "/path/" do
|
32
|
+
obj href: "to/"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
OBIX::Network.
|
37
|
+
expects(
|
38
|
+
:get
|
39
|
+
).
|
40
|
+
returns(
|
41
|
+
builder.object.to_xml
|
42
|
+
)
|
43
|
+
|
44
|
+
object = OBIX.parse url: "/path/"
|
45
|
+
|
46
|
+
assert_equal "http://example.org/path/to/", object.objects.first.href
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,169 @@
|
|
1
|
+
require "obix"
|
2
|
+
require "minitest/unit"
|
3
|
+
require "minitest/autorun"
|
4
|
+
require "active_support/all"
|
5
|
+
|
6
|
+
require "test_helper"
|
7
|
+
|
8
|
+
class WatchTest < MiniTest::Unit::TestCase
|
9
|
+
def test_connect
|
10
|
+
watch = OBIX::Watch.connect file: "test/fixtures/watch.xml"
|
11
|
+
|
12
|
+
assert_instance_of OBIX::Watch, watch
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_make
|
16
|
+
OBIX::Objects::Operation.any_instance.
|
17
|
+
expects(
|
18
|
+
:invoke
|
19
|
+
).
|
20
|
+
returns(
|
21
|
+
OBIX.parse file: "test/fixtures/watch.xml"
|
22
|
+
)
|
23
|
+
|
24
|
+
watch = OBIX::Watch.make file: "test/fixtures/watchservice.xml"
|
25
|
+
|
26
|
+
assert_instance_of OBIX::Watch, watch
|
27
|
+
end
|
28
|
+
|
29
|
+
def test_url
|
30
|
+
OBIX::Objects::Operation.any_instance.
|
31
|
+
expects(
|
32
|
+
:invoke
|
33
|
+
).
|
34
|
+
returns(
|
35
|
+
OBIX.parse file: "test/fixtures/watch.xml"
|
36
|
+
)
|
37
|
+
|
38
|
+
watch = OBIX::Watch.make file: "test/fixtures/watchservice.xml"
|
39
|
+
|
40
|
+
assert_equal "http://domain/watchservice/watch32/", watch.url
|
41
|
+
end
|
42
|
+
|
43
|
+
def test_lease
|
44
|
+
OBIX::Objects::Operation.any_instance.
|
45
|
+
expects(
|
46
|
+
:invoke
|
47
|
+
).
|
48
|
+
returns(
|
49
|
+
OBIX.parse file: "test/fixtures/watch.xml"
|
50
|
+
)
|
51
|
+
|
52
|
+
watch = OBIX::Watch.make file: "test/fixtures/watchservice.xml"
|
53
|
+
|
54
|
+
assert_equal 10, watch.lease
|
55
|
+
end
|
56
|
+
|
57
|
+
def test_add
|
58
|
+
OBIX::Objects::Operation.any_instance.
|
59
|
+
expects(
|
60
|
+
:invoke
|
61
|
+
).
|
62
|
+
returns(
|
63
|
+
OBIX.parse file: "test/fixtures/watch.xml"
|
64
|
+
)
|
65
|
+
|
66
|
+
watch = OBIX::Watch.make file: "test/fixtures/watchservice.xml"
|
67
|
+
|
68
|
+
OBIX::Objects::Operation.any_instance.
|
69
|
+
expects(
|
70
|
+
:invoke
|
71
|
+
).
|
72
|
+
returns(
|
73
|
+
OBIX.parse file: "test/fixtures/watchout.xml"
|
74
|
+
)
|
75
|
+
|
76
|
+
result = watch.add ["/thermostat/"]
|
77
|
+
end
|
78
|
+
|
79
|
+
def test_remove
|
80
|
+
OBIX::Objects::Operation.any_instance.
|
81
|
+
expects(
|
82
|
+
:invoke
|
83
|
+
).
|
84
|
+
returns(
|
85
|
+
OBIX.parse file: "test/fixtures/watch.xml"
|
86
|
+
)
|
87
|
+
|
88
|
+
watch = OBIX::Watch.make file: "test/fixtures/watchservice.xml"
|
89
|
+
|
90
|
+
OBIX::Objects::Operation.any_instance.
|
91
|
+
expects(
|
92
|
+
:invoke
|
93
|
+
).
|
94
|
+
returns(
|
95
|
+
OBIX.parse file: "test/fixtures/watchout.xml"
|
96
|
+
)
|
97
|
+
|
98
|
+
watch.remove ["/thermostat/"]
|
99
|
+
end
|
100
|
+
|
101
|
+
def test_changes
|
102
|
+
OBIX::Objects::Operation.any_instance.
|
103
|
+
expects(
|
104
|
+
:invoke
|
105
|
+
).
|
106
|
+
returns(
|
107
|
+
OBIX.parse file: "test/fixtures/watch.xml"
|
108
|
+
)
|
109
|
+
|
110
|
+
watch = OBIX::Watch.make file: "test/fixtures/watchservice.xml"
|
111
|
+
|
112
|
+
OBIX::Objects::Operation.any_instance.
|
113
|
+
expects(
|
114
|
+
:invoke
|
115
|
+
).
|
116
|
+
returns(
|
117
|
+
OBIX.parse file: "test/fixtures/watchout.xml"
|
118
|
+
)
|
119
|
+
|
120
|
+
changes = watch.changes
|
121
|
+
|
122
|
+
assert_equal "http://example.org/thermostat/", changes.first.href
|
123
|
+
assert_equal 39.28, changes.first.val
|
124
|
+
end
|
125
|
+
|
126
|
+
def test_all
|
127
|
+
OBIX::Objects::Operation.any_instance.
|
128
|
+
expects(
|
129
|
+
:invoke
|
130
|
+
).
|
131
|
+
returns(
|
132
|
+
OBIX.parse file: "test/fixtures/watch.xml"
|
133
|
+
)
|
134
|
+
|
135
|
+
watch = OBIX::Watch.make file: "test/fixtures/watchservice.xml"
|
136
|
+
|
137
|
+
OBIX::Objects::Operation.any_instance.
|
138
|
+
expects(
|
139
|
+
:invoke
|
140
|
+
).
|
141
|
+
returns(
|
142
|
+
OBIX.parse file: "test/fixtures/watchout.xml"
|
143
|
+
)
|
144
|
+
|
145
|
+
changes = watch.all
|
146
|
+
|
147
|
+
assert_equal "http://example.org/thermostat/", changes.first.href
|
148
|
+
assert_equal 39.28, changes.first.val
|
149
|
+
end
|
150
|
+
|
151
|
+
def test_delete
|
152
|
+
OBIX::Objects::Operation.any_instance.
|
153
|
+
expects(
|
154
|
+
:invoke
|
155
|
+
).
|
156
|
+
returns(
|
157
|
+
OBIX.parse file: "test/fixtures/watch.xml"
|
158
|
+
)
|
159
|
+
|
160
|
+
watch = OBIX::Watch.make file: "test/fixtures/watchservice.xml"
|
161
|
+
|
162
|
+
OBIX::Objects::Operation.any_instance.
|
163
|
+
expects(
|
164
|
+
:invoke
|
165
|
+
)
|
166
|
+
|
167
|
+
changes = watch.delete
|
168
|
+
end
|
169
|
+
end
|
data/test/obix_test.rb
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
require "obix"
|
2
|
+
require "minitest/unit"
|
3
|
+
require "minitest/autorun"
|
4
|
+
require "active_support/all"
|
5
|
+
|
6
|
+
require "test_helper"
|
7
|
+
|
8
|
+
class OBIXTest < MiniTest::Unit::TestCase
|
9
|
+
def test_parses_from_string
|
10
|
+
xml = fixture "valid.xml"
|
11
|
+
|
12
|
+
object = OBIX.parse string: xml
|
13
|
+
|
14
|
+
assert_instance_of OBIX::Objects::Object, object
|
15
|
+
end
|
16
|
+
|
17
|
+
def test_parses_from_url
|
18
|
+
xml = fixture "valid.xml"
|
19
|
+
|
20
|
+
OBIX::Network.
|
21
|
+
expects(
|
22
|
+
:get
|
23
|
+
).
|
24
|
+
returns(
|
25
|
+
fixture "valid.xml"
|
26
|
+
)
|
27
|
+
|
28
|
+
object = OBIX.parse url: "http://domain/thermostat"
|
29
|
+
|
30
|
+
assert_instance_of OBIX::Objects::Object, object
|
31
|
+
end
|
32
|
+
|
33
|
+
def test_parses_from_file
|
34
|
+
xml = fixture "valid.xml"
|
35
|
+
|
36
|
+
File.stubs(:read).returns(xml)
|
37
|
+
|
38
|
+
object = OBIX.parse file: "valid.xml"
|
39
|
+
|
40
|
+
assert_instance_of OBIX::Objects::Object, object
|
41
|
+
end
|
42
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require "mocha/setup"
|
2
|
+
|
3
|
+
OBIX.configure do |config|
|
4
|
+
config.scheme = "http"
|
5
|
+
config.host = "example.org"
|
6
|
+
end
|
7
|
+
|
8
|
+
class MiniTest::Unit::TestCase
|
9
|
+
|
10
|
+
# Read the given fixture.
|
11
|
+
#
|
12
|
+
# path - A String describing the path to the fixture.
|
13
|
+
#
|
14
|
+
# Return the fixture as a String.
|
15
|
+
def fixture path
|
16
|
+
File.read "test/fixtures/#{path}"
|
17
|
+
end
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,357 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: obix
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Johannes Gorset
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-05-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: mocha
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: guard
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: guard-minitest
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rb-inotify
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rb-fsevent
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rb-fchange
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: nokogiri
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rdf-xsd
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: equivalent-xml
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - '>='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - '>='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: activesupport
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - '>='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - '>='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
description: oBIX parser
|
168
|
+
email:
|
169
|
+
- jgorset@gmail.com
|
170
|
+
executables: []
|
171
|
+
extensions: []
|
172
|
+
extra_rdoc_files: []
|
173
|
+
files:
|
174
|
+
- .gitignore
|
175
|
+
- Gemfile
|
176
|
+
- Guardfile
|
177
|
+
- LICENSE.txt
|
178
|
+
- README.md
|
179
|
+
- Rakefile
|
180
|
+
- lib/obix.rb
|
181
|
+
- lib/obix/alarms.rb
|
182
|
+
- lib/obix/builder.rb
|
183
|
+
- lib/obix/configuration.rb
|
184
|
+
- lib/obix/errors.rb
|
185
|
+
- lib/obix/history.rb
|
186
|
+
- lib/obix/network.rb
|
187
|
+
- lib/obix/objects.rb
|
188
|
+
- lib/obix/objects/base.rb
|
189
|
+
- lib/obix/objects/boolean.rb
|
190
|
+
- lib/obix/objects/date.rb
|
191
|
+
- lib/obix/objects/duration.rb
|
192
|
+
- lib/obix/objects/enumerable.rb
|
193
|
+
- lib/obix/objects/error.rb
|
194
|
+
- lib/obix/objects/feed.rb
|
195
|
+
- lib/obix/objects/float.rb
|
196
|
+
- lib/obix/objects/integer.rb
|
197
|
+
- lib/obix/objects/list.rb
|
198
|
+
- lib/obix/objects/object.rb
|
199
|
+
- lib/obix/objects/operation.rb
|
200
|
+
- lib/obix/objects/reference.rb
|
201
|
+
- lib/obix/objects/string.rb
|
202
|
+
- lib/obix/objects/time.rb
|
203
|
+
- lib/obix/objects/uri.rb
|
204
|
+
- lib/obix/tag.rb
|
205
|
+
- lib/obix/types.rb
|
206
|
+
- lib/obix/types/boolean.rb
|
207
|
+
- lib/obix/types/date.rb
|
208
|
+
- lib/obix/types/duration.rb
|
209
|
+
- lib/obix/types/float.rb
|
210
|
+
- lib/obix/types/integer.rb
|
211
|
+
- lib/obix/types/string.rb
|
212
|
+
- lib/obix/types/time.rb
|
213
|
+
- lib/obix/types/type.rb
|
214
|
+
- lib/obix/types/uri.rb
|
215
|
+
- lib/obix/version.rb
|
216
|
+
- lib/obix/watch.rb
|
217
|
+
- obix.gemspec
|
218
|
+
- test/fixtures/alarmqueryout.xml
|
219
|
+
- test/fixtures/alarmsubject.xml
|
220
|
+
- test/fixtures/history.xml
|
221
|
+
- test/fixtures/historyqueryout.xml
|
222
|
+
- test/fixtures/invalid.xml
|
223
|
+
- test/fixtures/objects/boolean.xml
|
224
|
+
- test/fixtures/objects/date.xml
|
225
|
+
- test/fixtures/objects/duration.xml
|
226
|
+
- test/fixtures/objects/enumerable.xml
|
227
|
+
- test/fixtures/objects/error.xml
|
228
|
+
- test/fixtures/objects/feed.xml
|
229
|
+
- test/fixtures/objects/float.xml
|
230
|
+
- test/fixtures/objects/integer.xml
|
231
|
+
- test/fixtures/objects/list.xml
|
232
|
+
- test/fixtures/objects/object.xml
|
233
|
+
- test/fixtures/objects/operation.xml
|
234
|
+
- test/fixtures/objects/reference.xml
|
235
|
+
- test/fixtures/objects/string.xml
|
236
|
+
- test/fixtures/objects/time.xml
|
237
|
+
- test/fixtures/objects/uri.xml
|
238
|
+
- test/fixtures/valid.xml
|
239
|
+
- test/fixtures/watch.xml
|
240
|
+
- test/fixtures/watchout.xml
|
241
|
+
- test/fixtures/watchservice.xml
|
242
|
+
- test/obix/alarms_test.rb
|
243
|
+
- test/obix/builder_test.rb
|
244
|
+
- test/obix/configuration_test.rb
|
245
|
+
- test/obix/history_test.rb
|
246
|
+
- test/obix/network_test.rb
|
247
|
+
- test/obix/objects/base_test.rb
|
248
|
+
- test/obix/objects/boolean_test.rb
|
249
|
+
- test/obix/objects/date_test.rb
|
250
|
+
- test/obix/objects/duration_test.rb
|
251
|
+
- test/obix/objects/enumerable_test.rb
|
252
|
+
- test/obix/objects/error_test.rb
|
253
|
+
- test/obix/objects/feed_test.rb
|
254
|
+
- test/obix/objects/float_test.rb
|
255
|
+
- test/obix/objects/integer_test.rb
|
256
|
+
- test/obix/objects/list_test.rb
|
257
|
+
- test/obix/objects/object_test.rb
|
258
|
+
- test/obix/objects/operation_test.rb
|
259
|
+
- test/obix/objects/reference_test.rb
|
260
|
+
- test/obix/objects/string_test.rb
|
261
|
+
- test/obix/objects/time_test.rb
|
262
|
+
- test/obix/objects/uri_test.rb
|
263
|
+
- test/obix/objects_test.rb
|
264
|
+
- test/obix/tag_test.rb
|
265
|
+
- test/obix/types/boolean_test.rb
|
266
|
+
- test/obix/types/date_test.rb
|
267
|
+
- test/obix/types/duration_test.rb
|
268
|
+
- test/obix/types/float_test.rb
|
269
|
+
- test/obix/types/integer_test.rb
|
270
|
+
- test/obix/types/string_test.rb
|
271
|
+
- test/obix/types/time_test.rb
|
272
|
+
- test/obix/types/uri_test.rb
|
273
|
+
- test/obix/watch_test.rb
|
274
|
+
- test/obix_test.rb
|
275
|
+
- test/test_helper.rb
|
276
|
+
homepage: http://github.com/hyperoslo/ruby-obix
|
277
|
+
licenses: []
|
278
|
+
metadata: {}
|
279
|
+
post_install_message:
|
280
|
+
rdoc_options: []
|
281
|
+
require_paths:
|
282
|
+
- lib
|
283
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
284
|
+
requirements:
|
285
|
+
- - '>='
|
286
|
+
- !ruby/object:Gem::Version
|
287
|
+
version: '0'
|
288
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - '>='
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: '0'
|
293
|
+
requirements: []
|
294
|
+
rubyforge_project:
|
295
|
+
rubygems_version: 2.0.0
|
296
|
+
signing_key:
|
297
|
+
specification_version: 4
|
298
|
+
summary: oBIX parser
|
299
|
+
test_files:
|
300
|
+
- test/fixtures/alarmqueryout.xml
|
301
|
+
- test/fixtures/alarmsubject.xml
|
302
|
+
- test/fixtures/history.xml
|
303
|
+
- test/fixtures/historyqueryout.xml
|
304
|
+
- test/fixtures/invalid.xml
|
305
|
+
- test/fixtures/objects/boolean.xml
|
306
|
+
- test/fixtures/objects/date.xml
|
307
|
+
- test/fixtures/objects/duration.xml
|
308
|
+
- test/fixtures/objects/enumerable.xml
|
309
|
+
- test/fixtures/objects/error.xml
|
310
|
+
- test/fixtures/objects/feed.xml
|
311
|
+
- test/fixtures/objects/float.xml
|
312
|
+
- test/fixtures/objects/integer.xml
|
313
|
+
- test/fixtures/objects/list.xml
|
314
|
+
- test/fixtures/objects/object.xml
|
315
|
+
- test/fixtures/objects/operation.xml
|
316
|
+
- test/fixtures/objects/reference.xml
|
317
|
+
- test/fixtures/objects/string.xml
|
318
|
+
- test/fixtures/objects/time.xml
|
319
|
+
- test/fixtures/objects/uri.xml
|
320
|
+
- test/fixtures/valid.xml
|
321
|
+
- test/fixtures/watch.xml
|
322
|
+
- test/fixtures/watchout.xml
|
323
|
+
- test/fixtures/watchservice.xml
|
324
|
+
- test/obix/alarms_test.rb
|
325
|
+
- test/obix/builder_test.rb
|
326
|
+
- test/obix/configuration_test.rb
|
327
|
+
- test/obix/history_test.rb
|
328
|
+
- test/obix/network_test.rb
|
329
|
+
- test/obix/objects/base_test.rb
|
330
|
+
- test/obix/objects/boolean_test.rb
|
331
|
+
- test/obix/objects/date_test.rb
|
332
|
+
- test/obix/objects/duration_test.rb
|
333
|
+
- test/obix/objects/enumerable_test.rb
|
334
|
+
- test/obix/objects/error_test.rb
|
335
|
+
- test/obix/objects/feed_test.rb
|
336
|
+
- test/obix/objects/float_test.rb
|
337
|
+
- test/obix/objects/integer_test.rb
|
338
|
+
- test/obix/objects/list_test.rb
|
339
|
+
- test/obix/objects/object_test.rb
|
340
|
+
- test/obix/objects/operation_test.rb
|
341
|
+
- test/obix/objects/reference_test.rb
|
342
|
+
- test/obix/objects/string_test.rb
|
343
|
+
- test/obix/objects/time_test.rb
|
344
|
+
- test/obix/objects/uri_test.rb
|
345
|
+
- test/obix/objects_test.rb
|
346
|
+
- test/obix/tag_test.rb
|
347
|
+
- test/obix/types/boolean_test.rb
|
348
|
+
- test/obix/types/date_test.rb
|
349
|
+
- test/obix/types/duration_test.rb
|
350
|
+
- test/obix/types/float_test.rb
|
351
|
+
- test/obix/types/integer_test.rb
|
352
|
+
- test/obix/types/string_test.rb
|
353
|
+
- test/obix/types/time_test.rb
|
354
|
+
- test/obix/types/uri_test.rb
|
355
|
+
- test/obix/watch_test.rb
|
356
|
+
- test/obix_test.rb
|
357
|
+
- test/test_helper.rb
|