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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmMwZDI1MDQ5NTIxNTc2YzRhN2EwZjg1ZTUzMjhmZmI1MDJkYzU5Yg==
4
+ MzgyNGI3YzY3ZjFjZmFmZTU3OGJmNzRhYThhNTBkMWQxOWYyYjM1OQ==
5
5
  data.tar.gz: !binary |-
6
- NWMyZTYyOGMwNzY0ZjA5M2M2NWY1Nzg0MTU1MmQzMjI1ZGVjODNjMg==
6
+ MGNjNTllMzM4MTE4NTRkNWUyYWIxY2VlMWQyNDc4NzFiNWZiM2Q5NA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NjI3NzA4NTM2NWU1ZTM0ZDI5MWY1Mjg2NWRlYWVhNWI1YzVmNzAzZDdjYTU2
10
- YWZhZTE4MjhlYWQxM2UwYjI3NjU4ZDVjNzE1YzA2MmFkYTEwOTY2MjFhYzg3
11
- YjI2MzZhYjEwODMzODU5ZTlkZjMyNzZhODY0NzkxNGI4YjJhMTQ=
9
+ MDk5Yzg3ZjZmNDcxY2QyYTU5YWRkMjk0ZTBmZTNkZjYwMmFjMDg1YmFkOTJj
10
+ NmQ1NzFjNGU5YzZmNzIwMzZkNTEwOTc4ZWVlNTlmM2Y3MWUzMmVlMDhlZjUw
11
+ YWRhYTIyZGEyZTIwY2Q1NTdkMjdiYmI5MDA0MWY5OTMyOTU4OTk=
12
12
  data.tar.gz: !binary |-
13
- NjBmZTExMTQ2ZDU0YzQ5MjI3MzE2Yzg3NjEyOTllZTQxOTc3MTc4OWE2Y2Q2
14
- NTdiM2U4MDM3Nzk3ZDdkMmJkNWNhNjk3MTFlMDRkYTU4OGYwMWFhYzMzNGRi
15
- NTQ1ZmZiNGMzMTdjODQzZGJiODY2ZGNhMjY3NDI0YjFlOTRmNzQ=
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
- `tm -p 'Project name' -c 'Change name' -h 8 -d 'Tested some pages' -u bruce.yue:password`
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' -h 6 -d 'Added exception process logic.'`
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' -h 6 -d 'Added exception process logic.'`
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' -h 6 -d 'Added exception process logic.'`
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
- Find the GEM PATHS
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 'restforce' # gem install restforce
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.3/lib/mtm'
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 -h 6 -d 'Added exception process logic.'
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 chnages.") do |list|
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 = Restforce.new :client_id => sf_client_id,
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
@@ -1,3 +1,3 @@
1
1
  module Mtm
2
- VERSION = "2.1.0"
2
+ VERSION = "2.2.0"
3
3
  end
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.1.0
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: restforce
15
+ name: sfdc
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
18
  - - ! '>='
19
19
  - !ruby/object:Gem::Version
20
- version: 1.1.0
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: 1.1.0
27
+ version: 2.0.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: ruby-progressbar
30
30
  requirement: !ruby/object:Gem::Requirement