mtm 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +5 -5
- data/lib/mtm/mtm.rb +5 -5
- data/lib/mtm/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzgyNGI3YzY3ZjFjZmFmZTU3OGJmNzRhYThhNTBkMWQxOWYyYjM1OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGNjNTllMzM4MTE4NTRkNWUyYWIxY2VlMWQyNDc4NzFiNWZiM2Q5NA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDk5Yzg3ZjZmNDcxY2QyYTU5YWRkMjk0ZTBmZTNkZjYwMmFjMDg1YmFkOTJj
|
10
|
+
NmQ1NzFjNGU5YzZmNzIwMzZkNTEwOTc4ZWVlNTlmM2Y3MWUzMmVlMDhlZjUw
|
11
|
+
YWRhYTIyZGEyZTIwY2Q1NTdkMjdiYmI5MDA0MWY5OTMyOTU4OTk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDdmYTVkNjQ3YTY4ZmU2ZGU1MDc0MzQ2YjE2MjMxODljMGM5NDhjNzkxZTJl
|
14
|
+
ZmU0ZTFlYzQzODEyMGI4ZWJmYjUwODZiZmQzNTgwMGEyYzc0YzU5M2VhODkw
|
15
|
+
ZWI5YTdmYjQ0NjEwYWUxMjBiYTZhZWVhNGMwZGY2MzY3MWVlYTI=
|
data/README.md
CHANGED
@@ -10,26 +10,26 @@ Opens your teminal and input:
|
|
10
10
|
|
11
11
|
## Usage
|
12
12
|
* Opens your teminal and input:
|
13
|
-
|
13
|
+
`tm -p 'Project name' -c 'Change name' -t 8 -e 'Tested some pages' -u bruce.yue:password`
|
14
14
|
* The default hours is 8 and default description is "Tested some pages and fixed some bugs."
|
15
15
|
* If step 2 have been done, '-u' is not required in the step 3.
|
16
16
|
For example:
|
17
17
|
* Project "CM Peak Development Requests", Its change is "Automate Upload of Build Records"
|
18
|
-
`tm -p 'Peak Development' -c 'Build Records' -
|
18
|
+
`tm -p 'Peak Development' -c 'Build Records' -t 6 -e 'Added exception process logic.'`
|
19
19
|
|
20
20
|
* If there is no change. just paste
|
21
21
|
|
22
|
-
`tm -p 'Peak Development' -
|
22
|
+
`tm -p 'Peak Development' -t 6 -e 'Added exception process logic.'`
|
23
23
|
|
24
24
|
* Fill your time card at some time.
|
25
|
-
`at 9pm today tm -p 'Peak Development' -
|
25
|
+
`at 9pm today tm -p 'Peak Development' -t 6 -e 'Added exception process logic.'`
|
26
26
|
|
27
27
|
|
28
28
|
## Config
|
29
29
|
|
30
30
|
1. run
|
31
31
|
`gem environment`
|
32
|
-
|
32
|
+
Find the GEM PATHS
|
33
33
|
2. go to
|
34
34
|
'GEM PATHS'/gems/mtm-2.0.4/lib/mtm'
|
35
35
|
3. config
|
data/lib/mtm/mtm.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
$LOAD_PATH.unshift(File.dirname(__FILE__)) unless $LOAD_PATH.include?(File.dirname(__FILE__))
|
2
2
|
require 'rubygems'
|
3
|
-
require '
|
3
|
+
require 'sfdc' # gem install sfdc
|
4
4
|
require 'optparse/date'
|
5
5
|
require 'ruby-progressbar'
|
6
6
|
require 'utils'
|
@@ -33,9 +33,9 @@ op = OptionParser.new do |opts|
|
|
33
33
|
opts.banner = <<-BANNER
|
34
34
|
Timecard Solution
|
35
35
|
Usage: run 'gem environment' in your console and find the 'GEM PATHS'
|
36
|
-
go to 'GEM PATHS/gems/mtm-2.0
|
36
|
+
go to 'GEM PATHS/gems/mtm-2.2.0/lib/mtm'
|
37
37
|
open config.rb and input your Salesforce user name and password(token).
|
38
|
-
mtm -p project -c change -
|
38
|
+
mtm -p project -c change -t 6 -e 'Added exception process logic.'
|
39
39
|
BANNER
|
40
40
|
opts.separator ''
|
41
41
|
|
@@ -54,7 +54,7 @@ op = OptionParser.new do |opts|
|
|
54
54
|
options[:host] = 'test.salesforce.com'
|
55
55
|
end
|
56
56
|
|
57
|
-
opts.on("-l", "List all your not closed projects and
|
57
|
+
opts.on("-l", "List all your not closed projects and changes.") do |list|
|
58
58
|
options[:tm_list] = list
|
59
59
|
end
|
60
60
|
|
@@ -102,7 +102,7 @@ end
|
|
102
102
|
|
103
103
|
# login to salesforce.com
|
104
104
|
begin
|
105
|
-
client =
|
105
|
+
client = Sfdc.new :client_id => sf_client_id,
|
106
106
|
:client_secret => sf_client_secret,
|
107
107
|
:username => options[:user_name],
|
108
108
|
:password => options[:password],
|
data/lib/mtm/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mtm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruce Yue
|
@@ -12,19 +12,19 @@ cert_chain: []
|
|
12
12
|
date: 2013-04-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: sfdc
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - ! '>='
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 2.0.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ! '>='
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 2.0.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: ruby-progressbar
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|