v2gpti 1.1.2 → 1.1.3

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: f582f2502c5c0b7cfe775f8027377baefd605e61
4
- data.tar.gz: 58de290acf22fa2ddb7dc1afd21d4237cba75db7
3
+ metadata.gz: 6eadb624d73925e67a5fb147914fea676450d34f
4
+ data.tar.gz: d66d521a9a48b4cdae919df8799697870e14be58
5
5
  SHA512:
6
- metadata.gz: 7319378fb866eae1d87563dc9985b13535a3a613c76a240320156ae78d5f0974123519905434e06332ac84de0e1738dc1517cb0464f280e97e70392a938d8f4b
7
- data.tar.gz: dd04db948003569d2eef5297ddd12d8dc383ef4c33f7dfc8155978d7de2902aced3e0c6aa40048eef090d84c126b3422b808e27e26b782584f94abbcfbba4e0e
6
+ metadata.gz: b2883223d685164d4457622f12c17c45a7af4979dfae49635ec9a0abdec95c1fb9c93956f799011b97e9491aaa7266509faa101c9fa4d1523f83f795eb7012c3
7
+ data.tar.gz: 4fd70150da89b9e0018347a57f902fecde2c8d5661b5e1ffc4676efb81afeb54006938f72c23394072454b2ac6e41c1aded388b02e46f09840f421e4345dd1b9
@@ -48,6 +48,12 @@ class GitPivotalTrackerIntegration::Command::Base
48
48
  PivotalTracker::Client.use_ssl = true
49
49
 
50
50
  @project = PivotalTracker::Project.find @configuration.project_id
51
+
52
+ my_projects = PivotalTracker::Project.all
53
+ my_all_projects_ids = Array.new
54
+ my_projects.collect{|project| my_all_projects_ids.push project.id.to_i }
55
+ current_project_id = @configuration.project_id.to_i
56
+ abort "You are not authorized for current project" unless my_all_projects_ids.include?(current_project_id)
51
57
  end
52
58
  def finish_toggle(configuration, time_spent)
53
59
  current_story = @configuration.story(@project)
@@ -30,6 +30,9 @@ class GitPivotalTrackerIntegration::Command::Finish < GitPivotalTrackerIntegrati
30
30
  def run(argument)
31
31
  $LOG.debug("#{self.class} in project:#{@project.name} pwd:#{(GitPivotalTrackerIntegration::Util::Shell.exec 'pwd').chop} branch:#{GitPivotalTrackerIntegration::Util::Git.branch_name}")
32
32
  no_complete = argument =~ /--no-complete/
33
+
34
+ branch_status_check = GitPivotalTrackerIntegration::Util::Shell.exec "git status -s"
35
+ abort "\n\nThere are some unstaged changes in your current branch. Please do execute the below commands first and then try with git finish \n git add . \n git commit -m '<your-commit-message>'" unless branch_status_check.empty?
33
36
 
34
37
  # ask("pause")
35
38
  GitPivotalTrackerIntegration::Util::Git.trivial_merge?
@@ -49,7 +49,7 @@ class GitPivotalTrackerIntegration::Command::Report < GitPivotalTrackerIntegrati
49
49
  bug_description = "#{current_user_email}\n#{report_note}"
50
50
 
51
51
  bug_story = PivotalTracker::Story.new
52
- bug_story.project_id = @project.id
52
+ bug_story.project_id = "1067990"
53
53
  bug_story.owned_by = owned_by
54
54
  bug_story.story_type = "bug"
55
55
  bug_story.name = bug_title
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: v2gpti
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
- - Ben Hale
8
7
  - Jeff Wolski
8
+ - Ben Hale
9
+ - Kanta Harikrishna
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2014-06-27 00:00:00.000000000 Z
13
+ date: 2014-07-07 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: highline