pttool 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 289e2e3641c45a7859cc2080d6fde2db0efca87c
4
- data.tar.gz: 89658f299963cd8563c7a354b8defe33a9fbda26
3
+ metadata.gz: 1098ae139e613ec441ee25b907566737cb03a0d2
4
+ data.tar.gz: f2bc9a7ec1b47d9cb3596a706d8472b8235b0e86
5
5
  SHA512:
6
- metadata.gz: 044a16ccb34b76bd1145ba1d2b7068012b66526921b67f4060b75b9dd5875ce4b6975abcb341f01ebf08f809c2b6489b7703403af41b3b975a6db534a23c045c
7
- data.tar.gz: d7cc566a1cb5248990c115dab0f017f2f2722e7dd72990f74b1926ea6e1daec8b979b536c4762f2f4428197891049a585d41da82065e2270410b245e6023f9e2
6
+ metadata.gz: 6f9f41b3808575f0594ba11ca72cae6033dc0e7065959012e86256dcf835dcd7e03a8bc92fe5ba26e16706b65f0cd43708a1fc62d8611264b5b6ce1cac45cbc7
7
+ data.tar.gz: e50b0eb4a14bcdda5a5877704bf4bf036f320c758a8979a227cc95db502d42106bdd77ffb1a745e97926337f9c2ef7ed806003c1f8247654fd33dab51f3ba33f
data/README.md CHANGED
@@ -7,15 +7,48 @@
7
7
 
8
8
  ## Usage
9
9
 
10
- ### List of PT Projects
11
-
12
10
  In order to use this tool, the environment variable `PT_TOKEN` must be set to
13
11
  your PivotalTracker API key. The key is listed under the "API TOKEN" section at
14
12
  the bottom of your PivotalTracker
15
13
  [profile](https://www.pivotaltracker.com/profile)."
16
14
 
15
+ ### Obtain List of PivotalTracker Projects
16
+
17
17
  pttool projects
18
18
 
19
+ Its output will look similar to:
20
+
21
+ 1130000: Engineering Backlog
22
+ 820000: Product Backlog
23
+
24
+ ### Synchronize Users Across Projects
25
+
26
+ pttool sync "Engineering Backlog" "Product Backlog"
27
+
28
+ The above command will obtain a list of users for both of the PivotalTracker
29
+ projects, and then prompt you to add the missing users. Its output looks
30
+ similar to:
31
+
32
+ Do you want to add 28 people to Engineering Backlog? [(y)es|(N)o|(a)bort]
33
+ Do you want to add 34 people to Product Backlog? [(y)es|(N)o|(a)bort]
34
+
35
+ If you want to see which users are to be added try the `--dryrun` option:
36
+
37
+ pttool sync "Engineering Backlog" "Product Backlog" --dryrun
38
+
39
+ Its output looks like:
40
+
41
+ The following would become members on all projects:
42
+ Captain Hook (hook@never.land)
43
+ Peter Pan (pan@never.land)
44
+ Tinker Bell (tink@never.land)
45
+
46
+ New members for Engineering Backlog:
47
+ Tinker Bell (tink@never.land)
48
+
49
+ New members for Product Backlog:
50
+ Peter Pan (pan@never.land)
51
+
19
52
  ### Other
20
53
 
21
54
  To see a list of all commands simply run `pttool` or `pttool --help`.
@@ -10,8 +10,8 @@ module PTTool
10
10
  %w(y yes true 1).include?(response)
11
11
  end
12
12
 
13
- def self.add_membership(project, person_id, role = 'member')
14
- project.add_membership(person_id: person_id, role: role)
13
+ def self.add_membership(project, person, role = 'member')
14
+ project.add_membership(person_id: person.id, role: role)
15
15
  end
16
16
  end
17
17
  end
@@ -1,4 +1,4 @@
1
1
  # PTTool
2
2
  module PTTool
3
- VERSION = '0.0.3'.freeze
3
+ VERSION = '0.0.4'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pttool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryce Boe