mtm 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +35 -35
- data/lib/mtm/mtm.rb +1 -1
- data/lib/mtm/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTVkNDE4N2QzMTUxYTFkMThkOWE0NmJlZmE4ODMyMGMyODFhODUyNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGU2YWE0ZjUzODc2NDM1ZTA3OGY5NGYyNThiZDZjNjAwOTliMjVjOA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzA5NDUzZWJjNmY4MzMzMDE4YmJhYzNjYmEyMTMxOTFkMzhjODhmNTQ5ZjEw
|
10
|
+
YjQ2ZjBjMWFlYzQxNjFkZTVmMmVkNDkyOGQ5YWFjMTdhYTQ0NjIwZmY2MmQy
|
11
|
+
MTlhZjZhYWQxNTlkZDZhMzRmNzZiYzFlNDE2NzBlYTQzNTlmMTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWI3ZDAwZmFiZTAyNGYwZTdhYzU0NDdlNmU1ZmRkMjBjZjUxZmQwMjJjYTk2
|
14
|
+
M2UyOTY5YmJiMjZhMjA1NDUyNjI1NzEyMDg5ODc2OTBhMzlmY2I5NDgzZGI4
|
15
|
+
OWQ0YTc4MGEzNjZlODBjYTdhMzIzM2M1M2ViYTIzYmRhODcwYzQ=
|
data/README.md
CHANGED
@@ -1,42 +1,42 @@
|
|
1
|
-
## Mtm
|
1
|
+
## Mtm
|
2
2
|
|
3
|
-
Timecard solution for a day's work information
|
3
|
+
Timecard solution for a day's work information
|
4
4
|
|
5
|
-
## Installation
|
5
|
+
## Installation
|
6
6
|
|
7
|
-
the default environment is ruby 1.9.3
|
8
|
-
Opens your teminal and input:
|
7
|
+
the default environment is ruby 1.9.3
|
8
|
+
Opens your teminal and input:
|
9
9
|
`gem install mtm`
|
10
10
|
|
11
|
-
## Usage
|
12
|
-
* Opens your teminal and input:
|
13
|
-
`tm -p 'Project name' -c 'Change name' -h 8 -d 'Tested some pages' -u bruce.yue:password`
|
14
|
-
* The default hours is 8 and default description is "Tested some pages and fixed some bugs."
|
15
|
-
* If step 2 have been done, '-u' is not required in the step 3.
|
16
|
-
For example:
|
17
|
-
* Project "CM Peak Development Requests", Its change is "Automate Upload of Build Records"
|
18
|
-
`tm -p 'Peak Development' -c 'Build Records' -h 6 -d 'Added exception process logic.'`
|
19
|
-
|
20
|
-
* If there is no change. just paste
|
21
|
-
|
11
|
+
## Usage
|
12
|
+
* Opens your teminal and input:
|
13
|
+
`tm -p 'Project name' -c 'Change name' -h 8 -d 'Tested some pages' -u bruce.yue:password`
|
14
|
+
* The default hours is 8 and default description is "Tested some pages and fixed some bugs."
|
15
|
+
* If step 2 have been done, '-u' is not required in the step 3.
|
16
|
+
For example:
|
17
|
+
* Project "CM Peak Development Requests", Its change is "Automate Upload of Build Records"
|
18
|
+
`tm -p 'Peak Development' -c 'Build Records' -h 6 -d 'Added exception process logic.'`
|
19
|
+
|
20
|
+
* If there is no change. just paste
|
21
|
+
|
22
22
|
`tm -p 'Peak Development' -h 6 -d 'Added exception process logic.'`
|
23
23
|
|
24
|
-
* Fill your time card at some time.
|
25
|
-
`at 9pm today tm -p 'Peak Development' -h 6 -d 'Added exception process logic.'`
|
26
|
-
|
27
|
-
|
28
|
-
## Config
|
29
|
-
|
30
|
-
1. run
|
31
|
-
`gem environment`
|
32
|
-
Find the GEM PATHS
|
33
|
-
2. go to
|
34
|
-
'GEM PATHS'/gems/mtm-2.0.
|
35
|
-
3. config
|
36
|
-
open config.rb
|
37
|
-
config field
|
38
|
-
SF_USERNAME = '' # Salesforce user name
|
39
|
-
SF_PASSWORD = '' # Salesforce password
|
40
|
-
SF_SECURITY_TOKEN = '' # Salesforce password security token(option)
|
41
|
-
MOBILE_NUMBER = '' # 18988888888 you need to send the mobile to me and verify it.
|
42
|
-
4. `mtm -h` for details
|
24
|
+
* Fill your time card at some time.
|
25
|
+
`at 9pm today tm -p 'Peak Development' -h 6 -d 'Added exception process logic.'`
|
26
|
+
|
27
|
+
|
28
|
+
## Config
|
29
|
+
|
30
|
+
1. run
|
31
|
+
`gem environment`
|
32
|
+
Find the GEM PATHS
|
33
|
+
2. go to
|
34
|
+
'GEM PATHS'/gems/mtm-2.0.4/lib/mtm'
|
35
|
+
3. config
|
36
|
+
open config.rb
|
37
|
+
config field
|
38
|
+
SF_USERNAME = '' # Salesforce user name
|
39
|
+
SF_PASSWORD = '' # Salesforce password
|
40
|
+
SF_SECURITY_TOKEN = '' # Salesforce password security token(option)
|
41
|
+
MOBILE_NUMBER = '' # 18988888888 you need to send the mobile to me and verify it.
|
42
|
+
4. `mtm -h` for details
|
data/lib/mtm/mtm.rb
CHANGED
@@ -203,7 +203,7 @@ else
|
|
203
203
|
puts 'Please select a project to continue:'
|
204
204
|
projects.each { |p| puts p.Name }
|
205
205
|
end
|
206
|
-
|
206
|
+
|
207
207
|
if is_success
|
208
208
|
Mtm.send_sms(account_sid, auth_token, MOBILE_NUMBER, projects.first.Name, options[:tm_hour], options[:tm_description])
|
209
209
|
end
|
data/lib/mtm/version.rb
CHANGED