harmony-service 0.3.8 → 0.3.9
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.
- checksums.yaml +4 -4
- data/lib/harmony/service/attribute_names_request.rb +2 -0
- data/lib/harmony/service/attribute_names_response.rb +3 -0
- data/lib/harmony/service/rpc_service.rb +2 -1
- data/lib/harmony/service/version.rb +1 -1
- data/lib/harmony/service.rb +3 -0
- data/spec/harmony/service/rpc_service_spec.rb +7 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f460286423400a94722d97d18217091e101e0d2
|
4
|
+
data.tar.gz: 6aca00a61809677f7227158fc2fc0826c2bef2d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73b7d0a8278369638dd790d3c5c2d791207b9b05b8cf2ec778888ed889ac078fbab75dc4b6529f8b886e790516cad396ce3f26582179e1aba967adb860fbe1d7
|
7
|
+
data.tar.gz: f956f42b833d4b00713fc67e9b842bc414d7c92df14d4833b5b6828464c7f7546048b11aef53b93be18acd1f03591965c50a18b78585753a27c08569eba2037e
|
@@ -83,7 +83,8 @@ module Harmony
|
|
83
83
|
Chart::Request => [Chart::Response],
|
84
84
|
Form::GetRequest => [Form::GetResponse],
|
85
85
|
Flow::EndedRequest => [Response],
|
86
|
-
Notification::Request => [Notification::AppResponse, Response]
|
86
|
+
Notification::Request => [Notification::AppResponse, Response],
|
87
|
+
AttributeNamesRequest => [AttributeNamesResponse]
|
87
88
|
}
|
88
89
|
end
|
89
90
|
|
data/lib/harmony/service.rb
CHANGED
@@ -5,6 +5,9 @@ require 'harmony/service/request'
|
|
5
5
|
require 'harmony/service/response'
|
6
6
|
require 'harmony/service/error_response'
|
7
7
|
|
8
|
+
require 'harmony/service/attribute_names_request'
|
9
|
+
require 'harmony/service/attribute_names_response'
|
10
|
+
|
8
11
|
require 'harmony/service/calculator/request'
|
9
12
|
require 'harmony/service/calculator/response'
|
10
13
|
|
@@ -79,6 +79,13 @@ describe Harmony::Service::RpcService do
|
|
79
79
|
it { expect(subject).to have_received(:ack!) }
|
80
80
|
end
|
81
81
|
|
82
|
+
context "attribute names" do
|
83
|
+
let(:request) { Harmony::Service::AttributeNamesRequest.new }
|
84
|
+
let(:response) { Harmony::Service::AttributeNamesResponse.new}
|
85
|
+
it { expect(subject).to have_received(:send_response).with("{\"^o\":\"Harmony::Service::AttributeNamesResponse\",\"options\":{}}", "harmony.trello", "abc123") }
|
86
|
+
it { expect(subject).to have_received(:ack!) }
|
87
|
+
end
|
88
|
+
|
82
89
|
end
|
83
90
|
|
84
91
|
context "unacceptable request class" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: harmony-service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brooke-Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sneakers
|
@@ -133,6 +133,8 @@ files:
|
|
133
133
|
- lib/harmony/service/action_list/item.rb
|
134
134
|
- lib/harmony/service/action_list/item_request.rb
|
135
135
|
- lib/harmony/service/action_list/list_request.rb
|
136
|
+
- lib/harmony/service/attribute_names_request.rb
|
137
|
+
- lib/harmony/service/attribute_names_response.rb
|
136
138
|
- lib/harmony/service/calculator/request.rb
|
137
139
|
- lib/harmony/service/calculator/response.rb
|
138
140
|
- lib/harmony/service/chart/request.rb
|