bueller 0.0.1

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 (109) hide show
  1. data/ChangeLog.markdown +141 -0
  2. data/LICENSE +20 -0
  3. data/README.markdown +182 -0
  4. data/bin/bueller +5 -0
  5. data/lib/bueller/commands/build_gem.rb +50 -0
  6. data/lib/bueller/commands/git_tag_release.rb +63 -0
  7. data/lib/bueller/commands/install_gem.rb +36 -0
  8. data/lib/bueller/commands/release_to_github.rb +41 -0
  9. data/lib/bueller/commands/release_to_rubygems.rb +26 -0
  10. data/lib/bueller/commands/version/base.rb +36 -0
  11. data/lib/bueller/commands/version/bump_major.rb +11 -0
  12. data/lib/bueller/commands/version/bump_minor.rb +12 -0
  13. data/lib/bueller/commands/version/bump_patch.rb +14 -0
  14. data/lib/bueller/commands/version/write.rb +21 -0
  15. data/lib/bueller/commands/write_gemspec.rb +29 -0
  16. data/lib/bueller/commands.rb +18 -0
  17. data/lib/bueller/errors.rb +8 -0
  18. data/lib/bueller/gemspec_helper.rb +83 -0
  19. data/lib/bueller/generator/application.rb +51 -0
  20. data/lib/bueller/generator/bacon_mixin.rb +43 -0
  21. data/lib/bueller/generator/github_mixin.rb +29 -0
  22. data/lib/bueller/generator/micronaut_mixin.rb +41 -0
  23. data/lib/bueller/generator/minitest_mixin.rb +42 -0
  24. data/lib/bueller/generator/options.rb +154 -0
  25. data/lib/bueller/generator/rdoc_mixin.rb +9 -0
  26. data/lib/bueller/generator/riot_mixin.rb +42 -0
  27. data/lib/bueller/generator/rspec_mixin.rb +50 -0
  28. data/lib/bueller/generator/shindo_mixin.rb +44 -0
  29. data/lib/bueller/generator/shoulda_mixin.rb +42 -0
  30. data/lib/bueller/generator/testspec_mixin.rb +42 -0
  31. data/lib/bueller/generator/testunit_mixin.rb +39 -0
  32. data/lib/bueller/generator/yard_mixin.rb +14 -0
  33. data/lib/bueller/generator.rb +291 -0
  34. data/lib/bueller/rubyforge_tasks.rb +88 -0
  35. data/lib/bueller/tasks.rb +133 -0
  36. data/lib/bueller/templates/.document +11 -0
  37. data/lib/bueller/templates/.gitignore +40 -0
  38. data/lib/bueller/templates/Gemfile +1 -0
  39. data/lib/bueller/templates/LICENSE +20 -0
  40. data/lib/bueller/templates/README.rdoc +17 -0
  41. data/lib/bueller/templates/Rakefile +20 -0
  42. data/lib/bueller/templates/bacon/flunking.rb +7 -0
  43. data/lib/bueller/templates/bacon/helper.rb +8 -0
  44. data/lib/bueller/templates/bueller_tasks.erb +10 -0
  45. data/lib/bueller/templates/features/default.feature +9 -0
  46. data/lib/bueller/templates/features/support/env.rb +16 -0
  47. data/lib/bueller/templates/gemspec +27 -0
  48. data/lib/bueller/templates/micronaut/flunking.rb +7 -0
  49. data/lib/bueller/templates/micronaut/helper.rb +17 -0
  50. data/lib/bueller/templates/minitest/flunking.rb +7 -0
  51. data/lib/bueller/templates/minitest/helper.rb +11 -0
  52. data/lib/bueller/templates/other_tasks.erb +84 -0
  53. data/lib/bueller/templates/riot/flunking.rb +11 -0
  54. data/lib/bueller/templates/riot/helper.rb +3 -0
  55. data/lib/bueller/templates/rspec/.rspec +1 -0
  56. data/lib/bueller/templates/rspec/flunking.rb +7 -0
  57. data/lib/bueller/templates/rspec/helper.rb +19 -0
  58. data/lib/bueller/templates/shindo/flunking.rb +8 -0
  59. data/lib/bueller/templates/shindo/helper.rb +5 -0
  60. data/lib/bueller/templates/shoulda/flunking.rb +7 -0
  61. data/lib/bueller/templates/shoulda/helper.rb +10 -0
  62. data/lib/bueller/templates/testspec/flunking.rb +7 -0
  63. data/lib/bueller/templates/testspec/helper.rb +7 -0
  64. data/lib/bueller/templates/testunit/flunking.rb +7 -0
  65. data/lib/bueller/templates/testunit/helper.rb +9 -0
  66. data/lib/bueller/version_helper.rb +59 -0
  67. data/lib/bueller.rb +139 -0
  68. data/spec/bueller/commands/build_gem_spec.rb +38 -0
  69. data/spec/bueller/commands/git_tag_release_spec.rb +79 -0
  70. data/spec/bueller/commands/install_gem_spec.rb +11 -0
  71. data/spec/bueller/commands/release_to_github_spec.rb +54 -0
  72. data/spec/bueller/commands/release_to_rubygems_spec.rb +15 -0
  73. data/spec/bueller/commands/version/bump_major_spec.rb +12 -0
  74. data/spec/bueller/commands/version/bump_minor_spec.rb +12 -0
  75. data/spec/bueller/commands/version/bump_patch_spec.rb +12 -0
  76. data/spec/bueller/commands/write_gemspec_spec.rb +32 -0
  77. data/spec/bueller/gemspec_helper_spec.rb +55 -0
  78. data/spec/bueller/generator/application_spec.rb +67 -0
  79. data/spec/bueller/generator/options_spec.rb +206 -0
  80. data/spec/bueller/generator_mixins_spec.rb +23 -0
  81. data/spec/bueller/generator_spec.rb +274 -0
  82. data/spec/bueller/tasks_spec.rb +29 -0
  83. data/spec/bueller/version_helper_spec.rb +57 -0
  84. data/spec/bueller_spec.rb +94 -0
  85. data/spec/fixtures/bar/bar.gemspec +41 -0
  86. data/spec/fixtures/bar/bin/foo_the_ultimate_bin +1 -0
  87. data/spec/fixtures/bar/hey_include_me_in_gemspec +0 -0
  88. data/spec/fixtures/bar/lib/foo_the_ultimate_lib.rb +1 -0
  89. data/spec/fixtures/existing-project/LICENSE +20 -0
  90. data/spec/fixtures/existing-project/README.rdoc +7 -0
  91. data/spec/fixtures/existing-project/Rakefile +69 -0
  92. data/spec/fixtures/existing-project/existing-project.gemspec +20 -0
  93. data/spec/fixtures/existing-project/lib/existing_project_with_version.rb +0 -0
  94. data/spec/fixtures/existing-project/test/existing_project_with_version_test.rb +7 -0
  95. data/spec/fixtures/existing-project/test/test_helper.rb +10 -0
  96. data/spec/fixtures/existing-project-with-version-constant/LICENSE +20 -0
  97. data/spec/fixtures/existing-project-with-version-constant/README.rdoc +7 -0
  98. data/spec/fixtures/existing-project-with-version-constant/Rakefile +69 -0
  99. data/spec/fixtures/existing-project-with-version-constant/existing-project-with-version.gemspec +19 -0
  100. data/spec/fixtures/existing-project-with-version-constant/lib/existing_project_with_version.rb +0 -0
  101. data/spec/fixtures/existing-project-with-version-constant/test/existing_project_with_version_test.rb +7 -0
  102. data/spec/fixtures/existing-project-with-version-constant/test/test_helper.rb +10 -0
  103. data/spec/spec_helper.rb +11 -0
  104. data/spec/support/application.rb +28 -0
  105. data/spec/support/file_system.rb +24 -0
  106. data/spec/support/gemspec.rb +28 -0
  107. data/spec/support/git.rb +19 -0
  108. data/spec/support/have_version.rb +18 -0
  109. metadata +381 -0
