jeweler2 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +8 -0
- data/ChangeLog.markdown +177 -0
- data/Gemfile +18 -0
- data/Gemfile.lock +47 -0
- data/LICENSE.txt +20 -0
- data/README.markdown +217 -0
- data/Rakefile +80 -0
- data/bin/jeweler +5 -0
- data/features/generator/cucumber.feature +103 -0
- data/features/generator/directory_layout.feature +86 -0
- data/features/generator/dotdocument.feature +13 -0
- data/features/generator/env_options.feature +9 -0
- data/features/generator/gemfile.feature +71 -0
- data/features/generator/git.feature +102 -0
- data/features/generator/license.feature +20 -0
- data/features/generator/rakefile.feature +158 -0
- data/features/generator/readme.feature +12 -0
- data/features/generator/test.feature +54 -0
- data/features/generator/test_helper.feature +149 -0
- data/features/placeholder.feature +5 -0
- data/features/step_definitions/debug_steps.rb +6 -0
- data/features/step_definitions/filesystem_steps.rb +70 -0
- data/features/step_definitions/generator_steps.rb +380 -0
- data/features/step_definitions/task_steps.rb +6 -0
- data/features/support/env.rb +42 -0
- data/features/tasks/build_gem.feature +9 -0
- data/features/tasks/version.feature +31 -0
- data/features/tasks/version_bumping.feature +49 -0
- data/jeweler.gemspec +245 -0
- data/jeweler2.gemspec +233 -0
- data/lib/jeweler/commands/build_gem.rb +36 -0
- data/lib/jeweler/commands/check_dependencies.rb +66 -0
- data/lib/jeweler/commands/install_gem.rb +31 -0
- data/lib/jeweler/commands/release_gemspec.rb +82 -0
- data/lib/jeweler/commands/release_to_git.rb +59 -0
- data/lib/jeweler/commands/release_to_rubygems.rb +28 -0
- data/lib/jeweler/commands/validate_gemspec.rb +30 -0
- data/lib/jeweler/commands/version/base.rb +55 -0
- data/lib/jeweler/commands/version/bump_major.rb +13 -0
- data/lib/jeweler/commands/version/bump_minor.rb +12 -0
- data/lib/jeweler/commands/version/bump_patch.rb +14 -0
- data/lib/jeweler/commands/version/write.rb +12 -0
- data/lib/jeweler/commands/write_gemspec.rb +39 -0
- data/lib/jeweler/commands.rb +20 -0
- data/lib/jeweler/errors.rb +8 -0
- data/lib/jeweler/gemcutter_tasks.rb +8 -0
- data/lib/jeweler/gemspec_helper.rb +87 -0
- data/lib/jeweler/generator/application.rb +61 -0
- data/lib/jeweler/generator/bacon_mixin.rb +43 -0
- data/lib/jeweler/generator/github_mixin.rb +29 -0
- data/lib/jeweler/generator/micronaut_mixin.rb +41 -0
- data/lib/jeweler/generator/minitest_mixin.rb +42 -0
- data/lib/jeweler/generator/options.rb +163 -0
- data/lib/jeweler/generator/rdoc_mixin.rb +9 -0
- data/lib/jeweler/generator/riot_mixin.rb +42 -0
- data/lib/jeweler/generator/rspec_mixin.rb +42 -0
- data/lib/jeweler/generator/shindo_mixin.rb +44 -0
- data/lib/jeweler/generator/shoulda_mixin.rb +42 -0
- data/lib/jeweler/generator/testspec_mixin.rb +42 -0
- data/lib/jeweler/generator/testunit_mixin.rb +39 -0
- data/lib/jeweler/generator/yard_mixin.rb +14 -0
- data/lib/jeweler/generator.rb +295 -0
- data/lib/jeweler/rubyforge_tasks.rb +95 -0
- data/lib/jeweler/rubygems_dot_org_tasks.rb +38 -0
- data/lib/jeweler/rubygems_tasks.rb +38 -0
- data/lib/jeweler/specification.rb +110 -0
- data/lib/jeweler/tasks.rb +224 -0
- data/lib/jeweler/templates/.document +5 -0
- data/lib/jeweler/templates/.gitignore +48 -0
- data/lib/jeweler/templates/Gemfile +12 -0
- data/lib/jeweler/templates/LICENSE.txt +20 -0
- data/lib/jeweler/templates/README.rdoc +19 -0
- data/lib/jeweler/templates/Rakefile +9 -0
- data/lib/jeweler/templates/bacon/flunking.rb +7 -0
- data/lib/jeweler/templates/bacon/helper.rb +9 -0
- data/lib/jeweler/templates/bundler_setup.erb +10 -0
- data/lib/jeweler/templates/features/default.feature +9 -0
- data/lib/jeweler/templates/features/support/env.rb +10 -0
- data/lib/jeweler/templates/jeweler_tasks.erb +31 -0
- data/lib/jeweler/templates/micronaut/flunking.rb +7 -0
- data/lib/jeweler/templates/micronaut/helper.rb +18 -0
- data/lib/jeweler/templates/minitest/flunking.rb +7 -0
- data/lib/jeweler/templates/minitest/helper.rb +12 -0
- data/lib/jeweler/templates/other_tasks.erb +86 -0
- data/lib/jeweler/templates/riot/flunking.rb +11 -0
- data/lib/jeweler/templates/riot/helper.rb +4 -0
- data/lib/jeweler/templates/rspec/.rspec +1 -0
- data/lib/jeweler/templates/rspec/flunking.rb +7 -0
- data/lib/jeweler/templates/rspec/helper.rb +12 -0
- data/lib/jeweler/templates/shindo/flunking.rb +8 -0
- data/lib/jeweler/templates/shindo/helper.rb +6 -0
- data/lib/jeweler/templates/shoulda/flunking.rb +7 -0
- data/lib/jeweler/templates/shoulda/helper.rb +11 -0
- data/lib/jeweler/templates/testspec/flunking.rb +7 -0
- data/lib/jeweler/templates/testspec/helper.rb +7 -0
- data/lib/jeweler/templates/testunit/flunking.rb +7 -0
- data/lib/jeweler/templates/testunit/helper.rb +10 -0
- data/lib/jeweler/version.rb +10 -0
- data/lib/jeweler/version_helper.rb +141 -0
- data/lib/jeweler.rb +177 -0
- data/test/fixtures/bar/VERSION.yml +4 -0
- data/test/fixtures/bar/bin/foo_the_ultimate_bin +1 -0
- data/test/fixtures/bar/hey_include_me_in_gemspec +0 -0
- data/test/fixtures/bar/lib/foo_the_ultimate_lib.rb +1 -0
- data/test/fixtures/existing-project-with-version-constant/.document +5 -0
- data/test/fixtures/existing-project-with-version-constant/.gitignore +5 -0
- data/test/fixtures/existing-project-with-version-constant/LICENSE.txt +20 -0
- data/test/fixtures/existing-project-with-version-constant/README.rdoc +7 -0
- data/test/fixtures/existing-project-with-version-constant/Rakefile +85 -0
- data/test/fixtures/existing-project-with-version-constant/existing-project-with-version.gemspec +29 -0
- data/test/fixtures/existing-project-with-version-constant/lib/existing_project_with_version.rb +0 -0
- data/test/fixtures/existing-project-with-version-constant/test/existing_project_with_version_test.rb +7 -0
- data/test/fixtures/existing-project-with-version-constant/test/test_helper.rb +10 -0
- data/test/fixtures/existing-project-with-version-plaintext/.document +5 -0
- data/test/fixtures/existing-project-with-version-plaintext/.gitignore +5 -0
- data/test/fixtures/existing-project-with-version-plaintext/LICENSE.txt +20 -0
- data/test/fixtures/existing-project-with-version-plaintext/README.rdoc +7 -0
- data/test/fixtures/existing-project-with-version-plaintext/Rakefile +84 -0
- data/test/fixtures/existing-project-with-version-plaintext/VERSION +1 -0
- data/test/fixtures/existing-project-with-version-plaintext/existing-project-with-version.gemspec +29 -0
- data/test/fixtures/existing-project-with-version-plaintext/lib/existing_project_with_version.rb +0 -0
- data/test/fixtures/existing-project-with-version-plaintext/test/existing_project_with_version_test.rb +7 -0
- data/test/fixtures/existing-project-with-version-plaintext/test/test_helper.rb +10 -0
- data/test/fixtures/existing-project-with-version-yaml/.document +5 -0
- data/test/fixtures/existing-project-with-version-yaml/.gitignore +5 -0
- data/test/fixtures/existing-project-with-version-yaml/LICENSE.txt +20 -0
- data/test/fixtures/existing-project-with-version-yaml/README.rdoc +7 -0
- data/test/fixtures/existing-project-with-version-yaml/Rakefile +84 -0
- data/test/fixtures/existing-project-with-version-yaml/VERSION.yml +4 -0
- data/test/fixtures/existing-project-with-version-yaml/bin/foo_the_ultimate_bin +0 -0
- data/test/fixtures/existing-project-with-version-yaml/existing-project-with-version.gemspec +29 -0
- data/test/fixtures/existing-project-with-version-yaml/lib/existing_project_with_version.rb +0 -0
- data/test/fixtures/existing-project-with-version-yaml/test/existing_project_with_version_test.rb +7 -0
- data/test/fixtures/existing-project-with-version-yaml/test/test_helper.rb +10 -0
- data/test/geminstaller.yml +12 -0
- data/test/jeweler/commands/test_build_gem.rb +103 -0
- data/test/jeweler/commands/test_install_gem.rb +35 -0
- data/test/jeweler/commands/test_release_to_gemcutter.rb +39 -0
- data/test/jeweler/commands/test_release_to_git.rb +198 -0
- data/test/jeweler/commands/test_release_to_github.rb +390 -0
- data/test/jeweler/commands/test_validate_gemspec.rb +27 -0
- data/test/jeweler/commands/test_write_gemspec.rb +101 -0
- data/test/jeweler/commands/version/test_base.rb +32 -0
- data/test/jeweler/commands/version/test_bump_major.rb +22 -0
- data/test/jeweler/commands/version/test_bump_minor.rb +19 -0
- data/test/jeweler/commands/version/test_bump_patch.rb +20 -0
- data/test/jeweler/commands/version/test_write.rb +22 -0
- data/test/jeweler/generator/test_application.rb +120 -0
- data/test/jeweler/generator/test_options.rb +225 -0
- data/test/jeweler/test_gemspec_helper.rb +44 -0
- data/test/jeweler/test_generator.rb +141 -0
- data/test/jeweler/test_generator_initialization.rb +164 -0
- data/test/jeweler/test_generator_mixins.rb +23 -0
- data/test/jeweler/test_specification.rb +237 -0
- data/test/jeweler/test_tasks.rb +50 -0
- data/test/jeweler/test_version_helper.rb +214 -0
- data/test/shoulda_macros/jeweler_macros.rb +35 -0
- data/test/test_helper.rb +178 -0
- data/test/test_jeweler.rb +175 -0
- metadata +343 -0
data/test/test_helper.rb
ADDED
@@ -0,0 +1,178 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
require 'rubygems'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'ruby-debug'
|
6
|
+
rescue LoadError
|
7
|
+
end
|
8
|
+
|
9
|
+
require 'bundler'
|
10
|
+
begin
|
11
|
+
Bundler.setup(:default, :development)
|
12
|
+
rescue Bundler::BundlerError => e
|
13
|
+
$stderr.puts e.message
|
14
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
15
|
+
exit e.status_code
|
16
|
+
end
|
17
|
+
|
18
|
+
require 'rake'
|
19
|
+
require 'shoulda'
|
20
|
+
require 'rr'
|
21
|
+
#require 'redgreen'
|
22
|
+
require 'construct'
|
23
|
+
require 'git'
|
24
|
+
require 'time'
|
25
|
+
|
26
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib')
|
27
|
+
require 'jeweler'
|
28
|
+
|
29
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
30
|
+
require 'shoulda_macros/jeweler_macros'
|
31
|
+
|
32
|
+
TMP_DIR = '/tmp/jeweler_test'
|
33
|
+
FIXTURE_DIR = File.expand_path('../fixtures', __FILE__)
|
34
|
+
|
35
|
+
class RubyForgeStub
|
36
|
+
attr_accessor :userconfig, :autoconfig
|
37
|
+
def initialize
|
38
|
+
@userconfig = {}
|
39
|
+
@autoconfig = {}
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
class Test::Unit::TestCase
|
44
|
+
include RR::Adapters::TestUnit unless include?(RR::Adapters::TestUnit)
|
45
|
+
include Construct::Helpers
|
46
|
+
|
47
|
+
def tmp_dir
|
48
|
+
TMP_DIR
|
49
|
+
end
|
50
|
+
|
51
|
+
def fixture_dir
|
52
|
+
File.join(FIXTURE_DIR, 'bar')
|
53
|
+
end
|
54
|
+
|
55
|
+
def remove_tmpdir!
|
56
|
+
FileUtils.rm_rf(tmp_dir)
|
57
|
+
end
|
58
|
+
|
59
|
+
def create_tmpdir!
|
60
|
+
FileUtils.mkdir_p(tmp_dir)
|
61
|
+
end
|
62
|
+
|
63
|
+
def build_spec(*files)
|
64
|
+
Gem::Specification.new do |s|
|
65
|
+
s.name = "bar"
|
66
|
+
s.summary = "Simple and opinionated helper for creating Rubygem projects on GitHub"
|
67
|
+
s.email = "josh@technicalpickles.com"
|
68
|
+
s.homepage = "http://github.com/technicalpickles/jeweler"
|
69
|
+
s.description = "Simple and opinionated helper for creating Rubygem projects on GitHub"
|
70
|
+
s.authors = ["Josh Nichols"]
|
71
|
+
s.files = FileList[*files] unless files.empty?
|
72
|
+
s.version = '0.1.1'
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
def self.gemcutter_command_context(description, &block)
|
77
|
+
context description do
|
78
|
+
setup do
|
79
|
+
@command = eval(self.class.name.gsub(/::Test/, '::')).new
|
80
|
+
|
81
|
+
if @command.respond_to? :gemspec_helper=
|
82
|
+
@gemspec_helper = Object.new
|
83
|
+
@command.gemspec_helper = @gemspec_helper
|
84
|
+
end
|
85
|
+
|
86
|
+
if @command.respond_to? :output
|
87
|
+
@output = StringIO.new
|
88
|
+
@command.output = @output
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
context "", &block
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
def self.rubyforge_command_context(description, &block)
|
97
|
+
context description do
|
98
|
+
setup do
|
99
|
+
@command = eval(self.class.name.gsub(/::Test/, '::')).new
|
100
|
+
|
101
|
+
if @command.respond_to? :gemspec=
|
102
|
+
@gemspec = Object.new
|
103
|
+
@command.gemspec = @gemspec
|
104
|
+
end
|
105
|
+
|
106
|
+
if @command.respond_to? :gemspec_helper=
|
107
|
+
@gemspec_helper = Object.new
|
108
|
+
@command.gemspec_helper = @gemspec_helper
|
109
|
+
end
|
110
|
+
|
111
|
+
if @command.respond_to? :rubyforge=
|
112
|
+
@rubyforge = RubyForgeStub.new
|
113
|
+
@command.rubyforge = @rubyforge
|
114
|
+
end
|
115
|
+
|
116
|
+
if @command.respond_to? :output
|
117
|
+
@output = StringIO.new
|
118
|
+
@command.output = @output
|
119
|
+
end
|
120
|
+
|
121
|
+
if @command.respond_to? :repo
|
122
|
+
@repo = Object.new
|
123
|
+
@command.repo = @repo
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
context "", &block
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
def self.build_command_context(description, &block)
|
132
|
+
context description do
|
133
|
+
setup do
|
134
|
+
|
135
|
+
@repo = Object.new
|
136
|
+
@version_helper = Object.new
|
137
|
+
@gemspec = Object.new
|
138
|
+
@commit = Object.new
|
139
|
+
@version = Object.new
|
140
|
+
@output = Object.new
|
141
|
+
@base_dir = Object.new
|
142
|
+
@gemspec_helper = Object.new
|
143
|
+
@rubyforge = Object.new
|
144
|
+
|
145
|
+
@jeweler = Object.new
|
146
|
+
|
147
|
+
stub(@jeweler).repo { @repo }
|
148
|
+
stub(@jeweler).version_helper { @version_helper }
|
149
|
+
stub(@jeweler).gemspec { @gemspec }
|
150
|
+
stub(@jeweler).commit { @commit }
|
151
|
+
stub(@jeweler).version { @version }
|
152
|
+
stub(@jeweler).output { @output }
|
153
|
+
stub(@jeweler).gemspec_helper { @gemspec_helper }
|
154
|
+
stub(@jeweler).base_dir { @base_dir }
|
155
|
+
stub(@jeweler).rubyforge { @rubyforge }
|
156
|
+
end
|
157
|
+
|
158
|
+
context "", &block
|
159
|
+
end
|
160
|
+
|
161
|
+
end
|
162
|
+
|
163
|
+
def stub_git_config(options = {})
|
164
|
+
stub(Git).global_config() { options }
|
165
|
+
end
|
166
|
+
|
167
|
+
def set_default_git_config
|
168
|
+
@project_name = 'the-perfect-gem'
|
169
|
+
@git_name = 'foo'
|
170
|
+
@git_email = 'bar@example.com'
|
171
|
+
@github_user = 'technicalpickles'
|
172
|
+
@github_token = 'zomgtoken'
|
173
|
+
end
|
174
|
+
|
175
|
+
def valid_git_config
|
176
|
+
{ 'user.name' => @git_name, 'user.email' => @git_email, 'github.user' => @github_user, 'github.token' => @github_token }
|
177
|
+
end
|
178
|
+
end
|
@@ -0,0 +1,175 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class TestJeweler < Test::Unit::TestCase
|
4
|
+
|
5
|
+
def build_jeweler(base_dir = nil)
|
6
|
+
base_dir ||= git_dir_path
|
7
|
+
FileUtils.mkdir_p base_dir
|
8
|
+
|
9
|
+
Jeweler.new(build_spec, base_dir)
|
10
|
+
end
|
11
|
+
|
12
|
+
def git_dir_path
|
13
|
+
File.join(tmp_dir, 'git')
|
14
|
+
end
|
15
|
+
|
16
|
+
def non_git_dir_path
|
17
|
+
File.join(tmp_dir, 'nongit')
|
18
|
+
end
|
19
|
+
|
20
|
+
def build_git_dir
|
21
|
+
|
22
|
+
FileUtils.mkdir_p git_dir_path
|
23
|
+
Dir.chdir git_dir_path do
|
24
|
+
Git.init
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def build_non_git_dir
|
29
|
+
FileUtils.mkdir_p non_git_dir_path
|
30
|
+
end
|
31
|
+
|
32
|
+
should "raise an error if a nil gemspec is given" do
|
33
|
+
assert_raises Jeweler::GemspecError do
|
34
|
+
Jeweler.new(nil)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
should "know if it is in a git repo" do
|
39
|
+
build_git_dir
|
40
|
+
|
41
|
+
assert build_jeweler(git_dir_path).in_git_repo?
|
42
|
+
end
|
43
|
+
|
44
|
+
should "know if it is not in a git repo" do
|
45
|
+
build_non_git_dir
|
46
|
+
|
47
|
+
jeweler = build_jeweler(non_git_dir_path)
|
48
|
+
assert ! jeweler.in_git_repo?, "jeweler doesn't know that #{jeweler.base_dir} is not a git repository"
|
49
|
+
end
|
50
|
+
|
51
|
+
should "find the base repo" do
|
52
|
+
jeweler = build_jeweler(File.dirname(File.expand_path(__FILE__)))
|
53
|
+
assert_equal File.dirname(File.dirname(File.expand_path(__FILE__))), jeweler.git_base_dir
|
54
|
+
end
|
55
|
+
|
56
|
+
should "build and run write gemspec command when writing gemspec" do
|
57
|
+
jeweler = build_jeweler
|
58
|
+
|
59
|
+
command = Object.new
|
60
|
+
mock(command).run
|
61
|
+
|
62
|
+
mock(Jeweler::Commands::WriteGemspec).build_for(jeweler) { command }
|
63
|
+
|
64
|
+
jeweler.write_gemspec
|
65
|
+
end
|
66
|
+
|
67
|
+
should "build and run validate gemspec command when validating gemspec" do
|
68
|
+
jeweler = build_jeweler
|
69
|
+
|
70
|
+
command = Object.new
|
71
|
+
mock(command).run
|
72
|
+
|
73
|
+
mock(Jeweler::Commands::ValidateGemspec).build_for(jeweler) { command }
|
74
|
+
|
75
|
+
jeweler.validate_gemspec
|
76
|
+
end
|
77
|
+
|
78
|
+
should "build and run build gem command when building gem" do
|
79
|
+
jeweler = build_jeweler
|
80
|
+
|
81
|
+
command = Object.new
|
82
|
+
mock(command).run
|
83
|
+
|
84
|
+
mock(Jeweler::Commands::BuildGem).build_for(jeweler) { command }
|
85
|
+
|
86
|
+
jeweler.build_gem
|
87
|
+
end
|
88
|
+
|
89
|
+
should "build and run build gem command when installing gem" do
|
90
|
+
jeweler = build_jeweler
|
91
|
+
|
92
|
+
command = Object.new
|
93
|
+
mock(command).run
|
94
|
+
|
95
|
+
mock(Jeweler::Commands::InstallGem).build_for(jeweler) { command }
|
96
|
+
|
97
|
+
jeweler.install_gem
|
98
|
+
end
|
99
|
+
|
100
|
+
should "build and run bump major version command when bumping major version" do
|
101
|
+
jeweler = build_jeweler
|
102
|
+
|
103
|
+
command = Object.new
|
104
|
+
mock(command).run
|
105
|
+
|
106
|
+
mock(Jeweler::Commands::Version::BumpMajor).build_for(jeweler) { command }
|
107
|
+
|
108
|
+
jeweler.bump_major_version
|
109
|
+
end
|
110
|
+
|
111
|
+
should "build and run bump minor version command when bumping minor version" do
|
112
|
+
jeweler = build_jeweler
|
113
|
+
|
114
|
+
command = Object.new
|
115
|
+
mock(command).run
|
116
|
+
|
117
|
+
mock(Jeweler::Commands::Version::BumpMinor).build_for(jeweler) { command }
|
118
|
+
|
119
|
+
jeweler.bump_minor_version
|
120
|
+
end
|
121
|
+
|
122
|
+
should "build and run write version command when writing version" do
|
123
|
+
jeweler = build_jeweler
|
124
|
+
|
125
|
+
command = Object.new
|
126
|
+
mock(command).run
|
127
|
+
mock(command).major=(1)
|
128
|
+
mock(command).minor=(5)
|
129
|
+
mock(command).patch=(2)
|
130
|
+
mock(command).build=('a1')
|
131
|
+
|
132
|
+
mock(Jeweler::Commands::Version::Write).build_for(jeweler) { command }
|
133
|
+
|
134
|
+
jeweler.write_version(1, 5, 2, 'a1')
|
135
|
+
end
|
136
|
+
|
137
|
+
should "build and run release to github command when running release_gemspec" do
|
138
|
+
jeweler = build_jeweler
|
139
|
+
|
140
|
+
command = Object.new
|
141
|
+
mock(command).run
|
142
|
+
|
143
|
+
mock(Jeweler::Commands::ReleaseGemspec).build_for(jeweler) { command }
|
144
|
+
|
145
|
+
jeweler.release_gemspec
|
146
|
+
end
|
147
|
+
|
148
|
+
should "build and run release to git command when running release_to_git" do
|
149
|
+
jeweler = build_jeweler
|
150
|
+
|
151
|
+
command = Object.new
|
152
|
+
mock(command).run
|
153
|
+
|
154
|
+
mock(Jeweler::Commands::ReleaseToGit).build_for(jeweler) { command }
|
155
|
+
|
156
|
+
jeweler.release_to_git
|
157
|
+
end
|
158
|
+
|
159
|
+
should "respond to gemspec_helper" do
|
160
|
+
assert_respond_to build_jeweler, :gemspec_helper
|
161
|
+
end
|
162
|
+
|
163
|
+
should "respond to version_helper" do
|
164
|
+
assert_respond_to build_jeweler, :version_helper
|
165
|
+
end
|
166
|
+
|
167
|
+
should "respond to repo" do
|
168
|
+
assert_respond_to build_jeweler, :repo
|
169
|
+
end
|
170
|
+
|
171
|
+
should "respond to commit" do
|
172
|
+
assert_respond_to build_jeweler, :commit
|
173
|
+
end
|
174
|
+
|
175
|
+
end
|
metadata
ADDED
@@ -0,0 +1,343 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jeweler2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Josh Nichols
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-11-05 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: git
|
16
|
+
requirement: &27614040 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 1.2.5
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *27614040
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: shoulda
|
27
|
+
requirement: &27629700 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *27629700
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rr
|
38
|
+
requirement: &27628960 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *27628960
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: mocha
|
49
|
+
requirement: &27628480 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *27628480
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: redgreen
|
60
|
+
requirement: &27627980 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *27627980
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: test-construct
|
71
|
+
requirement: &27627460 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *27627460
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: yard
|
82
|
+
requirement: &27626760 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *27626760
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: bluecloth
|
93
|
+
requirement: &27625780 !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
type: :development
|
100
|
+
prerelease: false
|
101
|
+
version_requirements: *27625780
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: cucumber
|
104
|
+
requirement: &27624840 !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: *27624840
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: rcov
|
115
|
+
requirement: &27623680 !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
117
|
+
requirements:
|
118
|
+
- - ! '>='
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
121
|
+
type: :development
|
122
|
+
prerelease: false
|
123
|
+
version_requirements: *27623680
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: timecop
|
126
|
+
requirement: &27637980 !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: *27637980
|
135
|
+
- !ruby/object:Gem::Dependency
|
136
|
+
name: activesupport
|
137
|
+
requirement: &27637280 !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
139
|
+
requirements:
|
140
|
+
- - ~>
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '3'
|
143
|
+
type: :development
|
144
|
+
prerelease: false
|
145
|
+
version_requirements: *27637280
|
146
|
+
description: Simple and opinionated helper for creating Rubygem projects on GitHub
|
147
|
+
email: josh@technicalpickles.com
|
148
|
+
executables:
|
149
|
+
- jeweler
|
150
|
+
extensions: []
|
151
|
+
extra_rdoc_files:
|
152
|
+
- ChangeLog.markdown
|
153
|
+
- LICENSE.txt
|
154
|
+
- README.markdown
|
155
|
+
files:
|
156
|
+
- .document
|
157
|
+
- ChangeLog.markdown
|
158
|
+
- Gemfile
|
159
|
+
- Gemfile.lock
|
160
|
+
- LICENSE.txt
|
161
|
+
- README.markdown
|
162
|
+
- Rakefile
|
163
|
+
- bin/jeweler
|
164
|
+
- features/generator/cucumber.feature
|
165
|
+
- features/generator/directory_layout.feature
|
166
|
+
- features/generator/dotdocument.feature
|
167
|
+
- features/generator/env_options.feature
|
168
|
+
- features/generator/gemfile.feature
|
169
|
+
- features/generator/git.feature
|
170
|
+
- features/generator/license.feature
|
171
|
+
- features/generator/rakefile.feature
|
172
|
+
- features/generator/readme.feature
|
173
|
+
- features/generator/test.feature
|
174
|
+
- features/generator/test_helper.feature
|
175
|
+
- features/placeholder.feature
|
176
|
+
- features/step_definitions/debug_steps.rb
|
177
|
+
- features/step_definitions/filesystem_steps.rb
|
178
|
+
- features/step_definitions/generator_steps.rb
|
179
|
+
- features/step_definitions/task_steps.rb
|
180
|
+
- features/support/env.rb
|
181
|
+
- features/tasks/build_gem.feature
|
182
|
+
- features/tasks/version.feature
|
183
|
+
- features/tasks/version_bumping.feature
|
184
|
+
- jeweler.gemspec
|
185
|
+
- jeweler2.gemspec
|
186
|
+
- lib/jeweler.rb
|
187
|
+
- lib/jeweler/commands.rb
|
188
|
+
- lib/jeweler/commands/build_gem.rb
|
189
|
+
- lib/jeweler/commands/check_dependencies.rb
|
190
|
+
- lib/jeweler/commands/install_gem.rb
|
191
|
+
- lib/jeweler/commands/release_gemspec.rb
|
192
|
+
- lib/jeweler/commands/release_to_git.rb
|
193
|
+
- lib/jeweler/commands/release_to_rubygems.rb
|
194
|
+
- lib/jeweler/commands/validate_gemspec.rb
|
195
|
+
- lib/jeweler/commands/version/base.rb
|
196
|
+
- lib/jeweler/commands/version/bump_major.rb
|
197
|
+
- lib/jeweler/commands/version/bump_minor.rb
|
198
|
+
- lib/jeweler/commands/version/bump_patch.rb
|
199
|
+
- lib/jeweler/commands/version/write.rb
|
200
|
+
- lib/jeweler/commands/write_gemspec.rb
|
201
|
+
- lib/jeweler/errors.rb
|
202
|
+
- lib/jeweler/gemcutter_tasks.rb
|
203
|
+
- lib/jeweler/gemspec_helper.rb
|
204
|
+
- lib/jeweler/generator.rb
|
205
|
+
- lib/jeweler/generator/application.rb
|
206
|
+
- lib/jeweler/generator/bacon_mixin.rb
|
207
|
+
- lib/jeweler/generator/github_mixin.rb
|
208
|
+
- lib/jeweler/generator/micronaut_mixin.rb
|
209
|
+
- lib/jeweler/generator/minitest_mixin.rb
|
210
|
+
- lib/jeweler/generator/options.rb
|
211
|
+
- lib/jeweler/generator/rdoc_mixin.rb
|
212
|
+
- lib/jeweler/generator/riot_mixin.rb
|
213
|
+
- lib/jeweler/generator/rspec_mixin.rb
|
214
|
+
- lib/jeweler/generator/shindo_mixin.rb
|
215
|
+
- lib/jeweler/generator/shoulda_mixin.rb
|
216
|
+
- lib/jeweler/generator/testspec_mixin.rb
|
217
|
+
- lib/jeweler/generator/testunit_mixin.rb
|
218
|
+
- lib/jeweler/generator/yard_mixin.rb
|
219
|
+
- lib/jeweler/rubyforge_tasks.rb
|
220
|
+
- lib/jeweler/rubygems_dot_org_tasks.rb
|
221
|
+
- lib/jeweler/rubygems_tasks.rb
|
222
|
+
- lib/jeweler/specification.rb
|
223
|
+
- lib/jeweler/tasks.rb
|
224
|
+
- lib/jeweler/templates/.document
|
225
|
+
- lib/jeweler/templates/.gitignore
|
226
|
+
- lib/jeweler/templates/Gemfile
|
227
|
+
- lib/jeweler/templates/LICENSE.txt
|
228
|
+
- lib/jeweler/templates/README.rdoc
|
229
|
+
- lib/jeweler/templates/Rakefile
|
230
|
+
- lib/jeweler/templates/bacon/flunking.rb
|
231
|
+
- lib/jeweler/templates/bacon/helper.rb
|
232
|
+
- lib/jeweler/templates/bundler_setup.erb
|
233
|
+
- lib/jeweler/templates/features/default.feature
|
234
|
+
- lib/jeweler/templates/features/support/env.rb
|
235
|
+
- lib/jeweler/templates/jeweler_tasks.erb
|
236
|
+
- lib/jeweler/templates/micronaut/flunking.rb
|
237
|
+
- lib/jeweler/templates/micronaut/helper.rb
|
238
|
+
- lib/jeweler/templates/minitest/flunking.rb
|
239
|
+
- lib/jeweler/templates/minitest/helper.rb
|
240
|
+
- lib/jeweler/templates/other_tasks.erb
|
241
|
+
- lib/jeweler/templates/riot/flunking.rb
|
242
|
+
- lib/jeweler/templates/riot/helper.rb
|
243
|
+
- lib/jeweler/templates/rspec/.rspec
|
244
|
+
- lib/jeweler/templates/rspec/flunking.rb
|
245
|
+
- lib/jeweler/templates/rspec/helper.rb
|
246
|
+
- lib/jeweler/templates/shindo/flunking.rb
|
247
|
+
- lib/jeweler/templates/shindo/helper.rb
|
248
|
+
- lib/jeweler/templates/shoulda/flunking.rb
|
249
|
+
- lib/jeweler/templates/shoulda/helper.rb
|
250
|
+
- lib/jeweler/templates/testspec/flunking.rb
|
251
|
+
- lib/jeweler/templates/testspec/helper.rb
|
252
|
+
- lib/jeweler/templates/testunit/flunking.rb
|
253
|
+
- lib/jeweler/templates/testunit/helper.rb
|
254
|
+
- lib/jeweler/version.rb
|
255
|
+
- lib/jeweler/version_helper.rb
|
256
|
+
- test/fixtures/bar/VERSION.yml
|
257
|
+
- test/fixtures/bar/bin/foo_the_ultimate_bin
|
258
|
+
- test/fixtures/bar/hey_include_me_in_gemspec
|
259
|
+
- test/fixtures/bar/lib/foo_the_ultimate_lib.rb
|
260
|
+
- test/fixtures/existing-project-with-version-constant/.document
|
261
|
+
- test/fixtures/existing-project-with-version-constant/.gitignore
|
262
|
+
- test/fixtures/existing-project-with-version-constant/LICENSE.txt
|
263
|
+
- test/fixtures/existing-project-with-version-constant/README.rdoc
|
264
|
+
- test/fixtures/existing-project-with-version-constant/Rakefile
|
265
|
+
- test/fixtures/existing-project-with-version-constant/existing-project-with-version.gemspec
|
266
|
+
- test/fixtures/existing-project-with-version-constant/lib/existing_project_with_version.rb
|
267
|
+
- test/fixtures/existing-project-with-version-constant/test/existing_project_with_version_test.rb
|
268
|
+
- test/fixtures/existing-project-with-version-constant/test/test_helper.rb
|
269
|
+
- test/fixtures/existing-project-with-version-plaintext/.document
|
270
|
+
- test/fixtures/existing-project-with-version-plaintext/.gitignore
|
271
|
+
- test/fixtures/existing-project-with-version-plaintext/LICENSE.txt
|
272
|
+
- test/fixtures/existing-project-with-version-plaintext/README.rdoc
|
273
|
+
- test/fixtures/existing-project-with-version-plaintext/Rakefile
|
274
|
+
- test/fixtures/existing-project-with-version-plaintext/VERSION
|
275
|
+
- test/fixtures/existing-project-with-version-plaintext/existing-project-with-version.gemspec
|
276
|
+
- test/fixtures/existing-project-with-version-plaintext/lib/existing_project_with_version.rb
|
277
|
+
- test/fixtures/existing-project-with-version-plaintext/test/existing_project_with_version_test.rb
|
278
|
+
- test/fixtures/existing-project-with-version-plaintext/test/test_helper.rb
|
279
|
+
- test/fixtures/existing-project-with-version-yaml/.document
|
280
|
+
- test/fixtures/existing-project-with-version-yaml/.gitignore
|
281
|
+
- test/fixtures/existing-project-with-version-yaml/LICENSE.txt
|
282
|
+
- test/fixtures/existing-project-with-version-yaml/README.rdoc
|
283
|
+
- test/fixtures/existing-project-with-version-yaml/Rakefile
|
284
|
+
- test/fixtures/existing-project-with-version-yaml/VERSION.yml
|
285
|
+
- test/fixtures/existing-project-with-version-yaml/bin/foo_the_ultimate_bin
|
286
|
+
- test/fixtures/existing-project-with-version-yaml/existing-project-with-version.gemspec
|
287
|
+
- test/fixtures/existing-project-with-version-yaml/lib/existing_project_with_version.rb
|
288
|
+
- test/fixtures/existing-project-with-version-yaml/test/existing_project_with_version_test.rb
|
289
|
+
- test/fixtures/existing-project-with-version-yaml/test/test_helper.rb
|
290
|
+
- test/geminstaller.yml
|
291
|
+
- test/jeweler/commands/test_build_gem.rb
|
292
|
+
- test/jeweler/commands/test_install_gem.rb
|
293
|
+
- test/jeweler/commands/test_release_to_gemcutter.rb
|
294
|
+
- test/jeweler/commands/test_release_to_git.rb
|
295
|
+
- test/jeweler/commands/test_release_to_github.rb
|
296
|
+
- test/jeweler/commands/test_validate_gemspec.rb
|
297
|
+
- test/jeweler/commands/test_write_gemspec.rb
|
298
|
+
- test/jeweler/commands/version/test_base.rb
|
299
|
+
- test/jeweler/commands/version/test_bump_major.rb
|
300
|
+
- test/jeweler/commands/version/test_bump_minor.rb
|
301
|
+
- test/jeweler/commands/version/test_bump_patch.rb
|
302
|
+
- test/jeweler/commands/version/test_write.rb
|
303
|
+
- test/jeweler/generator/test_application.rb
|
304
|
+
- test/jeweler/generator/test_options.rb
|
305
|
+
- test/jeweler/test_gemspec_helper.rb
|
306
|
+
- test/jeweler/test_generator.rb
|
307
|
+
- test/jeweler/test_generator_initialization.rb
|
308
|
+
- test/jeweler/test_generator_mixins.rb
|
309
|
+
- test/jeweler/test_specification.rb
|
310
|
+
- test/jeweler/test_tasks.rb
|
311
|
+
- test/jeweler/test_version_helper.rb
|
312
|
+
- test/shoulda_macros/jeweler_macros.rb
|
313
|
+
- test/test_helper.rb
|
314
|
+
- test/test_jeweler.rb
|
315
|
+
homepage: http://github.com/appoxy/jeweler
|
316
|
+
licenses:
|
317
|
+
- MIT
|
318
|
+
post_install_message:
|
319
|
+
rdoc_options: []
|
320
|
+
require_paths:
|
321
|
+
- lib
|
322
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
323
|
+
none: false
|
324
|
+
requirements:
|
325
|
+
- - ! '>='
|
326
|
+
- !ruby/object:Gem::Version
|
327
|
+
version: '0'
|
328
|
+
segments:
|
329
|
+
- 0
|
330
|
+
hash: -1074486750949856376
|
331
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
332
|
+
none: false
|
333
|
+
requirements:
|
334
|
+
- - ! '>='
|
335
|
+
- !ruby/object:Gem::Version
|
336
|
+
version: '0'
|
337
|
+
requirements: []
|
338
|
+
rubyforge_project:
|
339
|
+
rubygems_version: 1.8.11
|
340
|
+
signing_key:
|
341
|
+
specification_version: 3
|
342
|
+
summary: Opinionated tool for creating and managing RubyGem projects
|
343
|
+
test_files: []
|