tracker-client 1.0.5 → 1.0.6

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.
Files changed (2) hide show
  1. data/lib/command.rb +1 -5
  2. metadata +1 -17
data/lib/command.rb CHANGED
@@ -88,13 +88,9 @@ module Tracker
88
88
  end
89
89
 
90
90
  def self.apply(directory, commit_id)
91
- unless commit_id =~ /(\w{40})/
92
- puts 'You must provide GIT commit hash (40 characters).'
93
- exit 1
94
- end
95
91
  patch_body = download_patch_body(commit_id)
96
92
  File.open(File.join(directory, "#{commit_id}.patch"), 'w') { |f| f.puts patch_body }
97
- print 'Are you sure you want to apply patch to current branch? [Y/n]'
93
+ print '[%s] Are you sure you want to apply patch to current branch? [Y/n]' % commit_id
98
94
  exit if (STDIN.gets.chomp) == 'n'
99
95
  git_cmd("git am #{commit_id}.patch", directory)
100
96
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tracker-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -59,22 +59,6 @@ dependencies:
59
59
  - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
- - !ruby/object:Gem::Dependency
63
- name: yaml
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- type: :runtime
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
62
  description: An interface to GIT patches tracker
79
63
  email:
80
64
  - mfojtik@redhat.com