Permalink
Browse files

Rename ReleaseToGithub to ReleaseGemspec.

  • Loading branch information...
1 parent dd313b3 commit b83266e53b6bfdb1e81ef15de2f8d9f3b0b71349 @technicalpickles committed Aug 29, 2010
View
2 lib/jeweler.rb
@@ -125,7 +125,7 @@ def write_version(major, minor, patch, build, options = {})
end
def release_gemspec
- Jeweler::Commands::ReleaseToGithub.build_for(self).run
+ Jeweler::Commands::ReleaseGemspec.build_for(self).run
end
def release_to_git
View
2 lib/jeweler/commands.rb
@@ -4,7 +4,7 @@ module Commands
autoload :InstallGem, 'jeweler/commands/install_gem'
autoload :CheckDependencies, 'jeweler/commands/check_dependencies'
autoload :ReleaseToGit, 'jeweler/commands/release_to_git'
- autoload :ReleaseToGithub, 'jeweler/commands/release_to_github'
+ autoload :ReleaseGemspec, 'jeweler/commands/release_gemspec'
autoload :ReleaseToRubygems, 'jeweler/commands/release_to_rubygems'
autoload :ValidateGemspec, 'jeweler/commands/validate_gemspec'
autoload :WriteGemspec, 'jeweler/commands/write_gemspec'
View
2 lib/jeweler/commands/release_to_github.rb → lib/jeweler/commands/release_gemspec.rb
@@ -2,7 +2,7 @@
class Jeweler
module Commands
- class ReleaseToGithub
+ class ReleaseGemspec
attr_accessor :gemspec, :version, :repo, :output, :gemspec_helper, :base_dir
def initialize(attributes = {})
View
24 test/jeweler/commands/test_release_to_github.rb
@@ -3,7 +3,7 @@
class Jeweler
module Commands
- class TestReleaseToGithub < Test::Unit::TestCase
+ class TestReleaseGemspec < Test::Unit::TestCase
rubyforge_command_context "running" do
context "happily" do
@@ -133,7 +133,7 @@ class TestReleaseToGithub < Test::Unit::TestCase
build_command_context "building from jeweler" do
setup do
- @command = Jeweler::Commands::ReleaseToGithub.build_for(@jeweler)
+ @command = Jeweler::Commands::ReleaseGemspec.build_for(@jeweler)
end
should "assign gemspec" do
@@ -167,15 +167,15 @@ class TestReleaseToGithub < Test::Unit::TestCase
# should "be false if there added files" do
# repo = build_repo :added => %w(README)
- # command = Jeweler::Commands::ReleaseToGithub.new :repo => repo
+ # command = Jeweler::Commands::ReleaseGemspec.new :repo => repo
# assert ! command.clean_staging_area?
# end
# should "be false if there are changed files" do
# repo = build_repo :changed => %w(README)
- # command = Jeweler::Commands::ReleaseToGithub.new
+ # command = Jeweler::Commands::ReleaseGemspec.new
# command.repo = repo
# assert ! command.clean_staging_area?
@@ -184,7 +184,7 @@ class TestReleaseToGithub < Test::Unit::TestCase
# should "be false if there are deleted files" do
# repo = build_repo :deleted => %w(README)
- # command = Jeweler::Commands::ReleaseToGithub.new
+ # command = Jeweler::Commands::ReleaseGemspec.new
# command.repo = repo
# assert ! command.clean_staging_area?
@@ -193,7 +193,7 @@ class TestReleaseToGithub < Test::Unit::TestCase
# should "be true if nothing added, changed, or deleted" do
# repo = build_repo
- # command = Jeweler::Commands::ReleaseToGithub.new
+ # command = Jeweler::Commands::ReleaseGemspec.new
# command.repo = repo
# assert command.clean_staging_area?
@@ -217,7 +217,7 @@ class TestReleaseToGithub < Test::Unit::TestCase
@output = StringIO.new
- @command = Jeweler::Commands::ReleaseToGithub.new :output => @output,
+ @command = Jeweler::Commands::ReleaseGemspec.new :output => @output,
:repo => @repo,
:gemspec_helper => @gemspec_helper,
:version => '1.2.3'
@@ -250,7 +250,7 @@ class TestReleaseToGithub < Test::Unit::TestCase
@output = StringIO.new
- @command = Jeweler::Commands::ReleaseToGithub.new :output => @output,
+ @command = Jeweler::Commands::ReleaseGemspec.new :output => @output,
:repo => @repo,
:gemspec_helper => @gemspec_helper,
:version => '1.2.3'
@@ -286,7 +286,7 @@ class TestReleaseToGithub < Test::Unit::TestCase
@output = StringIO.new
- @command = Jeweler::Commands::ReleaseToGithub.new :output => @output,
+ @command = Jeweler::Commands::ReleaseGemspec.new :output => @output,
:repo => @repo,
:gemspec_helper => @gemspec_helper,
:version => '1.2.3',
@@ -323,7 +323,7 @@ class TestReleaseToGithub < Test::Unit::TestCase
@output = StringIO.new
- @command = Jeweler::Commands::ReleaseToGithub.new :output => @output,
+ @command = Jeweler::Commands::ReleaseGemspec.new :output => @output,
:repo => @repo,
:gemspec_helper => @gemspec_helper,
:version => '1.2.3',
@@ -350,7 +350,7 @@ class TestReleaseToGithub < Test::Unit::TestCase
@output = StringIO.new
- @command = Jeweler::Commands::ReleaseToGithub.new
+ @command = Jeweler::Commands::ReleaseGemspec.new
@command.output = @output
@command.repo = @repo
@command.version = '1.2.3'
@@ -371,7 +371,7 @@ class TestReleaseToGithub < Test::Unit::TestCase
@output = StringIO.new
- @command = Jeweler::Commands::ReleaseToGithub.new
+ @command = Jeweler::Commands::ReleaseGemspec.new
@command.output = @output
@command.repo = @repo
@command.version = '1.2.3'
View
2 test/test_jeweler.rb
@@ -140,7 +140,7 @@ def build_non_git_dir
command = Object.new
mock(command).run
- mock(Jeweler::Commands::ReleaseToGithub).build_for(jeweler) { command }
+ mock(Jeweler::Commands::ReleaseGemspec).build_for(jeweler) { command }
jeweler.release_gemspec
end

0 comments on commit b83266e

Please sign in to comment.