socialcast-git-extensions 2.0.5 → 2.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,21 @@
1
+ ## MAC OS
2
+ .DS_Store
3
+
4
+ ## TEXTMATE
5
+ *.tmproj
6
+ tmtags
7
+
8
+ ## EMACS
9
+ *~
10
+ \#*
11
+ .\#*
12
+
13
+ ## VIM
14
+ *.swp
15
+
16
+ ## PROJECT::GENERAL
17
+ coverage
18
+ rdoc
19
+ pkg
20
+
21
+ ## PROJECT::SPECIFIC
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in socialcast-git-extensions.gemspec
4
+ gemspec
data/Rakefile CHANGED
@@ -1,59 +1,2 @@
1
- require 'rubygems'
2
- require 'rake'
3
-
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "socialcast-git-extensions"
8
- gem.summary = %Q{git extension scripts for socialcast workflow}
9
- gem.description = %Q{git extension scripts for socialcast workflow}
10
- gem.email = "ryan@socialcast.com"
11
- gem.homepage = "http://github.com/wireframe/socialcast-git-extensions"
12
- gem.authors = ["Ryan Sonnek"]
13
- gem.add_development_dependency "shoulda", ">= 0"
14
- gem.add_runtime_dependency "grit", ">= 0"
15
- gem.add_runtime_dependency "wireframe-jira4r", ">= 0"
16
- gem.add_runtime_dependency "activesupport", ">= 0"
17
- gem.add_runtime_dependency "git_remote_branch", ">= 0"
18
- gem.add_runtime_dependency 'highline', '>= 0'
19
- gem.add_runtime_dependency 'socialcast', '>= 0.3.4'
20
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
21
- end
22
- Jeweler::RubygemsDotOrgTasks.new
23
- rescue LoadError
24
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
25
- end
26
-
27
- require 'rake/testtask'
28
- Rake::TestTask.new(:test) do |test|
29
- test.libs << 'lib' << 'test'
30
- test.pattern = 'test/**/test_*.rb'
31
- test.verbose = true
32
- end
33
-
34
- begin
35
- require 'rcov/rcovtask'
36
- Rcov::RcovTask.new do |test|
37
- test.libs << 'test'
38
- test.pattern = 'test/**/test_*.rb'
39
- test.verbose = true
40
- end
41
- rescue LoadError
42
- task :rcov do
43
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
44
- end
45
- end
46
-
47
- task :test => :check_dependencies
48
-
49
- task :default => :test
50
-
51
- require 'rake/rdoctask'
52
- Rake::RDocTask.new do |rdoc|
53
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
54
-
55
- rdoc.rdoc_dir = 'rdoc'
56
- rdoc.title = "socialcast-git-extensions #{version}"
57
- rdoc.rdoc_files.include('README*')
58
- rdoc.rdoc_files.include('lib/**/*.rb')
59
- end
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
@@ -10,12 +10,14 @@ include Socialcast
10
10
  is_quiet = ARGV.delete("--quiet") || ARGV.delete("-q")
11
11
 
12
12
  branch = current_branch
13
- tickets = assert_tickets_provided(ARGV, branch)
13
+ tickets = tickets_from_arguments_or_branch(ARGV, branch)
14
14
 
15
15
  run_cmd 'git update'
16
16
  integrate(branch, 'prototype')
17
17
 
18
- update_tickets tickets, :branch => branch, :in_prototype => true
19
- start_tickets tickets
18
+ if tickets.any?
19
+ update_tickets tickets, :branch => branch, :in_prototype => true
20
+ start_tickets tickets
21
+ end
20
22
 
21
23
  run_cmd "socialcast share '#worklog integrating #{branch} into prototype #scgitx'" unless is_quiet
@@ -6,13 +6,15 @@ include Socialcast
6
6
  is_quiet = ARGV.delete("--quiet") || ARGV.delete("-q")
7
7
 
8
8
  branch = current_branch
9
- tickets = assert_tickets_provided(ARGV, branch)
9
+ tickets = tickets_from_arguments_or_branch(ARGV, branch)
10
10
 
11
11
  run_cmd 'git update'
12
12
  integrate(branch, 'staging')
13
13
 
