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: af396b09dfd3700633bb486d5bf9d2f21b87a24b
4
- data.tar.gz: 8352a57876bf24a68a8a04aef03ed0bd22264a18
3
+ metadata.gz: 4e107d50e1667dc5edf67a2dd0e12d3d9cb3e673
4
+ data.tar.gz: b367659d3f4ea55564fab35d34136d11470a163f
5
5
  SHA512:
6
- metadata.gz: 65ffdc78e210cceaceed4af3506099599c80446526879ac2a4596de9fdfcfaa5c5f1f96f19def10712907cf71831d0fe69f0ed3486aa0d9ec90078f7f0d1078d
7
- data.tar.gz: ece44c62cedab15dbe7f5a3b23d92bf0a6bc7b5a276d682224d5aaef49ede72dd3c3391927056d375cd5afd2ba4de5ab94279eff41574a25aebe480677c945b5
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 => [ActionList::Item],
76
+ ActionList::ItemRequest => [Hash],
77
77
  ActionList::ActionRequest => [Response],
78
78
  Chart::Request => [Chart::Response],
79
79
  Form::GetRequest => [Form::GetResponse],
@@ -1,6 +1,6 @@
1
1
  module Harmony
2
2
  module Service
3
- VERSION = "0.5.8"
3
+ VERSION = "0.6.0"
4
4
  end
5
5
  end
6
6
 
@@ -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) { [Harmony::Service::ActionList::Item.new({id: 1, title: "Carrots"})]}
30
+ let(:response) { [{id: 1, title: "Carrots"}]}
31
31
 
32
- it { expect(subject).to have_received(:send_response_json).with("[{\"^o\":\"Harmony::Service::ActionList::Item\",\"id\":1,\"title\":\"Carrots\"}]", "harmony.trello", "abc123") }
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) { Harmony::Service::ActionList::Item.new({id: 1, title: "Carrots", subtitle: "Bag of Carrots", detail_html: "<html><body>Carrots</body></html>"})}
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("{\"^o\":\"Harmony::Service::ActionList::Item\",\"id\":1,\"title\":\"Carrots\",\"subtitle\":\"Bag of Carrots\",\"detail_html\":\"<html><body>Carrots</body></html>\"}", "harmony.trello", "abc123") }
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.5.8
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
@@ -1,3 +0,0 @@
1
- class Harmony::Service::ActionList::Item < Harmony::Service::Response
2
- attr_accessor :properties
3
- end