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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b02c53efbd0b16d995569c8388b239bf164da10
4
- data.tar.gz: b1533d4cf3f1faaa21015f73a9ae87f0ffd6e2e1
3
+ metadata.gz: 06647d8ce47959809359f6f834d0e4046ca13a66
4
+ data.tar.gz: a5c899376abca621ca93a7da06d17a6563c28ee2
5
5
  SHA512:
6
- metadata.gz: bb9799a26261a79a946b1259e9488495be1fa4765a0bbe2415a4895b385c9b08177e1baab34fd59acbb5c0219699bfe7bf6fe30d0c7841a7a3fa127d4731993f
7
- data.tar.gz: d44e11cad5ffe0fadfc3d0e2f2bf928fdccd628a4b8e3b0912dba70783b0eade44cf91a2bc92ee58954f40fb65bfea245e360fef980d99d727508382e7fa4195
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
@@ -1,3 +1,3 @@
1
1
  module Teamlab
2
- VERSION = '0.3.13.2'
2
+ VERSION = '0.3.14'
3
3
  end
@@ -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 }
@@ -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.13.2
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-10-06 00:00:00.000000000 Z
13
+ date: 2015-11-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty