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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97593af953be5a6547c65d0dcd81626fa5c454f6
4
- data.tar.gz: 86c5b8b56b9a9243bcf556a830b21b4222daf568
3
+ metadata.gz: 0f460286423400a94722d97d18217091e101e0d2
4
+ data.tar.gz: 6aca00a61809677f7227158fc2fc0826c2bef2d3
5
5
  SHA512:
6
- metadata.gz: 371cfce0682a1cd6e7cee8a5e4c092c2a11267de7740f020aa34e0a91271b381de5e91bc5286ea1b738aefce19ce1c2f550b635c97871d87129cf926b1308cfa
7
- data.tar.gz: 781dc113635b85f326176738295ee4a4c72da3dc65c77ed230b406c06425f1542077918a6dbf1ab279875e4459feb03596bbdb3610380f5cbd3d1453a342b8ab
6
+ metadata.gz: 73b7d0a8278369638dd790d3c5c2d791207b9b05b8cf2ec778888ed889ac078fbab75dc4b6529f8b886e790516cad396ce3f26582179e1aba967adb860fbe1d7
7
+ data.tar.gz: f956f42b833d4b00713fc67e9b842bc414d7c92df14d4833b5b6828464c7f7546048b11aef53b93be18acd1f03591965c50a18b78585753a27c08569eba2037e
@@ -0,0 +1,2 @@
1
+ class Harmony::Service::AttributeNamesRequest < Harmony::Service::Request
2
+ end
@@ -0,0 +1,3 @@
1
+ class Harmony::Service::AttributeNamesResponse < Harmony::Service::Request
2
+ attr_accessor :attribute_names
3
+ end
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  module Harmony
2
2
  module Service
3
- VERSION = "0.3.8"
3
+ VERSION = "0.3.9"
4
4
  end
5
5
  end
6
6
 
@@ -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.8
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-08 00:00:00.000000000 Z
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