cobot_client 3.0.0 → 3.1.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e33543f24073fe4a3c349c97874dd846533bea1
|
4
|
+
data.tar.gz: 3c9818a5755292537b3fb8fbf0fa566c780dc382
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afc679f1b10dd8a731a46cb43e97f0858a3e8827c87b6293308597ec2edaa8af6883917e90464e8056533094ee4141c77098667137ed787c7224b2d3860ab0c9
|
7
|
+
data.tar.gz: 7923351ded252310bed7277ba5d93a65021f261cb9bcc0c3f8710d1bd909697360bd596e0a423ded6d1b62097087eef2691a951eb34812050048c658ad417170
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
|
2
|
+
# 3.1.0
|
3
|
+
|
4
|
+
* adds user_edtiable attribute to navigation links
|
5
|
+
|
1
6
|
# 3.0.0
|
2
7
|
|
3
|
-
*
|
8
|
+
* bumps rest-client to ~2.0.1, which results in CobotClient::ResourceNotFound to be renamed to CobotClient::NotFound (FrauBienenstich)
|
@@ -36,7 +36,8 @@ module CobotClient
|
|
36
36
|
response = @api_client.post(@subdomain, '/navigation_links',
|
37
37
|
section: link.section,
|
38
38
|
label: link.label,
|
39
|
-
iframe_url: link.iframe_url
|
39
|
+
iframe_url: link.iframe_url,
|
40
|
+
user_editable: link.user_editable
|
40
41
|
)
|
41
42
|
|
42
43
|
NavigationLink.new response
|
data/lib/cobot_client/version.rb
CHANGED
@@ -2,12 +2,12 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe CobotClient::NavigationLinkService, '#install_links' do
|
4
4
|
let(:service) { CobotClient::NavigationLinkService.new(api_client, 'co-up') }
|
5
|
-
let(:api_client) {
|
5
|
+
let(:api_client) { instance_double(CobotClient::ApiClient) }
|
6
6
|
|
7
7
|
context 'when there are links already' do
|
8
8
|
before(:each) do
|
9
|
-
allow(api_client).to receive(:get)
|
10
|
-
'co-up', '/navigation_links') { [{label: 'test link'}] }
|
9
|
+
allow(api_client).to receive(:get)
|
10
|
+
.with('co-up', '/navigation_links') { [{label: 'test link'}] }
|
11
11
|
end
|
12
12
|
|
13
13
|
it 'installs no links' do
|
@@ -22,16 +22,23 @@ describe CobotClient::NavigationLinkService, '#install_links' do
|
|
22
22
|
end
|
23
23
|
|
24
24
|
context 'when there are no links installed' do
|
25
|
-
let(:link)
|
25
|
+
let(:link) do
|
26
|
+
instance_double(CobotClient::NavigationLink,
|
27
|
+
section: 'admin/manage', label: 'test link', iframe_url: '/test',
|
28
|
+
user_editable: true)
|
29
|
+
end
|
26
30
|
|
27
31
|
before(:each) do
|
28
32
|
allow(api_client).to receive(:get).with('co-up', '/navigation_links') { [] }
|
29
33
|
end
|
30
34
|
|
31
35
|
it 'installs the links' do
|
32
|
-
expect(api_client).to receive(:post)
|
33
|
-
|
34
|
-
|
36
|
+
expect(api_client).to receive(:post)
|
37
|
+
.with('co-up', '/navigation_links',
|
38
|
+
section: 'admin/manage',
|
39
|
+
label: 'test link',
|
40
|
+
iframe_url: '/test',
|
41
|
+
user_editable: true) { {} }
|
35
42
|
|
36
43
|
service.install_links [link]
|
37
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cobot_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Lang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: virtus
|