@@ -0,0 +1,41 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = %q{bueller}
3
+ s.version = "0.0.1"
4
+ s.date = '2010-02-15'
5
+ s.authors = ['Josh Nichols', 'Derek Kastner']
6
+ s.email = 'dkastner@gmail.com'
7
+ s.homepage = 'http://github.com/dkastner/bueller'
8
+ s.description = 'Simpler and opinionateder helper for creating Rubygem projects on GitHub'
9
+ s.summary = 'Simple and opinionated helper for creating Rubygem projects on GitHub'
10
+ s.rdoc_options = ['--charset=UTF-8']
11
+ s.extra_rdoc_files = [
12
+ "ChangeLog.markdown",
13
+ "LICENSE",
14
+ "README.markdown",
15
+ ]
16
+
17
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.3.7")
18
+ s.rubygems_version = '1.3.7'
19
+ s.specification_version = 3
20
+
21
+ s.require_paths = ['lib']
22
+ s.executables = ['bueller']
23
+ s.default_executable = 'bueller'
24
+ s.files = Dir.glob('lib/**/*.rb')
25
+ s.test_files = Dir.glob('spec/**/*.rb')
26
+
27
+ s.add_runtime_dependency('bundler', '~> 1.0.0')
28
+ s.add_runtime_dependency('git', '>= 1.2.5')
29
+ s.add_runtime_dependency('rake', '>= 0')
30
+ s.add_development_dependency('activesupport', '~> 2.3.5')
31
+ s.add_development_dependency('bluecloth', '>= 0')
32
+ s.add_development_dependency('cucumber', '>= 0')
33
+ s.add_development_dependency('mhennemeyer-output_catcher', '>= 0')
34
+ s.add_development_dependency('rcov', '>= 0')
35
+ s.add_development_dependency('redgreen', '>= 0')
36
+ s.add_development_dependency('rspec', '~> 2.0.0.beta.20')
37
+ s.add_development_dependency('test-construct', '>= 0')
38
+ s.add_development_dependency('timecop', '>= 0')
39
+ s.add_development_dependency('yard', '~> 0.6.0')
40
+ end
41
+
@@ -0,0 +1 @@
1
+ # You betcha!
File without changes
@@ -0,0 +1 @@
1
+ # Uhuh
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 Josh Nichols
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,7 @@
1
+ = existing-project-with-version
2
+
3
+ Description goes here.
4
+
5
+ == Copyright
6
+
7
+ Copyright (c) 2009 Josh Nichols. See LICENSE for details.
@@ -0,0 +1,69 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+
4
+ begin
5
+ require 'bueller'
6
+ Bueller::Tasks.new
7
+ rescue LoadError
8
+ puts "Bueller not available. Install it with: gem install technicalpickles-bueller -s http://gems.github.com"
9
+ end
10
+
11
+ require 'rake/testtask'
12
+ Rake::TestTask.new(:test) do |test|
13
+ test.libs << 'lib' << 'test'
14
+ test.pattern = 'test/**/*_test.rb'
15
+ test.verbose = false
16
+ end
17
+
18
+ begin
19
+ require 'rcov/rcovtask'
20
+ Rcov::RcovTask.new do |test|
21
+ test.libs << 'test'
22
+ test.pattern = 'test/**/*_test.rb'
23
+ test.verbose = true
24
+ end
25
+ rescue LoadError
26
+ task :rcov do
27
+ abort "RCov is not available. In order to run rcov, you must: gem install spicycode-rcov"
28
+ end
29
+ end
30
+
31
+
32
+ task :default => :test
33
+
34
+ require 'rake/rdoctask'
35
+ Rake::RDocTask.new do |rdoc|
36
+ rdoc.rdoc_dir = 'rdoc'
37
+ rdoc.title = "existing-project-with-version"
38
+ rdoc.options << '--line-numbers' << '--inline-source'
39
+ rdoc.rdoc_files.include('README*')
40
+ rdoc.rdoc_files.include('lib/**/*.rb')
41
+ end
42
+
43
+ # Rubyforge documentation task
44
+ begin
45
+ require 'rake/contrib/sshpublisher'
46
+ namespace :rubyforge do
47
+
48
+ desc "Release gem and RDoc documentation to RubyForge"
49
+ task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
50
+
51
+ namespace :release do
52
+ desc "Publish RDoc to RubyForge."
53
+ task :docs => [:rdoc] do
54
+ require 'yaml'
55
+ config = YAML.load(
56
+ File.read(File.expand_path('~/.rubyforge/user-config.yml'))
57
+ )
58
+
59
+ host = "#{config['username']}@rubyforge.org"
60
+ remote_dir = "/var/www/gforge-projects/existing-project-with-version/"
61
+ local_dir = 'rdoc'
62
+
63
+ Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
64
+ end
65
+ end
66
+ end
67
+ rescue LoadError
68
+ puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
69
+ end
@@ -0,0 +1,20 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{existing-project}
5
+ s.version = "1.5.3"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Josh Nichols"]
9
+ s.date = %q{2009-03-13}
10
+ s.email = %q{josh@technicalpickles.com}
11
+ s.extra_rdoc_files = ["README.rdoc", "LICENSE"]
12
+ s.files = Dir.glob('lib/**/*.rb')
13
+ s.test_files = Dir.glob('test/**/*.rb')
14
+ s.has_rdoc = true
15
+ s.homepage = %q{http://github.com/technicalpickles/existing-project-with-version}
16
+ s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
17
+ s.require_paths = ["lib"]
18
+ s.rubygems_version = %q{1.3.1}
19
+ s.summary = %q{Summarize your gem}
20
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class ExistingProjectWithVersionTest < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ require 'shoulda'
4
+
5
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
7
+ require 'existing_project_with_version'
8
+
9
+ class Test::Unit::TestCase
10
+ end
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 Josh Nichols
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,7 @@
1
+ = existing-project-with-version
2
+
3
+ Description goes here.
4
+
5
+ == Copyright
6
+
7
+ Copyright (c) 2009 Josh Nichols. See LICENSE for details.
@@ -0,0 +1,69 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+
4
+ begin
5
+ require 'bueller'
6
+ Bueller::Tasks.new
7
+ rescue LoadError
8
+ puts "Bueller not available. Install it with: gem install technicalpickles-bueller -s http://gems.github.com"
9
+ end
10
+
11
+ require 'rake/testtask'
12
+ Rake::TestTask.new(:test) do |test|
13
+ test.libs << 'lib' << 'test'
14
+ test.pattern = 'test/**/*_test.rb'
15
+ test.verbose = false
16
+ end
17
+
18
+ begin
19
+ require 'rcov/rcovtask'
20
+ Rcov::RcovTask.new do |test|
21
+ test.libs << 'test'
22
+ test.pattern = 'test/**/*_test.rb'
23
+ test.verbose = true
24
+ end
25
+ rescue LoadError
26
+ task :rcov do
27
+ abort "RCov is not available. In order to run rcov, you must: gem install spicycode-rcov"
28
+ end
29
+ end
30
+
31
+
32
+ task :default => :test
33
+
34
+ require 'rake/rdoctask'
35
+ Rake::RDocTask.new do |rdoc|
36
+ rdoc.rdoc_dir = 'rdoc'
37
+ rdoc.title = "existing-project-with-version"
38
+ rdoc.options << '--line-numbers' << '--inline-source'
39
+ rdoc.rdoc_files.include('README*')
40
+ rdoc.rdoc_files.include('lib/**/*.rb')
41
+ end
42
+
43
+ # Rubyforge documentation task
44
+ begin
45
+ require 'rake/contrib/sshpublisher'
46
+ namespace :rubyforge do
47
+
48
+ desc "Release gem and RDoc documentation to RubyForge"
49
+ task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
50
+
51
+ namespace :release do
52
+ desc "Publish RDoc to RubyForge."
53
+ task :docs => [:rdoc] do
54
+ require 'yaml'
55
+ config = YAML.load(
56
+ File.read(File.expand_path('~/.rubyforge/user-config.yml'))
57
+ )
58
+
59
+ host = "#{config['username']}@rubyforge.org"
60
+ remote_dir = "/var/www/gforge-projects/existing-project-with-version/"
61
+ local_dir = 'rdoc'
62
+
63
+ Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
64
+ end
65
+ end
66
+ end
67
+ rescue LoadError
68
+ puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
69
+ end
@@ -0,0 +1,19 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{existing-project-with-version}
5
+ s.version = "1.5.3"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Josh Nichols"]
9
+ s.date = %q{2009-03-13}
10
+ s.email = %q{josh@technicalpickles.com}
11
+ s.extra_rdoc_files = ["README.rdoc", "LICENSE"]
12
+ s.files = ["README.rdoc", "VERSION.yml", "lib/existing_project_with_version.rb", "test/existing_project_with_version_test.rb", "test/test_helper.rb", "LICENSE"]
13
+ s.has_rdoc = true
14
+ s.homepage = %q{http://github.com/technicalpickles/existing-project-with-version}
15
+ s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
16
+ s.require_paths = ["lib"]
17
+ s.rubygems_version = %q{1.3.1}
18
+ s.summary = %q{Summarize your gem}
19
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class ExistingProjectWithVersionTest < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ require 'shoulda'
4
+
5
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
7
+ require 'existing_project_with_version'
8
+
9
+ class Test::Unit::TestCase
10
+ end
@@ -0,0 +1,11 @@
1
+ require 'rubygems'
2
+
3
+ require 'bundler'
4
+ Bundler.setup
5
+
6
+ require 'rake'
7
+
8
+ $:.unshift File.expand_path('../lib', __FILE__)
9
+ require 'bueller'
10
+
11
+ Dir.glob(File.expand_path('support/**/*.rb', File.dirname(__FILE__))).each { |f| require f }
@@ -0,0 +1,28 @@
1
+ module App
2
+ def self.run_application(*arguments)
3
+ original_stdout = $stdout
4
+ original_stderr = $stderr
5
+
6
+ fake_stdout = StringIO.new
7
+ fake_stderr = StringIO.new
8
+
9
+ $stdout = fake_stdout
10
+ $stderr = fake_stderr
11
+
12
+ result = nil
13
+ begin
14
+ result = Bueller::Generator::Application.run!(*arguments)
15
+ ensure
16
+ $stdout = original_stdout
17
+ $stderr = original_stderr
18
+ end
19
+
20
+ @stdout = fake_stdout.string
21
+ @stderr = fake_stderr.string
22
+
23
+ result
24
+ end
25
+
26
+ def self.stdout; @stdout; end
27
+ def self.stderr; @stderr; end
28
+ end
@@ -0,0 +1,24 @@
1
+ module FileSystem
2
+ extend self
3
+
4
+ def tmp_dir
5
+ '/tmp/bueller_test'
6
+ end
7
+
8
+ def fixture_path(fixture = nil)
9
+ path = File.join '../fixtures', fixture
10
+ File.expand_path(path, File.dirname(__FILE__))
11
+ end
12
+
13
+ def remove_tmpdir!
14
+ FileUtils.rm_rf(tmp_dir)
15
+ end
16
+
17
+ def create_tmpdir!
18
+ FileUtils.mkdir_p(tmp_dir)
19
+ end
20
+
21
+ def git_dir_path
22
+ File.join(FileSystem.tmp_dir, 'git')
23
+ end
24
+ end
@@ -0,0 +1,28 @@
1
+ module Gemspec
2
+ def self.build(*files)
3
+ Gem::Specification.new do |s|
4
+ s.name = "bar"
5
+ s.summary = "Simple and opinionated helper for creating Rubygem projects on GitHub"
6
+ s.email = "josh@technicalpickles.com"
7
+ s.homepage = "http://github.com/technicalpickles/bueller"
8
+ s.description = "Simple and opinionated helper for creating Rubygem projects on GitHub"
9
+ s.authors = ["Josh Nichols"]
10
+ s.files = FileList[*files] unless files.empty?
11
+ s.version = '0.1.1'
12
+
13
+ s.add_runtime_dependency('bundler', '~> 1.0.0')
14
+ s.add_runtime_dependency('git', '>= 1.2.5')
15
+ s.add_runtime_dependency('rake', '>= 0')
16
+ s.add_development_dependency('activesupport', '~> 2.3.5')
17
+ s.add_development_dependency('bluecloth', '>= 0')
18
+ s.add_development_dependency('cucumber', '>= 0')
19
+ s.add_development_dependency('mhennemeyer-output_catcher', '>= 0')
20
+ s.add_development_dependency('rcov', '>= 0')
21
+ s.add_development_dependency('redgreen', '>= 0')
22
+ s.add_development_dependency('rspec', '~> 2.0.0.beta.20')
23
+ s.add_development_dependency('test-construct', '>= 0')
24
+ s.add_development_dependency('timecop', '>= 0')
25
+ s.add_development_dependency('yard', '~> 0.6.0')
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,19 @@
1
+ require 'git'
2
+
3
+ module GitSupport
4
+ extend self
5
+
6
+ def project_name; 'the-perfect-gem'; end
7
+ def name; 'foo'; end
8
+ def email; 'bar@example.com'; end
9
+ def github_user; 'technicalpickles'; end
10
+ def github_token; 'zomgtoken'; end
11
+
12
+ def valid_config
13
+ { 'user.name' => name, 'user.email' => email, 'github.user' => github_user, 'github.token' => github_token }
14
+ end
15
+
16
+ def stub_config(options = {})
17
+ Git.stub!(:global_config).and_return(options)
18
+ end
19
+ end