cosm-rb 0.2.07 → 0.2.09
Sign up to get free protection for your applications and to get access to all the features.
- data/.rbenv-version +1 -1
- data/.travis.yml +3 -2
- data/Gemfile +11 -0
- data/README.md +0 -8
- data/Rakefile +1 -13
- data/cosm-rb.gemspec +0 -9
- data/lib/cosm-rb/base/instance_methods.rb +1 -1
- data/lib/cosm-rb/client.rb +36 -0
- data/lib/cosm-rb/feed.rb +1 -1
- data/lib/cosm-rb/helpers.rb +1 -1
- data/lib/cosm-rb/templates/csv/feed_defaults.rb +1 -1
- data/lib/cosm-rb/templates/json/feed_defaults.rb +3 -1
- data/lib/cosm-rb/templates/xml/feed_defaults.rb +2 -0
- data/lib/cosm-rb/templates/xml/search_result_defaults.rb +2 -0
- data/lib/cosm-rb/version.rb +1 -1
- data/spec/cosm-rb/client_spec.rb +44 -0
- data/spec/cosm-rb/feed_spec.rb +1 -1
- data/spec/cosm-rb/helpers_spec.rb +2 -2
- data/spec/cosm-rb/parsers/csv/feed_defaults_spec.rb +4 -4
- data/spec/cosm-rb/parsers/xml/datastream_defaults_spec.rb +8 -8
- data/spec/cosm-rb/parsers/xml/feed_defaults_spec.rb +12 -12
- data/spec/cosm-rb/templates/json/feed_defaults_spec.rb +4 -2
- data/spec/cosm-rb/templates/json/search_result_defaults_spec.rb +2 -2
- data/spec/cosm-rb/templates/xml/datastream_defaults_spec.rb +1 -1
- data/spec/spec_helper.rb +8 -12
- data/spec/support/contain_feed_eeml_matcher.rb +2 -0
- data/spec/support/datapoint_helper.rb +11 -11
- data/spec/support/datastream_helper.rb +122 -122
- data/spec/support/feed_helper.rb +302 -300
- data/spec/support/trigger_helper.rb +11 -11
- metadata +4 -68
@@ -8,17 +8,17 @@ def trigger_as_(format, options = {})
|
|
8
8
|
data = {"threshold_value"=>"44", "notified_at"=>"", "url"=>"http://www.postbin.org/zc9sca", "trigger_type"=>"eq", "id"=>40, "stream_id"=>"1", "environment_id"=>424, "user"=>"lebreeze"}
|
9
9
|
when 'xml'
|
10
10
|
data = <<XML
|
11
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
12
|
-
<datastream-trigger>
|
13
|
-
<id type="integer">40</id>
|
14
|
-
<url>http://www.postbin.org/zc9sca</url>
|
15
|
-
<trigger-type>eq</trigger-type>
|
16
|
-
<threshold-value type="float">44</threshold-value>
|
17
|
-
<notified-at type="datetime"></notified-at>
|
18
|
-
<user>lebreeze</user>
|
19
|
-
<environment-id type="integer">424</environment-id>
|
20
|
-
<stream-id>1</stream-id>
|
21
|
-
</datastream-trigger>
|
11
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
12
|
+
<datastream-trigger>
|
13
|
+
<id type="integer">40</id>
|
14
|
+
<url>http://www.postbin.org/zc9sca</url>
|
15
|
+
<trigger-type>eq</trigger-type>
|
16
|
+
<threshold-value type="float">44</threshold-value>
|
17
|
+
<notified-at type="datetime"></notified-at>
|
18
|
+
<user>lebreeze</user>
|
19
|
+
<environment-id type="integer">424</environment-id>
|
20
|
+
<stream-id>1</stream-id>
|
21
|
+
</datastream-trigger>
|
22
22
|
XML
|
23
23
|
end
|
24
24
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cosm-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.09
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-
|
14
|
+
date: 2013-03-27 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: multi_json
|
@@ -109,70 +109,6 @@ dependencies:
|
|
109
109
|
- - ! '>='
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: 1.5.9
|
112
|
-
- !ruby/object:Gem::Dependency
|
113
|
-
name: debugger
|
114
|
-
requirement: !ruby/object:Gem::Requirement
|
115
|
-
none: false
|
116
|
-
requirements:
|
117
|
-
- - ! '>='
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
version: '0'
|
120
|
-
type: :development
|
121
|
-
prerelease: false
|
122
|
-
version_requirements: !ruby/object:Gem::Requirement
|
123
|
-
none: false
|
124
|
-
requirements:
|
125
|
-
- - ! '>='
|
126
|
-
- !ruby/object:Gem::Version
|
127
|
-
version: '0'
|
128
|
-
- !ruby/object:Gem::Dependency
|
129
|
-
name: simplecov
|
130
|
-
requirement: !ruby/object:Gem::Requirement
|
131
|
-
none: false
|
132
|
-
requirements:
|
133
|
-
- - ! '>='
|
134
|
-
- !ruby/object:Gem::Version
|
135
|
-
version: 0.7.1
|
136
|
-
type: :development
|
137
|
-
prerelease: false
|
138
|
-
version_requirements: !ruby/object:Gem::Requirement
|
139
|
-
none: false
|
140
|
-
requirements:
|
141
|
-
- - ! '>='
|
142
|
-
- !ruby/object:Gem::Version
|
143
|
-
version: 0.7.1
|
144
|
-
- !ruby/object:Gem::Dependency
|
145
|
-
name: rake
|
146
|
-
requirement: !ruby/object:Gem::Requirement
|
147
|
-
none: false
|
148
|
-
requirements:
|
149
|
-
- - '='
|
150
|
-
- !ruby/object:Gem::Version
|
151
|
-
version: 0.8.7
|
152
|
-
type: :development
|
153
|
-
prerelease: false
|
154
|
-
version_requirements: !ruby/object:Gem::Requirement
|
155
|
-
none: false
|
156
|
-
requirements:
|
157
|
-
- - '='
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: 0.8.7
|
160
|
-
- !ruby/object:Gem::Dependency
|
161
|
-
name: rspec
|
162
|
-
requirement: !ruby/object:Gem::Requirement
|
163
|
-
none: false
|
164
|
-
requirements:
|
165
|
-
- - '='
|
166
|
-
- !ruby/object:Gem::Version
|
167
|
-
version: 2.6.0
|
168
|
-
type: :development
|
169
|
-
prerelease: false
|
170
|
-
version_requirements: !ruby/object:Gem::Requirement
|
171
|
-
none: false
|
172
|
-
requirements:
|
173
|
-
- - '='
|
174
|
-
- !ruby/object:Gem::Version
|
175
|
-
version: 2.6.0
|
176
112
|
description: A library for communicating with the Cosm REST API, parsing and rendering
|
177
113
|
Cosm feed formats
|
178
114
|
email:
|
@@ -324,7 +260,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
324
260
|
version: '0'
|
325
261
|
segments:
|
326
262
|
- 0
|
327
|
-
hash:
|
263
|
+
hash: 3327607932389145325
|
328
264
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
329
265
|
none: false
|
330
266
|
requirements:
|
@@ -333,7 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
333
269
|
version: '0'
|
334
270
|
segments:
|
335
271
|
- 0
|
336
|
-
hash:
|
272
|
+
hash: 3327607932389145325
|
337
273
|
requirements: []
|
338
274
|
rubyforge_project:
|
339
275
|
rubygems_version: 1.8.23
|