teamlab 0.3.16 → 0.4.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 +4 -4
- data/.overcommit.yml +34 -0
- data/.rubocop.yml +2 -0
- data/.rubocop_todo.yml +85 -0
- data/.travis.yml +6 -0
- data/Changelog.md +4 -0
- data/Gemfile +2 -0
- data/Rakefile +9 -0
- data/lib/teamlab/{Config.rb → config.rb} +5 -5
- data/lib/teamlab/{Modules/Calendar.rb → modules/calendar.rb} +12 -13
- data/lib/teamlab/{Modules/Community.rb → modules/community.rb} +16 -17
- data/lib/teamlab/{Modules/Crm.rb → modules/crm.rb} +62 -63
- data/lib/teamlab/{Modules/Files.rb → modules/files.rb} +14 -15
- data/lib/teamlab/{Modules/Group.rb → modules/group.rb} +6 -8
- data/lib/teamlab/{Modules/Mail.rb → modules/mail.rb} +34 -36
- data/lib/teamlab/{Modules/People.rb → modules/people.rb} +16 -18
- data/lib/teamlab/modules/portals.rb +15 -0
- data/lib/teamlab/{Modules/Project.rb → modules/project.rb} +46 -46
- data/lib/teamlab/{Modules/Settings.rb → modules/settings.rb} +1 -3
- data/lib/teamlab/{Request.rb → request.rb} +5 -5
- data/lib/teamlab/{Response.rb → response.rb} +3 -5
- data/lib/teamlab/version.rb +1 -1
- data/lib/teamlab.rb +18 -14
- data/spec/lib/calendar_spec.rb +2 -3
- data/spec/lib/community_spec.rb +3 -4
- data/spec/lib/crm_spec.rb +25 -26
- data/spec/lib/files_spec.rb +19 -19
- data/spec/lib/group_spec.rb +2 -2
- data/spec/lib/mail_spec.rb +2 -3
- data/spec/lib/people_spec.rb +2 -2
- data/spec/lib/portal_spec.rb +25 -0
- data/spec/lib/project_spec.rb +6 -8
- data/spec/lib/settings_spec.rb +2 -2
- data/spec/lib/{Teamlab_spec.rb → teamlab_spec.rb} +1 -5
- data/spec/spec_helper.rb +1 -2
- data/spec/support/http_data.rb +23 -23
- data/teamlab.gemspec +6 -6
- metadata +23 -16
data/spec/support/http_data.rb
CHANGED
@@ -36,12 +36,12 @@ def random_info_category(info_type)
|
|
36
36
|
Teamlab.crm.get_all_categories(info_type).body['response'].sample
|
37
37
|
end
|
38
38
|
|
39
|
-
#region OPTIONS
|
40
|
-
#region People
|
39
|
+
# region OPTIONS
|
40
|
+
# region People
|
41
41
|
USER_STATUSES = %w(Active Terminated LeaveOfAbsence Default All)
|
42
42
|
USER_CONTACTS = [
|
43
|
-
|
44
|
-
|
43
|
+
{ type: 'skype', value: random_word },
|
44
|
+
{ type: 'email', value: random_email }
|
45
45
|
]
|
46
46
|
USER_TYPES = %w(All User Visitor)
|
47
47
|
PATH_TO_IMAGE = 'http://ic.pics.livejournal.com/scryp/14761862/5478/5478_original.jpg'
|
@@ -50,24 +50,24 @@ USER_THIRD_PARTIES_PROFILES = %w(_Y6rPoq7louElDtnlBdKUqpqz4j5vps35UYBvFloIL3dI-h
|
|
50
50
|
daINQQMQndCSeUMQ-1f1wCGoSuDAK33X8c95AiT3Pe610W4u9m02V_dx_Z4itELYlh5xLA6qDLE2RCiU_hWM6CJqVcja5hvWvRbbWUH-ouq3miQEnj9RzGs2EAq4XiqeoBSWNEYfrdsFvyxVIRIuy1Jex0xFVe6d9cxEBUG-8DiJy08bEW5MXnuhm2mgTG0D4aHRd0iKNXfe1ZHWXSFETGJYwotdXkyVQCkiETIytuifRxxIak7SecRleDy-eB4Cq-nY6DFLpU0QoN0kkcAZH_pMNDiFckn4LFASl9PGaWfpIyHIVKJovqB_ChakGlXS0
|
51
51
|
6RE5NMhq-NyjwE7XQerUURcK_JycrRUBpgUBG1Ac7mShbkcprqSPAoFuZXeEuVrbopbT2NtwVAxqlkT-2zC4wnP88y_3pmDqxbC_btGLzjltJKFy8_apcSEHX5cYqGvB0CkWIy15Tp7Yz1nHLopBHXccBOfmP4OyN88H2N1BAfQW5Sz5iLw-deVVEKc1NTyD0
|
52
52
|
AgWQakKDSFqlYFG0e96-0uwdwgCGf97R6NgEiLwh3dNjDZmm_7HQxAw0zzKNn3JvNkdRzs-n2kglXapJgYyhw2ADcDH_4LnCb8yM7ltgC8E1)
|
53
|
-
#endregion
|
53
|
+
# endregion
|
54
54
|
|
55
|
-
#regions Settings
|
55
|
+
# regions Settings
|
56
56
|
SETTINGS_ENTITY_IDS = %w(1e044602-43b5-4d79-82f3-fd6208a11960 6743007c-6f95-4d20-8c88-a8601ce5e76d ea942538-e68e-4907-9394-035336ee0ba8
|
57
57
|
f4d98afd-d336-4332-8778-3c6945c81ea0 2a923037-8b2d-487b-9a22-5ac0918acf3f bf88953e-3c43-4850-a3fb-b1e43ad53a3e 32d24cb5-7ece-4606-9c94-19216ba42086)
|
58
58
|
SETTINGS_TEST_USER = '27cd9da5-4f97-4335-ac45-55dd05d96d89'
|
59
59
|
SETTINGS_TALK_MODULE_ID = 'bf88953e-3c43-4850-a3fb-b1e43ad53a3e'
|
60
60
|
SETTINGS_VERSION = 2
|
61
|
-
SETTINGS_FOR_TALK = {enabled: true}
|
62
|
-
#endregion
|
61
|
+
SETTINGS_FOR_TALK = { enabled: true }
|
62
|
+
# endregion
|
63
63
|
|
64
|
-
#region Files
|
64
|
+
# region Files
|
65
65
|
FILE_FOR_OPERATIONS_VERSION = 1
|
66
66
|
FILES_SHARE_TYPES = %w(None ReadWrite Read Restrict)
|
67
67
|
FILE_FOR_UPLOAD = "#{File.dirname(__FILE__)}/../../spec/lib/data/docx_file.docx"
|
68
|
-
#endregion
|
68
|
+
# endregion
|
69
69
|
|
70
|
-
#region Projects
|
70
|
+
# region Projects
|
71
71
|
PROJECT_STATUSES = %w(open paused closed)
|
72
72
|
PROJECT_MILESTONE_STATUSES = %w(open closed)
|
73
73
|
PROJECT_TASK_LINK_TYPES = %w(Start End EndStart)
|
@@ -76,29 +76,29 @@ PROJECT_TASKS_STATUSES = %w(open closed)
|
|
76
76
|
PROJECT_TASK_TIME_STATUSES = %w(NotChargeable NotBilled Billed )
|
77
77
|
PROJECT_DISCUSSION_STATUSES = %w(Open, Archived)
|
78
78
|
|
79
|
-
BASECAMP_URL =
|
80
|
-
BASECAMP_LOGIN =
|
81
|
-
BASECAMP_PSW =
|
82
|
-
#endregion
|
79
|
+
BASECAMP_URL = 'https://basecamp.com/2452154'
|
80
|
+
BASECAMP_LOGIN = ''
|
81
|
+
BASECAMP_PSW = ''
|
82
|
+
# endregion
|
83
83
|
|
84
|
-
#region CRM
|
84
|
+
# region CRM
|
85
85
|
BID_TYPES = %w(FixedBid PerHour PerDay PerWeek PerMonth PerYear)
|
86
86
|
COLORS_NAMES = %w(red yellow black white green purple brown grey blue)
|
87
87
|
INVOICE_STATUSES = %w(Draft Sent Rejected Paid Overdue Archived)
|
88
88
|
CONTACT_INFO_TYPES = %w(Phone Email Website Skype Twitter LinkedIn Facebook LiveJournal MySpace GMail Blogger Yahoo MSN ICQ Jabber AIM)
|
89
89
|
ENTITY_TYPES = %w(opportunity company contact)
|
90
90
|
USER_FIELDS = %w(TextField TextArea SelectBox CheckBox Heading Date)
|
91
|
-
IMAGE_URL = 'http://thebooksmugglers.com/wp-content/uploads/2009/02/image002-200x300.jpg' #'http://www.soulscode.com/wp-content/uploads/2011/02/doll-200x300.jpg'
|
92
|
-
#endregion
|
91
|
+
IMAGE_URL = 'http://thebooksmugglers.com/wp-content/uploads/2009/02/image002-200x300.jpg' # 'http://www.soulscode.com/wp-content/uploads/2011/02/doll-200x300.jpg'
|
92
|
+
# endregion
|
93
93
|
|
94
|
-
#region Community
|
94
|
+
# region Community
|
95
95
|
SOME_URL = 'www.teamlab.info'
|
96
96
|
EVENT_TYPES = %w(None News Order Advert AllNews Poll All)
|
97
|
-
#endregion
|
97
|
+
# endregion
|
98
98
|
|
99
|
-
#region Calendar
|
99
|
+
# region Calendar
|
100
100
|
TIME_ZONES = %w(UTC)
|
101
101
|
CALENDAR_TO_UPLOAD = '/mnt/data_share/Files/basic.ics'
|
102
102
|
CALENDAR_WEB_URL = 'https://raw.githubusercontent.com/onlyoffice-testing-robot/GemTeamlab/fix/make_test_working/spec/lib/data/basic.ics'
|
103
|
-
#endregion
|
104
|
-
#endregion
|
103
|
+
# endregion
|
104
|
+
# endregion
|
data/teamlab.gemspec
CHANGED
@@ -6,14 +6,14 @@ require 'teamlab/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'teamlab'
|
8
8
|
spec.version = Teamlab::VERSION
|
9
|
-
spec.authors =
|
10
|
-
spec.email = [
|
11
|
-
spec.description =
|
12
|
-
spec.summary =
|
9
|
+
spec.authors = %w(rzagudaev shockwavenn DaftTrick)
|
10
|
+
spec.email = ['rzagudaev@gmail.com', 'shockwavenn@gmail.com', 'nazarov90@gmail.com']
|
11
|
+
spec.description = 'Ruby Framework to interact with OnlyOffice\\TeamLab API 2.0'
|
12
|
+
spec.summary = 'Ruby gem for OnlyOffice\\TeamLab'
|
13
13
|
spec.homepage = 'https://github.com/onlyoffice-testing-robot/GemTeamlab'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
16
|
-
spec.files = `git ls-files`.split(
|
16
|
+
spec.files = `git ls-files`.split($RS)
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ['lib']
|
@@ -25,4 +25,4 @@ Gem::Specification.new do |spec|
|
|
25
25
|
|
26
26
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
27
27
|
spec.add_development_dependency 'rake', '~> 10.1'
|
28
|
-
end
|
28
|
+
end
|
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.
|
4
|
+
version: 0.4.0
|
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-12-
|
13
|
+
date: 2015-12-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httparty
|
@@ -106,26 +106,30 @@ extensions: []
|
|
106
106
|
extra_rdoc_files: []
|
107
107
|
files:
|
108
108
|
- ".gitignore"
|
109
|
+
- ".overcommit.yml"
|
110
|
+
- ".rubocop.yml"
|
111
|
+
- ".rubocop_todo.yml"
|
112
|
+
- ".travis.yml"
|
109
113
|
- Changelog.md
|
110
114
|
- Gemfile
|
111
115
|
- LICENSE.txt
|
112
116
|
- README.md
|
113
117
|
- Rakefile
|
114
118
|
- lib/teamlab.rb
|
115
|
-
- lib/teamlab/
|
116
|
-
- lib/teamlab/
|
117
|
-
- lib/teamlab/
|
118
|
-
- lib/teamlab/
|
119
|
-
- lib/teamlab/
|
120
|
-
- lib/teamlab/
|
121
|
-
- lib/teamlab/
|
122
|
-
- lib/teamlab/
|
123
|
-
- lib/teamlab/
|
124
|
-
- lib/teamlab/
|
125
|
-
- lib/teamlab/
|
126
|
-
- lib/teamlab/
|
119
|
+
- lib/teamlab/config.rb
|
120
|
+
- lib/teamlab/modules/calendar.rb
|
121
|
+
- lib/teamlab/modules/community.rb
|
122
|
+
- lib/teamlab/modules/crm.rb
|
123
|
+
- lib/teamlab/modules/files.rb
|
124
|
+
- lib/teamlab/modules/group.rb
|
125
|
+
- lib/teamlab/modules/mail.rb
|
126
|
+
- lib/teamlab/modules/people.rb
|
127
|
+
- lib/teamlab/modules/portals.rb
|
128
|
+
- lib/teamlab/modules/project.rb
|
129
|
+
- lib/teamlab/modules/settings.rb
|
130
|
+
- lib/teamlab/request.rb
|
131
|
+
- lib/teamlab/response.rb
|
127
132
|
- lib/teamlab/version.rb
|
128
|
-
- spec/lib/Teamlab_spec.rb
|
129
133
|
- spec/lib/calendar_spec.rb
|
130
134
|
- spec/lib/community_spec.rb
|
131
135
|
- spec/lib/crm_spec.rb
|
@@ -135,8 +139,10 @@ files:
|
|
135
139
|
- spec/lib/group_spec.rb
|
136
140
|
- spec/lib/mail_spec.rb
|
137
141
|
- spec/lib/people_spec.rb
|
142
|
+
- spec/lib/portal_spec.rb
|
138
143
|
- spec/lib/project_spec.rb
|
139
144
|
- spec/lib/settings_spec.rb
|
145
|
+
- spec/lib/teamlab_spec.rb
|
140
146
|
- spec/spec_helper.rb
|
141
147
|
- spec/support/http_data.rb
|
142
148
|
- teamlab.gemspec
|
@@ -165,7 +171,6 @@ signing_key:
|
|
165
171
|
specification_version: 4
|
166
172
|
summary: Ruby gem for OnlyOffice\TeamLab
|
167
173
|
test_files:
|
168
|
-
- spec/lib/Teamlab_spec.rb
|
169
174
|
- spec/lib/calendar_spec.rb
|
170
175
|
- spec/lib/community_spec.rb
|
171
176
|
- spec/lib/crm_spec.rb
|
@@ -175,8 +180,10 @@ test_files:
|
|
175
180
|
- spec/lib/group_spec.rb
|
176
181
|
- spec/lib/mail_spec.rb
|
177
182
|
- spec/lib/people_spec.rb
|
183
|
+
- spec/lib/portal_spec.rb
|
178
184
|
- spec/lib/project_spec.rb
|
179
185
|
- spec/lib/settings_spec.rb
|
186
|
+
- spec/lib/teamlab_spec.rb
|
180
187
|
- spec/spec_helper.rb
|
181
188
|
- spec/support/http_data.rb
|
182
189
|
has_rdoc:
|