primedia-qa_release_tasks 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -25,6 +25,7 @@ spec = Gem::Specification.new do |s|
25
25
  s.require_path = 'lib'
26
26
  s.autorequire = GEM
27
27
  s.files = %w(LICENSE README Rakefile) + Dir.glob("{bin,lib,spec}/**/*")
28
+ s.homepage = ""
28
29
  end
29
30
 
30
31
  task :default => :spec
data/lib/git/commands.rb CHANGED
@@ -51,24 +51,5 @@ module Git
51
51
 
52
52
  'v' + [major, minor, point].join('.')
53
53
  end
54
-
55
- # based on 'git status' output, does this repo contain changes that need to be committed?
56
- # optional second argument is a specific file (or directory) in the repo.
57
- def needs_commit?(dir = Dir.pwd, file = nil)
58
- rval = false
59
- Dir.chdir(dir) do
60
- status = %x{git status}
61
- if file.nil?
62
- rval = true unless status =~ /nothing to commit \(working directory clean\)|nothing added to commit but untracked files present/
63
- if status =~ /nothing added to commit but untracked files present/
64
- warn "untracked files present in #{dir}"
65
- show_changed_files(status)
66
- end
67
- else
68
- rval = true if status =~ /^#\t.*modified: #{file}/
69
- end
70
- end
71
- rval
72
- end
73
54
  end
74
55
  end
data/lib/git/tagger.rb CHANGED
@@ -12,7 +12,7 @@ module Git
12
12
  assert_is_git_repo
13
13
  begin
14
14
  assert_on_qa_branch
15
- assert_no_local_modifications
15
+ system "git status"
16
16
  update_qa if options[:update]
17
17
  fetch_tags
18
18
  tag_next_version(options)
@@ -28,12 +28,6 @@ module Git
28
28
  system("git fetch --tags")
29
29
  end
30
30
 
31
- def assert_no_local_modifications
32
- if needs_commit?
33
- error "You have local modifications. Use git commit or git stash to fix that."
34
- end
35
- end
36
-
37
31
  def assert_on_qa_branch
38
32
  unless get_branch == 'qa_branch'
39
33
  error "You have to be in the qa_branch to do a release."
@@ -6,7 +6,7 @@ require 'git/tagger'
6
6
  require 'tasks/qa_release'
7
7
 
8
8
  module QaReleaseTasks
9
- VERSION = '1.0.0'
9
+ VERSION = '1.0.1'
10
10
 
11
11
  def self.version
12
12
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: primedia-qa_release_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Noble
@@ -10,7 +10,7 @@ autorequire: qa_release_tasks
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-04-14 00:00:00 -07:00
13
+ date: 2009-09-25 00:00:00 -07:00
14
14
  default_executable: git-changelog
15
15
  dependencies: []
16
16
 
@@ -40,7 +40,8 @@ files:
40
40
  - spec/qa_release_tasks_spec.rb
41
41
  - spec/spec_helper.rb
42
42
  has_rdoc: true
43
- homepage:
43
+ homepage: ""
44
+ licenses:
44
45
  post_install_message:
45
46
  rdoc_options: []
46
47
 
@@ -61,9 +62,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
62
  requirements: []
62
63
 
63
64
  rubyforge_project:
64
- rubygems_version: 1.2.0
65
+ rubygems_version: 1.3.5
65
66
  signing_key:
66
- specification_version: 2
67
+ specification_version: 3
67
68
  summary: A gem that provides workflow driven rake tasks for git QA branch management
68
69
  test_files: []
69
70