v2gpti 0.2.1 → 0.2.2

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: 2d42ceb59abdcceff2e129b8c7144be02fa73995
4
- data.tar.gz: ad715bb77d922aa00d920367fbbd53b75d457b90
3
+ metadata.gz: 5b95b1ea97c9e06cb79191c5c2720a7f76715b92
4
+ data.tar.gz: 603e825bd082e623a914335cb75a0638a8a4f12a
5
5
  SHA512:
6
- metadata.gz: c595151e4329039ed4235470dea778b0e0c13e5af5a3c7f59f4a2d1fa20df121acf781bf0ca37d58e2b32dfa87ca66be8aef7c7a5b4b1c2ca8df662a58cd0d5c
7
- data.tar.gz: 7bd8509a922209ff1edeb5473bd48f69642e1f12429d2b2ebeaa562f82f88249e15f4b900ea6a66480ebb4ee22f93954f76393b099d5a9c94a7f4c4bc4b60eda
6
+ metadata.gz: 79b30970ff47789df877ec08951b8b22086add8c92b5b1178d7b654cefafa845529933abe105fb1611fece8fd53243bc5228e68e09ad7eaa8f1ae64c0bdd6cc2
7
+ data.tar.gz: 6df693f8679f497a47abf2835a1162e3a1b44febc5343b7471191a094ce5254907c78f4ad37c59ea931db030fb599fa2f012c1871b6c61133c28e1e556ea1e6e
@@ -91,10 +91,12 @@ class GitPivotalTrackerIntegration::Command::Base
91
91
  params[:estimated_seconds] = estimated_seconds current_story
92
92
  params[:pid] = configuration.toggl_project_id
93
93
  params[:uid] = @toggl.me["id"]
94
+ params[:tags] = [current_story.story_type]
95
+ params[:active] = false
94
96
  params[:description] = "#{current_story.id}" + " commit:" + "#{(GitPivotalTrackerIntegration::Util::Shell.exec "git rev-parse HEAD").chomp[0..6]}"
95
97
  params[:created_with] = "v2gpti"
96
- params[:start] = current_story.created_at.iso8601
97
98
  params[:duration] = seconds_spent(time_spent)
99
+ params[:start] = (Time.now - params[:duration]).iso8601
98
100
  task = @toggl.get_project_task_with_name(configuration.toggl_project_id, "#{current_story.id}")
99
101
  if !task.nil?
100
102
  params[:tid] = task['id']
@@ -117,7 +119,7 @@ class GitPivotalTrackerIntegration::Command::Base
117
119
  when 1
118
120
  estimate = 1.25 * 60 * 60
119
121
  when 2
120
- estiamte = 3 * 60 * 60
122
+ estimate = 3 * 60 * 60
121
123
  when 3
122
124
  estimate = 8 * 60 * 60
123
125
  else
@@ -30,6 +30,12 @@ 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
+ # ask("pause")
35
+ GitPivotalTrackerIntegration::Util::Git.trivial_merge?
36
+ $LOG.debug("configuration:#{@configuration}")
37
+ $LOG.debug("project:#{@project}")
38
+ $LOG.debug("story:#{@configuration.story(@project)}")
33
39
  time_spent = ""
34
40
  while 1
35
41
  time_spent = ask("How much time did you spend on this task? (example: 15m, 2.5h)")
@@ -38,11 +44,6 @@ class GitPivotalTrackerIntegration::Command::Finish < GitPivotalTrackerIntegrati
38
44
  end
39
45
  end
40
46
  finish_toggle(@configuration, time_spent)
41
- # ask("pause")
42
- GitPivotalTrackerIntegration::Util::Git.trivial_merge?
43
- $LOG.debug("configuration:#{@configuration}")
44
- $LOG.debug("project:#{@project}")
45
- $LOG.debug("story:#{@configuration.story(@project)}")
46
47
  GitPivotalTrackerIntegration::Util::Git.merge(@configuration.story(@project), no_complete)
47
48
  GitPivotalTrackerIntegration::Util::Git.push GitPivotalTrackerIntegration::Util::Git.branch_name
48
49
  end
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.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Hale
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-10 00:00:00.000000000 Z
12
+ date: 2014-06-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: highline