harmony-service 0.5.8 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e107d50e1667dc5edf67a2dd0e12d3d9cb3e673
|
4
|
+
data.tar.gz: b367659d3f4ea55564fab35d34136d11470a163f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74b42d8e8956611397503ed3915d9e59966d7a39d2375fc2e547daafc8e2f245debb3d97d3af2c719c280e268844ac4339d1b1ee446f13a2966d02f30dc09e9e
|
7
|
+
data.tar.gz: 6d9ae2765ae5999a72c6976e9ea311a227486df6f74290ecac999eebc715e885cfcec857cf4d6ce3e85018bb40b2e711ad1cb9db7d1d2426a804aecab4c22c1d
|
@@ -73,7 +73,7 @@ module Harmony
|
|
73
73
|
{
|
74
74
|
Calculator::Request => [Calculator::Response],
|
75
75
|
ActionList::ListRequest => [Array],
|
76
|
-
ActionList::ItemRequest => [
|
76
|
+
ActionList::ItemRequest => [Hash],
|
77
77
|
ActionList::ActionRequest => [Response],
|
78
78
|
Chart::Request => [Chart::Response],
|
79
79
|
Form::GetRequest => [Form::GetResponse],
|
data/lib/harmony/service.rb
CHANGED
@@ -22,7 +22,6 @@ require 'harmony/service/chart/response'
|
|
22
22
|
require 'harmony/service/action_list/action_request'
|
23
23
|
require 'harmony/service/action_list/list_request'
|
24
24
|
require 'harmony/service/action_list/item_request'
|
25
|
-
require 'harmony/service/action_list/item'
|
26
25
|
|
27
26
|
require 'harmony/service/form/get_request'
|
28
27
|
require 'harmony/service/form/get_response'
|
@@ -27,17 +27,17 @@ describe Harmony::Service::RpcService do
|
|
27
27
|
context "action list" do
|
28
28
|
context "list" do
|
29
29
|
let(:request) { Harmony::Service::ActionList::ListRequest.new(harmony_user_email: "matt@futureworkshops.com", page: 0, per_page: 10) }
|
30
|
-
let(:response) { [
|
30
|
+
let(:response) { [{id: 1, title: "Carrots"}]}
|
31
31
|
|
32
|
-
it { expect(subject).to have_received(:send_response_json).with("[{\"
|
32
|
+
it { expect(subject).to have_received(:send_response_json).with("[{\":id\":1,\":title\":\"Carrots\"}]", "harmony.trello", "abc123") }
|
33
33
|
it { expect(subject).to have_received(:ack!) }
|
34
34
|
end
|
35
35
|
|
36
36
|
context "item" do
|
37
37
|
let(:request) { Harmony::Service::ActionList::ItemRequest.new(harmony_user_email: "matt@futureworkshops.com", id: 1) }
|
38
|
-
let(:response) {
|
38
|
+
let(:response) { {id: 1, title: "Carrots", subtitle: "Bag of Carrots", detail_html: "<html><body>Carrots</body></html>"} }
|
39
39
|
|
40
|
-
it { expect(subject).to have_received(:send_response_json).with("{\"
|
40
|
+
it { expect(subject).to have_received(:send_response_json).with("{\":id\":1,\":title\":\"Carrots\",\":subtitle\":\"Bag of Carrots\",\":detail_html\":\"<html><body>Carrots</body></html>\"}", "harmony.trello", "abc123") }
|
41
41
|
it { expect(subject).to have_received(:ack!) }
|
42
42
|
end
|
43
43
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: harmony-service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brooke-Smith
|
@@ -164,7 +164,6 @@ files:
|
|
164
164
|
- images/service_settings.png
|
165
165
|
- lib/harmony/service.rb
|
166
166
|
- lib/harmony/service/action_list/action_request.rb
|
167
|
-
- lib/harmony/service/action_list/item.rb
|
168
167
|
- lib/harmony/service/action_list/item_request.rb
|
169
168
|
- lib/harmony/service/action_list/list_request.rb
|
170
169
|
- lib/harmony/service/attribute_names_request.rb
|