hoy 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/Gemfile +6 -0
  2. data/Gemfile.lock +33 -0
  3. data/README +44 -0
  4. data/Rakefile +7 -0
  5. data/bin/hoy +27 -0
  6. metadata +84 -0
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source :rubygems
2
+
3
+ gem "aruba", "0.2.3"
4
+ gem "cucumber", "0.9.0"
5
+ gem "rspec", "1.3.0"
6
+ gem "thor", "0.14.2"
@@ -0,0 +1,33 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ aruba (0.2.3)
5
+ background_process
6
+ cucumber (~> 0.9.0)
7
+ background_process (1.2)
8
+ builder (2.1.2)
9
+ cucumber (0.9.0)
10
+ builder (~> 2.1.2)
11
+ diff-lcs (~> 1.1.2)
12
+ gherkin (~> 2.2.2)
13
+ json (~> 1.4.6)
14
+ term-ansicolor (~> 1.0.5)
15
+ diff-lcs (1.1.2)
16
+ gherkin (2.2.4)
17
+ json (~> 1.4.6)
18
+ term-ansicolor (~> 1.0.5)
19
+ trollop (~> 1.16.2)
20
+ json (1.4.6)
21
+ rspec (1.3.0)
22
+ term-ansicolor (1.0.5)
23
+ thor (0.14.2)
24
+ trollop (1.16.2)
25
+
26
+ PLATFORMS
27
+ ruby
28
+
29
+ DEPENDENCIES
30
+ aruba (= 0.2.3)
31
+ cucumber (= 0.9.0)
32
+ rspec (= 1.3.0)
33
+ thor (= 0.14.2)
data/README ADDED
@@ -0,0 +1,44 @@
1
+ = hoy
2
+
3
+ == commands
4
+
5
+ - Start on a feature/bug:
6
+
7
+ hoy begin "name of feature"
8
+ hoy bg
9
+
10
+ - As you're working:
11
+
12
+ hoy commit "work done on this feature"
13
+ hoy ci
14
+
15
+ - Push out if needed (to build CI, end of day)
16
+
17
+ hoy sync
18
+ hoy sy
19
+
20
+ - Update to the latest code (rebase off origin/master)
21
+
22
+ hoy prepare
23
+ hoy prepare "commit message that describes this feature"
24
+ hoy pp
25
+
26
+ - Finish up feature (push out to master, remove remote branches)
27
+
28
+ hoy finish
29
+ hoy fn
30
+
31
+ - List out all features/bugs worked on
32
+
33
+ hoy list
34
+ hoy ls
35
+
36
+ $ hoy list
37
+ 1 - "fixing bad alignment"
38
+ 2 - "new page view"
39
+
40
+ - Switch to a different feature/bug
41
+
42
+ hoy switch "fixing bad alignment"
43
+ hoy switch 2
44
+ hoy sw 1
@@ -0,0 +1,7 @@
1
+ require 'cucumber/rake/task'
2
+
3
+ task :default => :features
4
+
5
+ Cucumber::Rake::Task.new(:features, 'Run features that should pass') do |t|
6
+ t.profile = 'default'
7
+ end
data/bin/hoy ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby
2
+ require 'rubygems'
3
+ require 'thor'
4
+
5
+ class Hoy < Thor
6
+ desc "begin BRANCH_NAME", "Starts a new feature branch."
7
+ def begin(branch_title)
8
+ user_name = ENV['GIT_AUTHOR_NAME'] || `git config user.name`
9
+ branch_name = branch_title.downcase.split
10
+
11
+ if user_name =~ /(.*) and (.*)/
12
+ branch_name.unshift initials($1), initials($2)
13
+ else
14
+ branch_name.unshift initials(user_name)
15
+ end
16
+
17
+ system("git checkout -b #{branch_name.join('-')}")
18
+ end
19
+
20
+ private
21
+
22
+ def initials(name)
23
+ name.downcase.split.map { |word| word.chars.first }.join
24
+ end
25
+ end
26
+
27
+ Hoy.start
metadata ADDED
@@ -0,0 +1,84 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hoy
3
+ version: !ruby/object:Gem::Version
4
+ hash: 31
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 0
10
+ version: 0.0.0
11
+ platform: ruby
12
+ authors:
13
+ - Nick Quaranto
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-09-30 00:00:00 -04:00
19
+ default_executable: hoy
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: thor
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
33
+ type: :runtime
34
+ version_requirements: *id001
35
+ description: a dumber git
36
+ email: nick@quaran.to
37
+ executables:
38
+ - hoy
39
+ extensions: []
40
+
41
+ extra_rdoc_files: []
42
+
43
+ files:
44
+ - Gemfile
45
+ - Gemfile.lock
46
+ - README
47
+ - Rakefile
48
+ - bin/hoy
49
+ has_rdoc: true
50
+ homepage: http://github.com/thoughtbot/hoy
51
+ licenses: []
52
+
53
+ post_install_message:
54
+ rdoc_options: []
55
+
56
+ require_paths:
57
+ - lib
58
+ required_ruby_version: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ hash: 3
64
+ segments:
65
+ - 0
66
+ version: "0"
67
+ required_rubygems_version: !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ hash: 3
73
+ segments:
74
+ - 0
75
+ version: "0"
76
+ requirements: []
77
+
78
+ rubyforge_project: fog
79
+ rubygems_version: 1.3.7
80
+ signing_key:
81
+ specification_version: 2
82
+ summary: git + 1
83
+ test_files: []
84
+