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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a647b308c1cda53b5e746fc58a165e0228ded646
4
- data.tar.gz: be648ce43be7198ca34a7ba095896d25a9fca672
3
+ metadata.gz: 7ba468971f07ab8ec6b5121066897f7a319a6d96
4
+ data.tar.gz: a359885ea382fb0fde198766d0178b1e8491ce88
5
5
  SHA512:
6
- metadata.gz: 60b76b0211a8962d3c8eab54abb6fe479738e43dc50b82a207d4c858c88433f0a717fa5b1050e0b5d7d044386110d2da0bfd5572fa0b97fa7c64982d37a9c231
7
- data.tar.gz: ac4cdf3ebe5dcd3f7283ee3ae2ccca3ba4d127d6c4fa8267ea3289553eaf7c40c5bd623b4bea07833b8cb1b4884668c45a760b6d6fa5252cd9ce0e83e0c4f47b
6
+ metadata.gz: 277a58c4901cba14e03d6f93af8326e21b93720fcc1f93df472d5d2eb48b27f12e28cc7f6a1e04f9fdba880a686ce63154f5965eda64d58c7fb1c1eb6cc4176a
7
+ data.tar.gz: 0b3e029960da4f0776e94143eceb159ba423665a2e6b4717100494ca8729e5dda4283e53562ab2bb7b7bcbab78ad40f62757a8d1746bee5efc472fafbf91a562
data/README.md CHANGED
@@ -6,6 +6,7 @@
6
6
  [![Code Climate](https://codeclimate.com/github/nebhale/git-pivotal-tracker-integration.svg)](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
- self.check_config
35
- if api_token.empty?
36
- api_token = ask('Pivotal API Token (found at https://www.pivotaltracker.com/profile): ').strip
37
- GitPivotalTrackerIntegration::Util::Git.set_config KEY_API_TOKEN, api_token, :global
38
- puts
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 check_config
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: v2gpti
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.b1
4
+ version: 0.2.0.b2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Hale