v2gpti 0.2.0.b1 → 0.2.0.b2
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.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/git-pivotal-tracker-integration/command/configuration.rb +7 -9
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7ba468971f07ab8ec6b5121066897f7a319a6d96
|
|
4
|
+
data.tar.gz: a359885ea382fb0fde198766d0178b1e8491ce88
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 277a58c4901cba14e03d6f93af8326e21b93720fcc1f93df472d5d2eb48b27f12e28cc7f6a1e04f9fdba880a686ce63154f5965eda64d58c7fb1c1eb6cc4176a
|
|
7
|
+
data.tar.gz: 0b3e029960da4f0776e94143eceb159ba423665a2e6b4717100494ca8729e5dda4283e53562ab2bb7b7bcbab78ad40f62757a8d1746bee5efc472fafbf91a562
|
data/README.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
[](https://codeclimate.com/github/nebhale/git-pivotal-tracker-integration)
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
|
|
9
10
|
`v2gpti` is a mod of `git-pivotal-tracker-integration`. It provides a set of additional Git commands to help developers when working with [Pivotal Tracker][pivotal-tracker].
|
|
10
11
|
|
|
11
12
|
[pivotal-tracker]: http://www.pivotaltracker.com
|
|
@@ -29,26 +29,24 @@ class GitPivotalTrackerIntegration::Command::Configuration
|
|
|
29
29
|
# @return [String] The user's Pivotal Tracker API token
|
|
30
30
|
def api_token
|
|
31
31
|
api_token = GitPivotalTrackerIntegration::Util::Git.get_config KEY_API_TOKEN, :inherited
|
|
32
|
-
|
|
33
32
|
if api_token.empty?
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
end
|
|
40
|
-
end
|
|
33
|
+
api_token = ask('Pivotal API Token (found at https://www.pivotaltracker.com/profile): ').strip
|
|
34
|
+
GitPivotalTrackerIntegration::Util::Git.set_config KEY_API_TOKEN, api_token, :global
|
|
35
|
+
puts
|
|
36
|
+
end
|
|
37
|
+
self.check_config_project_id
|
|
41
38
|
|
|
42
39
|
api_token
|
|
43
40
|
end
|
|
44
41
|
|
|
45
|
-
def
|
|
42
|
+
def check_config_project_id
|
|
46
43
|
repo_root = GitPivotalTrackerIntegration::Util::Git.repository_root
|
|
47
44
|
config_filename = "#{repo_root}/.v2gpti/config"
|
|
48
45
|
if File.file?(config_filename)
|
|
49
46
|
pconfig = ParseConfig.new(config_filename)
|
|
50
47
|
GitPivotalTrackerIntegration::Util::Git.set_config("pivotal.project-id", pconfig["pivotal-tracker"]["project-id"])
|
|
51
48
|
end
|
|
49
|
+
|
|
52
50
|
end
|
|
53
51
|
|
|
54
52
|
# Returns the Pivotal Tracker project id for this repository. If this id
|