teamlab 0.3.13.2 → 0.3.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/teamlab/Modules/Project.rb +4 -0
- data/lib/teamlab/version.rb +1 -1
- data/spec/lib/project_spec.rb +7 -0
- data/spec/support/http_data.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06647d8ce47959809359f6f834d0e4046ca13a66
|
4
|
+
data.tar.gz: a5c899376abca621ca93a7da06d17a6563c28ee2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7ad913793ea149ac16e7f13d52b59a61d88f28ea7d660863ba53fab0716a6ae5f87e5bd864b0e8d7e3707a1dfab97512808af6867db9a58e225b91fb071c2a4
|
7
|
+
data.tar.gz: 584e44628a44e50f0a73d809e568f3a615ed31a6172a95970dacfe171a0fc7437e9865b7b6e0db6477c2b80a0bab0d1fd08f4d73c1652cd73b041eef4c54e1f4
|
@@ -51,6 +51,10 @@ module Teamlab
|
|
51
51
|
@request.put(['message', message_id.to_s], { projectid: project_id, title: title, content: content }.merge(options))
|
52
52
|
end
|
53
53
|
|
54
|
+
def update_message_status(message_id, status)
|
55
|
+
@request.put(['message', message_id.to_s, 'status'], { status: status })
|
56
|
+
end
|
57
|
+
|
54
58
|
def subscribe_to_message_action(message_id) #есть тест
|
55
59
|
@request.put(['message', message_id.to_s, 'subscribe'])
|
56
60
|
end
|
data/lib/teamlab/version.rb
CHANGED
data/spec/lib/project_spec.rb
CHANGED
@@ -220,6 +220,13 @@ describe '[Project]' do
|
|
220
220
|
end
|
221
221
|
end
|
222
222
|
|
223
|
+
describe '#update_message_status' do
|
224
|
+
it_should_behave_like 'an api request' do
|
225
|
+
let(:command) { :update_message_status }
|
226
|
+
let(:args) { [random_id(:discussion), PROJECT_DISCUSSION_STATUSES.sample] }
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
223
230
|
describe '#subscribe_to_message_action' do
|
224
231
|
it_should_behave_like 'an api request' do
|
225
232
|
let(:command) { :subscribe_to_message_action }
|
data/spec/support/http_data.rb
CHANGED
@@ -74,6 +74,7 @@ PROJECT_TASK_LINK_TYPES = %w(Start End EndStart)
|
|
74
74
|
PROJECT_SECURITY_RIGHTS = %w(None Messages Tasks Files Milestone Contacts)
|
75
75
|
PROJECT_TASKS_STATUSES = %w(open closed)
|
76
76
|
PROJECT_TASK_TIME_STATUSES = %w(NotChargeable NotBilled Billed )
|
77
|
+
PROJECT_DISCUSSION_STATUSES = %w(Open, Archived)
|
77
78
|
|
78
79
|
BASECAMP_URL = "https://basecamp.com/2452154"
|
79
80
|
BASECAMP_LOGIN = ""
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teamlab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rzagudaev
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-11-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httparty
|