socialcast-git-extensions 1.0.0 → 1.1.0

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require File.join(File.dirname(__FILE__), '..', 'lib', 'socialcast-git-extensions.rb')
4
- require 'readline'
5
4
  include Socialcast
6
5
 
7
6
  reset_branch('staging')
data/bin/git-start ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ #start a new git branch with latest changes from master
4
+
5
+ require File.join(File.dirname(__FILE__), '..', 'lib', 'socialcast-git-extensions.rb')
6
+ require 'readline'
7
+ include Socialcast
8
+
9
+ def validate_branch_name(proposed_branch_name)
10
+ proposed_branch_name = proposed_branch_name.strip.parameterize
11
+ if !(proposed_branch_name =~ /^[A-Za-z0-9\-_]+$/)
12
+ puts "'#{proposed_branch_name}' isn't a valid branch name; stick with letters, numbers, dashes, and underscores."
13
+ return nil
14
+ end
15
+
16
+ proposed_branch_name
17
+ end
18
+
19
+ branch_name = validate_branch_name ARGV.join(' ')
20
+ until branch_name.present?
21
+ proposed_branch_name = Readline.readline("What would you like to name your branch? ")
22
+ branch_name = validate_branch_name(proposed_branch_name)
23
+ end
24
+
25
+ run_cmd 'git checkout master'
26
+ run_cmd 'git pull'
27
+ run_cmd "git checkout -b #{branch_name}"
@@ -1,6 +1,6 @@
1
1
  require 'jira4r'
2
- require 'active_support'
3
- require 'active_support/core_ext/hash/keys'
2
+
3
+ require 'active_support/all'
4
4
  require 'grit'
5
5
 
6
6
  module Socialcast
@@ -5,14 +5,14 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{socialcast-git-extensions}
8
- s.version = "1.0.0"
8
+ s.version = "1.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ryan Sonnek"]
12
- s.date = %q{2010-07-30}
12
+ s.date = %q{2010-08-02}
13
13
  s.description = %q{git extension scripts for socialcast workflow}
14
14
  s.email = %q{ryan@socialcast.com}
15
- s.executables = ["git-integrate", "git-promote", "git-prune-merged", "git-release", "git-release-pending", "git-reset-staging", "git-track", "git-update", "git-wtf"]
15
+ s.executables = ["git-integrate", "git-promote", "git-prune-merged", "git-release", "git-release-pending", "git-reset-staging", "git-start", "git-track", "git-update", "git-wtf"]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE",
18
18
  "README.rdoc"
@@ -30,6 +30,7 @@ Gem::Specification.new do |s|
30
30
  "bin/git-release",
31
31
  "bin/git-release-pending",
32
32
  "bin/git-reset-staging",
33
+ "bin/git-start",
33
34
  "bin/git-track",
34
35
  "bin/git-update",
35
36
  "bin/git-wtf",
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: 23
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
+ - 1
8
9
  - 0
9
- - 0
10
- version: 1.0.0
10
+ version: 1.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Sonnek
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-30 00:00:00 -05:00
18
+ date: 2010-08-02 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -97,6 +97,7 @@ executables:
97
97
  - git-release
98
98
  - git-release-pending
99
99
  - git-reset-staging
100
+ - git-start
100
101
  - git-track
101
102
  - git-update
102
103
  - git-wtf
@@ -118,6 +119,7 @@ files:
118
119
  - bin/git-release
119
120
  - bin/git-release-pending
120
121
  - bin/git-reset-staging
122
+ - bin/git-start
121
123
  - bin/git-track
122
124
  - bin/git-update
123
125
  - bin/git-wtf