14
- update_tickets tickets, :branch => branch, :in_prototype => true, :in_staging => true
15
- resolve_tickets tickets
14
+ if tickets.any?
15
+ update_tickets tickets, :branch => branch, :in_prototype => true, :in_staging => true
16
+ resolve_tickets tickets
17
+ end
16
18
 
17
19
  integrate('staging', 'prototype')
18
20
  run_cmd "git checkout #{branch}"
@@ -4,7 +4,7 @@ require File.join(File.dirname(__FILE__), '..', 'lib', 'socialcast-git-extension
4
4
  include Socialcast
5
5
 
6
6
  branch = current_branch
7
- raise "Cannot release reserved branch" if %w{master staging prototype}.include?(branch)
7
+ abort("Cannot release reserved branch") if %w{master staging prototype}.include?(branch)
8
8
 
9
9
  is_quiet = ARGV.delete("--quiet") || ARGV.delete("-q")
10
10
  tickets = assert_tickets_provided(ARGV, branch)
@@ -7,7 +7,7 @@ include Socialcast
7
7
 
8
8
  is_quiet = ARGV.delete("--quiet") || ARGV.delete("-q")
9
9
  tickets = tickets_from_arguments ARGV
10
- raise "JIRA ticket id is required to run this process" unless tickets.any?
10
+ abort("JIRA ticket id is required to run this process") unless tickets.any?
11
11
 
12
12
  example_branch = %w{ api-fix-invalid-auth desktop-cleanup-avatar-markup share-form-add-edit-link }.sort_by { rand }.first
13
13
  repo = Grit::Repo.new(Dir.pwd)
@@ -44,7 +44,7 @@ module Socialcast
44
44
 
45
45
  def assert_tickets_provided(ticket_ids, branch)
46
46
  tickets = tickets_from_arguments_or_branch(ticket_ids, branch)
47
- raise "JIRA ticket id or existing JIRA Git Branch is required to run this process" unless tickets.any?
47
+ abort("JIRA ticket id or existing JIRA Git Branch is required to run this process") unless tickets.any?
48
48
  tickets
49
49
  end
50
50
  def tickets_from_arguments_or_branch(ticket_ids, branch)
@@ -154,4 +154,4 @@ module Socialcast
154
154
 
155
155
  run_cmd "git checkout #{branch}"
156
156
  end
157
- end
157
+ end
@@ -0,0 +1,7 @@
1
+ module Socialcast
2
+ module Git
3
+ module Extensions
4
+ VERSION = "2.0.6"
5
+ end
6
+ end
7
+ end
@@ -1,82 +1,28 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "socialcast-git-extensions/version"
5
4
 
6
5
  Gem::Specification.new do |s|
7
- s.name = %q{socialcast-git-extensions}
8
- s.version = "2.0.5"
6
+ s.name = "socialcast-git-extensions"
7
+ s.version = Socialcast::Git::Extensions::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Ryan Sonnek"]
10
+ s.email = ["ryan@socialcast.com"]
11
+ s.homepage = "http://github.com/socialcast/socialcast-git-extensions"
12
+ s.summary = %q{git extension scripts for socialcast workflow}
13
+ s.description = %q{GIT it done!}
9
14
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Ryan Sonnek"]
12
- s.date = %q{2011-02-23}
13
- s.description = %q{git extension scripts for socialcast workflow}
14
- s.email = %q{ryan@socialcast.com}
15
- s.executables = ["git-release-staging", "git-track", "git-start", "git-reset-prototype", "git-integrate", "git-update", "git-wtf", "git-share", "git-reset-staging", "git-release", "git-prune-merged", "git-promote"]
16
- s.extra_rdoc_files = [
17
- "LICENSE",
18
- "README.rdoc"
19
- ]
20
- s.files = [
21
- ".document",
22
- "LICENSE",
23
- "README.rdoc",
24
- "Rakefile",
25
- "VERSION",
26
- "bin/git-integrate",
27
- "bin/git-promote",
28
- "bin/git-prune-merged",
29
- "bin/git-release",
30
- "bin/git-release-staging",
31
- "bin/git-reset-prototype",
32
- "bin/git-reset-staging",
33
- "bin/git-share",
34
- "bin/git-start",
35
- "bin/git-track",
36
- "bin/git-update",
37
- "bin/git-wtf",
38
- "lib/socialcast-git-extensions.rb",
39
- "socialcast-git-extensions.gemspec",
40
- "test/helper.rb",
41
- "test/test_socialcast-git-extensions.rb"
42
- ]
43
- s.homepage = %q{http://github.com/wireframe/socialcast-git-extensions}
44
- s.require_paths = ["lib"]
45
- s.rubygems_version = %q{1.5.2}
46
- s.summary = %q{git extension scripts for socialcast workflow}
47
- s.test_files = [
48
- "test/helper.rb",
49
- "test/test_socialcast-git-extensions.rb"
50
- ]
15
+ s.rubyforge_project = "socialcast-git-extensions"
51
16
 
52
- if s.respond_to? :specification_version then
53
- s.specification_version = 3
17
+ s.add_runtime_dependency(%q<grit>, [">= 0"])
18
+ s.add_runtime_dependency(%q<wireframe-jira4r>, [">= 0"])
19
+ s.add_runtime_dependency(%q<activesupport>, [">= 0"])
20
+ s.add_runtime_dependency(%q<git_remote_branch>, [">= 0"])
21
+ s.add_runtime_dependency(%q<highline>, [">= 0"])
22
+ s.add_runtime_dependency(%q<socialcast>, [">= 0.3.4"])
54
23
 
55
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
56
- s.add_development_dependency(%q<shoulda>, [">= 0"])
57
- s.add_runtime_dependency(%q<grit>, [">= 0"])
58
- s.add_runtime_dependency(%q<wireframe-jira4r>, [">= 0"])
59
- s.add_runtime_dependency(%q<activesupport>, [">= 0"])
60
- s.add_runtime_dependency(%q<git_remote_branch>, [">= 0"])
61
- s.add_runtime_dependency(%q<highline>, [">= 0"])
62
- s.add_runtime_dependency(%q<socialcast>, [">= 0.3.4"])
63
- else
64
- s.add_dependency(%q<shoulda>, [">= 0"])
65
- s.add_dependency(%q<grit>, [">= 0"])
66
- s.add_dependency(%q<wireframe-jira4r>, [">= 0"])
67
- s.add_dependency(%q<activesupport>, [">= 0"])
68
- s.add_dependency(%q<git_remote_branch>, [">= 0"])
69
- s.add_dependency(%q<highline>, [">= 0"])
70
- s.add_dependency(%q<socialcast>, [">= 0.3.4"])
71
- end
72
- else
73
- s.add_dependency(%q<shoulda>, [">= 0"])
74
- s.add_dependency(%q<grit>, [">= 0"])
75
- s.add_dependency(%q<wireframe-jira4r>, [">= 0"])
76
- s.add_dependency(%q<activesupport>, [">= 0"])
77
- s.add_dependency(%q<git_remote_branch>, [">= 0"])
78
- s.add_dependency(%q<highline>, [">= 0"])
79
- s.add_dependency(%q<socialcast>, [">= 0.3.4"])
80
- end
24
+ s.files = `git ls-files`.split("\n")
25
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
26
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
27
+ s.require_paths = ["lib"]
81
28
  end
82
-
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: socialcast-git-extensions
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 5
10
- version: 2.0.5
9
+ - 6
10
+ version: 2.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Sonnek
@@ -15,11 +15,10 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-23 00:00:00 -06:00
19
- default_executable:
18
+ date: 2011-06-08 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- name: shoulda
21
+ name: grit
23
22
  prerelease: false
24
23
  requirement: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
@@ -30,10 +29,10 @@ dependencies:
30
29
  segments:
31
30
  - 0
32
31
  version: "0"
33
- type: :development
32
+ type: :runtime
34
33
  version_requirements: *id001
35
34
  - !ruby/object:Gem::Dependency
36
- name: grit
35
+ name: wireframe-jira4r
37
36
  prerelease: false
38
37
  requirement: &id002 !ruby/object:Gem::Requirement
39
38
  none: false
@@ -47,7 +46,7 @@ dependencies:
47
46
  type: :runtime
48
47
  version_requirements: *id002
49
48
  - !ruby/object:Gem::Dependency
50
- name: wireframe-jira4r
49
+ name: activesupport
51
50
  prerelease: false
52
51
  requirement: &id003 !ruby/object:Gem::Requirement
53
52
  none: false
@@ -61,7 +60,7 @@ dependencies:
61
60
  type: :runtime
62
61
  version_requirements: *id003
63
62
  - !ruby/object:Gem::Dependency
64
- name: activesupport
63
+ name: git_remote_branch
65
64
  prerelease: false
66
65
  requirement: &id004 !ruby/object:Gem::Requirement
67
66
  none: false
@@ -75,7 +74,7 @@ dependencies:
75
74
  type: :runtime
76
75
  version_requirements: *id004
77
76
  - !ruby/object:Gem::Dependency
78
- name: git_remote_branch
77
+ name: highline
79
78
  prerelease: false
80
79
  requirement: &id005 !ruby/object:Gem::Requirement
81
80
  none: false
@@ -88,24 +87,10 @@ dependencies:
88
87
  version: "0"
89
88
  type: :runtime
90
89
  version_requirements: *id005
91
- - !ruby/object:Gem::Dependency
92
- name: highline
93
- prerelease: false
94
- requirement: &id006 !ruby/object:Gem::Requirement
95
- none: false
96
- requirements:
97
- - - ">="
98
- - !ruby/object:Gem::Version
99
- hash: 3
100
- segments:
101
- - 0
102
- version: "0"
103
- type: :runtime
104
- version_requirements: *id006
105
90
  - !ruby/object:Gem::Dependency
106
91
  name: socialcast
107
92
  prerelease: false
108
- requirement: &id007 !ruby/object:Gem::Requirement
93
+ requirement: &id006 !ruby/object:Gem::Requirement
109
94
  none: false
110
95
  requirements:
111
96
  - - ">="
@@ -117,33 +102,34 @@ dependencies:
117
102
  - 4
118
103
  version: 0.3.4
119
104
  type: :runtime
120
- version_requirements: *id007
121
- description: git extension scripts for socialcast workflow
122
- email: ryan@socialcast.com
105
+ version_requirements: *id006
106
+ description: GIT it done!
107
+ email:
108
+ - ryan@socialcast.com
123
109
  executables:
110
+ - git-integrate
111
+ - git-promote
112
+ - git-prune-merged
113
+ - git-release
124
114
  - git-release-staging
125
- - git-track
126
- - git-start
127
115
  - git-reset-prototype
128
- - git-integrate
116
+ - git-reset-staging
117
+ - git-share
118
+ - git-start
119
+ - git-track
129
120
  - git-update
130
121
  - git-wtf
131
- - git-share
132
- - git-reset-staging
133
- - git-release
134
- - git-prune-merged
135
- - git-promote
136
122
  extensions: []
137
123
 
138
- extra_rdoc_files:
139
- - LICENSE
140
- - README.rdoc
124
+ extra_rdoc_files: []
125
+
141
126
  files:
142
127
  - .document
128
+ - .gitignore
129
+ - Gemfile
143
130
  - LICENSE
144
131
  - README.rdoc
145
132
  - Rakefile
146
- - VERSION
147
133
  - bin/git-integrate
148
134
  - bin/git-promote
149
135
  - bin/git-prune-merged
@@ -157,11 +143,11 @@ files:
157
143
  - bin/git-update
158
144
  - bin/git-wtf
159
145
  - lib/socialcast-git-extensions.rb
146
+ - lib/socialcast-git-extensions/version.rb
160
147
  - socialcast-git-extensions.gemspec
161
148
  - test/helper.rb
162
149
  - test/test_socialcast-git-extensions.rb
163
- has_rdoc: true
164
- homepage: http://github.com/wireframe/socialcast-git-extensions
150
+ homepage: http://github.com/socialcast/socialcast-git-extensions
165
151
  licenses: []
166
152
 
167
153
  post_install_message:
@@ -189,8 +175,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
175
  version: "0"
190
176
  requirements: []
191
177
 
192
- rubyforge_project:
193
- rubygems_version: 1.5.2
178
+ rubyforge_project: socialcast-git-extensions
179
+ rubygems_version: 1.8.1
194
180
  signing_key:
195
181
  specification_version: 3
196
182
  summary: git extension scripts for socialcast workflow
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 2.0.5