teamlab 0.2.1 → 0.2.2

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.
@@ -2,10 +2,7 @@ SERVER = ''
2
2
  USERNAME = ''
3
3
  PASSWORD = ''
4
4
 
5
- DATA_COLLECTOR = {user_ids: [], file_ids: [], new_user_ids: [], emails: [], group_ids: [], common_documents_ids: [], my_documents_ids: [],
6
- trash_documents_ids: [], shared_documents_ids: [], new_folder_ids: [], new_file_ids: [], some_file_ids: [],
7
- project_ids: [], discussion_ids: [], project_template_ids: [], project_task_ids: [], project_milestone_ids: [],
8
- comment_ids: [], report_template_ids: [], project_subtask_ids: []}
5
+ DATA_COLLECTOR = {}
9
6
 
10
7
  def args
11
8
  []
@@ -35,6 +32,10 @@ def random_settings_entity_id
35
32
  SETTINGS_ENTITY_IDS.sample
36
33
  end
37
34
 
35
+ def random_info_category(info_type)
36
+ Teamlab.crm.get_all_categories(info_type).body['response'].sample
37
+ end
38
+
38
39
  #region OPTIONS
39
40
  #region People
40
41
  USER_STATUSES = %w(Active Terminated LeaveOfAbsence Default All)
@@ -66,70 +67,30 @@ PROJECT_MILESTONE_STATUSES = %w(open closed)
66
67
  PROJECT_TASK_LINK_TYPES = %w(Start End EndStart)
67
68
  PROJECT_SECURITY_RIGHTS = %w(None Messages Tasks Files Milestone Contacts)
68
69
  PROJECT_TASKS_STATUSES = %w(open closed)
70
+ PROJECT_TASK_TIME_STATUSES = %w(NotChargeable NotBilled Billed )
69
71
 
70
72
  BASECAMP_URL = "https://basecamp.com/2452154"
71
73
  BASECAMP_LOGIN = ""
72
74
  BASECAMP_PSW = ""
73
- IMPORT_CLOSED_PROJECTS = true
74
- DISABLE_NOTIFICATONS = false
75
- IMPORT_USERS_AS_COLLABORATORS = true
76
- PROJECT_ID_FOR_OPERATIONS = '4322'
77
- MESSAGE_ID = '3878'
78
-
79
- TASK_ID = '12406'
80
- RESPONSIBLE_ID = '187ecad1-eeb4-4173-a6c0-1c225ad72fb2'
81
- RANDOM_TITLE = random_word(10).capitalize
82
- PROJECT_DESCRIPTION = random_word(10,).capitalize
83
- ANOTHER_PROJECT_ID = 9735
84
- MILESTONE_ID = 422849
85
- SOME_DATE = '2015-03-23T14:27:14'
86
- ANOTHER_DATE = '2015-06-10T06:30:00.0000000-07:00'
87
- SIMPLE_DATE = '2011-10-1'
88
- RANDOM_NOTE = random_word(12)
89
- TIME_ID = 528238
90
75
  #endregion
91
76
 
92
77
  #region CRM
93
- OPPORTUNITY_COLOR_NAME = 'red'
94
- OPPORTUNITY_ID = '74156'
95
- SUCCESS_PROBABILITY = 18
96
- BID_TYPE = 'PerMonth'
97
- PER_PERIOD_VALUE = 345
98
- STAGE_ID = 110331
99
- CONTACTS_IDS = [2971532, 2971531, 75613, 3065356, 3065355, 3065354, 3065353]
100
- CONTACT_ID = 3065356
101
- CONTACT_TYPE_ID = 235222
102
- IS_PRIVATE = true
103
- INVOICE_ID = 74
104
- CATEGORY_ID = 1979
105
- RANDOM_TAGS = [random_word(3), random_word(5)]
106
- AUTOGENERATED = true
107
- INVOICE_STATUS = 'Paid'
108
- CONTACT_STATUS_ID = 1990
109
- HISTORY_CATEGORY_ID = 241050
110
- COMPANY_ID = 2971531
111
- CONTACT_INFORMATION_ID = 452955
112
- NEW_RANDOM_USERS_ARRAY = (1..rand(5)).collect { {firstName: random_word(rand(3..12)).capitalize, lastName: random_word(rand(3..12)).capitalize} }
113
- INFO_TYPE = 1#'Phone'
114
- INFO_DATA = 54273553
115
- INFO_CATEGORY = 'Work'
78
+ BID_TYPES = %w(FixedBid PerHour PerDay PerWeek PerMonth PerYear)
79
+ COLORS_NAMES = %w(red yellow black white green purple brown grey blue)
80
+ INVOICE_STATUSES = %w(Draft Sent Rejected Paid Overdue Archived)
81
+ CONTACT_INFO_TYPES = %w(Phone Email Website Skype Twitter LinkedIn Facebook LiveJournal MySpace GMail Blogger Yahoo MSN ICQ Jabber AIM)
82
+ ENTITY_TYPES = %w(opportunity company contact)
83
+ USER_FIELDS = %w(TextField TextArea SelectBox CheckBox Heading Date)
116
84
  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'
117
85
  #endregion
118
86
 
119
87
  #region Community
120
- POST_ID = '797eb01e-b13f-49a4-9b4c-b74b40bad876'
121
- BOOKMARK_ID = 288498
122
- EVENT_ID = 63569
123
- THREAD_ID = 4988
124
- TOPIC_ID = 26560
125
- COMMUNITY_CATEGORY_ID = 3779
126
- THREAD_NAME = '1'
127
- WIKI_PAGE_NAME = 'fsdf'
128
- WIKI_FILE_NAME = 'rapuncel.jpg'
129
- WIKI_PAGE_COMMENT_ID = '8a72589a-f9f0-44b7-aed4-1608335f1855'
88
+ SOME_URL = 'www.teamlab.info'
89
+ EVENT_TYPES = %w(None News Order Advert AllNews Poll All)
130
90
  #endregion
131
91
 
132
92
  #region Calendar
133
- CALENDAR_ID = 1395822265100
93
+ TIME_ZONES = %w(UTC)
94
+ CALENDAR_TO_UPLOAD = 'path_to_file.ics'
134
95
  #endregion
135
96
  #endregion
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.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-16 00:00:00.000000000 Z
12
+ date: 2014-05-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty