jeweler 1.8.8 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.coveralls.yml +2 -0
- data/.travis.yml +0 -1
- data/ChangeLog.markdown +5 -0
- data/Gemfile +9 -10
- data/README.markdown +14 -0
- data/jeweler.gemspec +20 -22
- data/lib/jeweler.rb +4 -4
- data/lib/jeweler/commands/release_gemspec.rb +9 -4
- data/lib/jeweler/commands/release_to_git.rb +11 -6
- data/lib/jeweler/tasks.rb +11 -2
- data/lib/jeweler/version.rb +3 -3
- data/test/jeweler/commands/test_release_to_git.rb +65 -2
- data/test/jeweler/commands/test_release_to_github.rb +74 -3
- data/test/test_helper.rb +3 -0
- data/test/test_jeweler.rb +6 -4
- metadata +59 -45
- checksums.yaml +0 -7
data/.coveralls.yml
ADDED
data/.travis.yml
CHANGED
data/ChangeLog.markdown
CHANGED
data/Gemfile
CHANGED
@@ -4,30 +4,29 @@ source "http://gems.github.com"
|
|
4
4
|
|
5
5
|
gem "rake"
|
6
6
|
gem "git", ">= 1.2.5"
|
7
|
-
gem "nokogiri", "1.5.10"
|
8
|
-
gem "github_api"
|
7
|
+
gem "nokogiri", ">= 1.5.10"
|
8
|
+
gem "github_api"
|
9
9
|
gem "highline", ">= 1.6.15"
|
10
|
-
gem "bundler", "
|
10
|
+
gem "bundler", ">= 1.0"
|
11
11
|
gem "rdoc"
|
12
12
|
gem "builder"
|
13
13
|
|
14
14
|
group :development do
|
15
|
-
gem "yard", "
|
16
|
-
gem "rdoc"
|
15
|
+
gem "yard", ">= 0.8.5"
|
17
16
|
gem "bluecloth"
|
18
|
-
gem "cucumber", "
|
17
|
+
gem "cucumber", ">= 1.1.4"
|
19
18
|
end
|
20
19
|
|
21
20
|
group :test do
|
22
|
-
gem "timecop"
|
23
|
-
gem "activesupport", "~> 2.
|
21
|
+
gem "timecop"
|
22
|
+
gem "activesupport", "~> 3.2.16"
|
24
23
|
gem "shoulda"
|
25
24
|
gem "mhennemeyer-output_catcher"
|
26
|
-
gem "rr", "
|
25
|
+
gem "rr", ">= 1.0.4"
|
27
26
|
gem "mocha"
|
28
27
|
gem "redgreen"
|
29
28
|
gem "test-construct"
|
30
|
-
gem
|
29
|
+
gem 'coveralls', :require => false
|
31
30
|
end
|
32
31
|
|
33
32
|
# yo dawg, i herd u lieked jeweler
|
data/README.markdown
CHANGED
@@ -6,6 +6,7 @@ Jeweler provides the noble ruby developer with two primary features:
|
|
6
6
|
* a scaffold generator for starting new RubyGem projects
|
7
7
|
|
8
8
|
[![Build Status](https://travis-ci.org/technicalpickles/jeweler.png)](https://travis-ci.org/technicalpickles/jeweler)
|
9
|
+
[![Coverage Status](https://coveralls.io/repos/technicalpickles/jeweler/badge.png)](https://coveralls.io/r/technicalpickles/jeweler)
|
9
10
|
|
10
11
|
## Hello, world
|
11
12
|
|
@@ -65,6 +66,19 @@ This will automatically:
|
|
65
66
|
* Use `git` to tag `v0.1.0` and push it
|
66
67
|
* Build `hello-gem-0.1.0.gem` and push it to [rubygems.org](http://rubygems.org/gems/)
|
67
68
|
|
69
|
+
`rake release` accepts REMOTE(default: `origin`), LOCAL_BRANCH(default: `master`), REMOTE_BRANCH(default: `master`) and BRANCH(default: master)as options.
|
70
|
+
|
71
|
+
$ rake release REMOTE=upstream LOCAL_BRANCH=critical-security-fix REMOTE_BRANCH=v3
|
72
|
+
|
73
|
+
This will tag and push the commits on your local branch named `critical-security-fix` to branch named `v3` in remote named `upstream` (if you have commit rights
|
74
|
+
on `upstream`) and release the gem.
|
75
|
+
|
76
|
+
$ rake release BRANCH=v3
|
77
|
+
|
78
|
+
If both remote and local branches are the same, use `BRANCH` option to simplify.
|
79
|
+
This will tag and push the commits on your local branch named `v3` to branch named `v3` in remote named `origin` (if you have commit rights
|
80
|
+
on `origin`) and release the gem.
|
81
|
+
|
68
82
|
### Version bumping
|
69
83
|
|
70
84
|
It feels good to release code. Do it, do it often. But before that, bump the version. Then release it. There's a few ways to update the version:
|
data/jeweler.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "jeweler"
|
8
|
-
s.version = "
|
8
|
+
s.version = "2.0.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Josh Nichols", "Yusuke Murata"]
|
12
|
-
s.date = "
|
12
|
+
s.date = "2014-01-05"
|
13
13
|
s.description = "Simple and opinionated helper for creating Rubygem projects on GitHub"
|
14
14
|
s.email = ["josh@technicalpickles.com", "info@muratayusuke.com"]
|
15
15
|
s.executables = ["jeweler"]
|
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
"README.markdown"
|
20
20
|
]
|
21
21
|
s.files = [
|
22
|
+
".coveralls.yml",
|
22
23
|
".document",
|
23
24
|
".travis.yml",
|
24
25
|
".yardopts",
|
@@ -182,52 +183,49 @@ Gem::Specification.new do |s|
|
|
182
183
|
s.homepage = "http://github.com/technicalpickles/jeweler"
|
183
184
|
s.licenses = ["MIT"]
|
184
185
|
s.require_paths = ["lib"]
|
185
|
-
s.rubygems_version = "
|
186
|
+
s.rubygems_version = "1.8.23"
|
186
187
|
s.summary = "Opinionated tool for creating and managing RubyGem projects"
|
187
188
|
|
188
189
|
if s.respond_to? :specification_version then
|
189
|
-
s.specification_version =
|
190
|
+
s.specification_version = 3
|
190
191
|
|
191
192
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
192
193
|
s.add_runtime_dependency(%q<rake>, [">= 0"])
|
193
194
|
s.add_runtime_dependency(%q<git>, [">= 1.2.5"])
|
194
|
-
s.add_runtime_dependency(%q<nokogiri>, ["
|
195
|
-
s.add_runtime_dependency(%q<github_api>, ["
|
195
|
+
s.add_runtime_dependency(%q<nokogiri>, [">= 1.5.10"])
|
196
|
+
s.add_runtime_dependency(%q<github_api>, [">= 0"])
|
196
197
|
s.add_runtime_dependency(%q<highline>, [">= 1.6.15"])
|
197
|
-
s.add_runtime_dependency(%q<bundler>, ["
|
198
|
+
s.add_runtime_dependency(%q<bundler>, [">= 1.0"])
|
198
199
|
s.add_runtime_dependency(%q<rdoc>, [">= 0"])
|
199
200
|
s.add_runtime_dependency(%q<builder>, [">= 0"])
|
200
|
-
s.add_development_dependency(%q<yard>, ["
|
201
|
-
s.add_development_dependency(%q<rdoc>, [">= 0"])
|
201
|
+
s.add_development_dependency(%q<yard>, [">= 0.8.5"])
|
202
202
|
s.add_development_dependency(%q<bluecloth>, [">= 0"])
|
203
|
-
s.add_development_dependency(%q<cucumber>, ["
|
203
|
+
s.add_development_dependency(%q<cucumber>, [">= 1.1.4"])
|
204
204
|
else
|
205
205
|
s.add_dependency(%q<rake>, [">= 0"])
|
206
206
|
s.add_dependency(%q<git>, [">= 1.2.5"])
|
207
|
-
s.add_dependency(%q<nokogiri>, ["
|
208
|
-
s.add_dependency(%q<github_api>, ["
|
207
|
+
s.add_dependency(%q<nokogiri>, [">= 1.5.10"])
|
208
|
+
s.add_dependency(%q<github_api>, [">= 0"])
|
209
209
|
s.add_dependency(%q<highline>, [">= 1.6.15"])
|
210
|
-
s.add_dependency(%q<bundler>, ["
|
210
|
+
s.add_dependency(%q<bundler>, [">= 1.0"])
|
211
211
|
s.add_dependency(%q<rdoc>, [">= 0"])
|
212
212
|
s.add_dependency(%q<builder>, [">= 0"])
|
213
|
-
s.add_dependency(%q<yard>, ["
|
214
|
-
s.add_dependency(%q<rdoc>, [">= 0"])
|
213
|
+
s.add_dependency(%q<yard>, [">= 0.8.5"])
|
215
214
|
s.add_dependency(%q<bluecloth>, [">= 0"])
|
216
|
-
s.add_dependency(%q<cucumber>, ["
|
215
|
+
s.add_dependency(%q<cucumber>, [">= 1.1.4"])
|
217
216
|
end
|
218
217
|
else
|
219
218
|
s.add_dependency(%q<rake>, [">= 0"])
|
220
219
|
s.add_dependency(%q<git>, [">= 1.2.5"])
|
221
|
-
s.add_dependency(%q<nokogiri>, ["
|
222
|
-
s.add_dependency(%q<github_api>, ["
|
220
|
+
s.add_dependency(%q<nokogiri>, [">= 1.5.10"])
|
221
|
+
s.add_dependency(%q<github_api>, [">= 0"])
|
223
222
|
s.add_dependency(%q<highline>, [">= 1.6.15"])
|
224
|
-
s.add_dependency(%q<bundler>, ["
|
223
|
+
s.add_dependency(%q<bundler>, [">= 1.0"])
|
225
224
|
s.add_dependency(%q<rdoc>, [">= 0"])
|
226
225
|
s.add_dependency(%q<builder>, [">= 0"])
|
227
|
-
s.add_dependency(%q<yard>, ["
|
228
|
-
s.add_dependency(%q<rdoc>, [">= 0"])
|
226
|
+
s.add_dependency(%q<yard>, [">= 0.8.5"])
|
229
227
|
s.add_dependency(%q<bluecloth>, [">= 0"])
|
230
|
-
s.add_dependency(%q<cucumber>, ["
|
228
|
+
s.add_dependency(%q<cucumber>, [">= 1.1.4"])
|
231
229
|
end
|
232
230
|
end
|
233
231
|
|
data/lib/jeweler.rb
CHANGED
@@ -125,12 +125,12 @@ class Jeweler
|
|
125
125
|
command.run
|
126
126
|
end
|
127
127
|
|
128
|
-
def release_gemspec
|
129
|
-
Jeweler::Commands::ReleaseGemspec.build_for(self).run
|
128
|
+
def release_gemspec(args)
|
129
|
+
Jeweler::Commands::ReleaseGemspec.build_for(self).run(args)
|
130
130
|
end
|
131
131
|
|
132
|
-
def release_to_git
|
133
|
-
Jeweler::Commands::ReleaseToGit.build_for(self).run
|
132
|
+
def release_to_git(args)
|
133
|
+
Jeweler::Commands::ReleaseToGit.build_for(self).run(args)
|
134
134
|
end
|
135
135
|
|
136
136
|
def release_gem_to_rubygems
|
@@ -13,19 +13,24 @@ class Jeweler
|
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
|
-
def run
|
16
|
+
def run(args = {})
|
17
|
+
remote = args[:remote] || 'origin'
|
18
|
+
branch = args[:branch] || 'master'
|
19
|
+
local_branch = args[:local_branch] || branch
|
20
|
+
remote_branch = args[:remote_branch] || branch
|
21
|
+
|
17
22
|
unless clean_staging_area?
|
18
23
|
system "git status"
|
19
24
|
raise "Unclean staging area! Be sure to commit or .gitignore everything first. See `git status` above."
|
20
25
|
end
|
21
26
|
|
22
|
-
repo.checkout(
|
27
|
+
repo.checkout(local_branch)
|
23
28
|
|
24
29
|
regenerate_gemspec!
|
25
30
|
commit_gemspec! if gemspec_changed?
|
26
31
|
|
27
|
-
output.puts "Pushing
|
28
|
-
repo.push
|
32
|
+
output.puts "Pushing #{local_branch} to #{remote}"
|
33
|
+
repo.push(remote, "#{local_branch}:#{remote_branch}")
|
29
34
|
end
|
30
35
|
|
31
36
|
def clean_staging_area?
|
@@ -11,21 +11,26 @@ class Jeweler
|
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
|
-
def run
|
14
|
+
def run(args = {})
|
15
|
+
remote = args[:remote] || 'origin'
|
16
|
+
branch = args[:branch] || 'master'
|
17
|
+
local_branch = args[:local_branch] || branch
|
18
|
+
remote_branch = args[:remote_branch] || branch
|
19
|
+
|
15
20
|
unless clean_staging_area?
|
16
21
|
system "git status"
|
17
22
|
raise "Unclean staging area! Be sure to commit or .gitignore everything first. See `git status` above."
|
18
23
|
end
|
19
24
|
|
20
|
-
repo.checkout(
|
21
|
-
repo.push
|
22
|
-
|
25
|
+
repo.checkout(local_branch)
|
26
|
+
repo.push(remote, "#{local_branch}:#{remote_branch}")
|
27
|
+
|
23
28
|
if release_not_tagged?
|
24
29
|
output.puts "Tagging #{release_tag}"
|
25
30
|
repo.add_tag(release_tag)
|
26
31
|
|
27
|
-
output.puts "Pushing #{release_tag} to
|
28
|
-
repo.push(
|
32
|
+
output.puts "Pushing #{release_tag} to #{remote}"
|
33
|
+
repo.push(remote, release_tag)
|
29
34
|
end
|
30
35
|
end
|
31
36
|
|
data/lib/jeweler/tasks.rb
CHANGED
@@ -68,6 +68,15 @@ class Jeweler
|
|
68
68
|
! yielded_gemspec.version.nil?
|
69
69
|
end
|
70
70
|
|
71
|
+
def release_args
|
72
|
+
args = {}
|
73
|
+
args[:remote] = ENV['REMOTE']
|
74
|
+
args[:branch] = ENV['BRANCH']
|
75
|
+
args[:local_branch] = ENV['LOCAL_BRANCH']
|
76
|
+
args[:remote_branch] = ENV['REMOTE_BRANCH']
|
77
|
+
return args
|
78
|
+
end
|
79
|
+
|
71
80
|
def define
|
72
81
|
task :version_required do
|
73
82
|
if jeweler.expects_version_file? && !jeweler.version_file_exists?
|
@@ -130,7 +139,7 @@ class Jeweler
|
|
130
139
|
|
131
140
|
desc "Regenerate and validate gemspec, and then commits and pushes to git"
|
132
141
|
task :release do
|
133
|
-
jeweler.release_gemspec
|
142
|
+
jeweler.release_gemspec(release_args)
|
134
143
|
end
|
135
144
|
end
|
136
145
|
|
@@ -172,7 +181,7 @@ class Jeweler
|
|
172
181
|
namespace :git do
|
173
182
|
desc "Tag and push release to git. (happens by default with `rake release`)"
|
174
183
|
task :release do
|
175
|
-
jeweler.release_to_git
|
184
|
+
jeweler.release_to_git(release_args)
|
176
185
|
end
|
177
186
|
end
|
178
187
|
|
data/lib/jeweler/version.rb
CHANGED
@@ -27,11 +27,74 @@ class Jeweler
|
|
27
27
|
end
|
28
28
|
|
29
29
|
should "push" do
|
30
|
-
assert_received(@repo) {|repo| repo.push }
|
30
|
+
assert_received(@repo) {|repo| repo.push('origin', 'master:master') }
|
31
31
|
end
|
32
32
|
|
33
33
|
end
|
34
34
|
|
35
|
+
context "happily with different remote, local branch and remote branch" do
|
36
|
+
setup do
|
37
|
+
stub(@command).clean_staging_area? { true }
|
38
|
+
stub(@command).release_tag { "v1.2.0" }
|
39
|
+
|
40
|
+
stub(@repo).checkout(anything)
|
41
|
+
stub(@repo) do
|
42
|
+
add_tag(anything)
|
43
|
+
push(anything, anything)
|
44
|
+
end
|
45
|
+
|
46
|
+
stub(@repo).push
|
47
|
+
|
48
|
+
stub(@command).release_not_tagged? { true }
|
49
|
+
|
50
|
+
@command.run({:remote => 'upstream', :local_branch => 'feature', :remote_branch => 'v1'})
|
51
|
+
end
|
52
|
+
|
53
|
+
should "checkout master" do
|
54
|
+
assert_received(@repo) {|repo| repo.checkout('feature') }
|
55
|
+
end
|
56
|
+
|
57
|
+
should "tag version" do
|
58
|
+
assert_received(@repo) {|repo| repo.add_tag('v1.2.0') }
|
59
|
+
end
|
60
|
+
|
61
|
+
should "push" do
|
62
|
+
assert_received(@repo) {|repo| repo.push('upstream', 'feature:v1') }
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
66
|
+
|
67
|
+
context "happily with different branch" do
|
68
|
+
setup do
|
69
|
+
stub(@command).clean_staging_area? { true }
|
70
|
+
stub(@command).release_tag { "v3.2.0" }
|
71
|
+
|
72
|
+
stub(@repo).checkout(anything)
|
73
|
+
stub(@repo) do
|
74
|
+
add_tag(anything)
|
75
|
+
push(anything, anything)
|
76
|
+
end
|
77
|
+
|
78
|
+
stub(@repo).push
|
79
|
+
|
80
|
+
stub(@command).release_not_tagged? { true }
|
81
|
+
|
82
|
+
@command.run({:branch => 'v3'})
|
83
|
+
end
|
84
|
+
|
85
|
+
should "checkout master" do
|
86
|
+
assert_received(@repo) {|repo| repo.checkout('v3') }
|
87
|
+
end
|
88
|
+
|
89
|
+
should "tag version" do
|
90
|
+
assert_received(@repo) {|repo| repo.add_tag('v3.2.0') }
|
91
|
+
end
|
92
|
+
|
93
|
+
should "push" do
|
94
|
+
assert_received(@repo) {|repo| repo.push('origin', 'v3:v3') }
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
35
98
|
context "with an unclean staging area" do
|
36
99
|
setup do
|
37
100
|
stub(@command).clean_staging_area? { false }
|
@@ -68,7 +131,7 @@ class Jeweler
|
|
68
131
|
end
|
69
132
|
|
70
133
|
should "push" do
|
71
|
-
assert_received(@repo) {|repo| repo.push }
|
134
|
+
assert_received(@repo) {|repo| repo.push('origin', 'master:master') }
|
72
135
|
end
|
73
136
|
|
74
137
|
end
|
@@ -37,11 +37,82 @@ class Jeweler
|
|
37
37
|
end
|
38
38
|
|
39
39
|
should "push" do
|
40
|
-
assert_received(@repo) {|repo| repo.push }
|
40
|
+
assert_received(@repo) {|repo| repo.push('origin', 'master:master') }
|
41
41
|
end
|
42
42
|
|
43
43
|
end
|
44
44
|
|
45
|
+
context "happily with different remote, local branch and remote branch" do
|
46
|
+
setup do
|
47
|
+
stub(@command).clean_staging_area? { true }
|
48
|
+
|
49
|
+
stub(@repo).checkout(anything)
|
50
|
+
|
51
|
+
stub(@command).regenerate_gemspec!
|
52
|
+
|
53
|
+
stub(@command).gemspec_changed? { true }
|
54
|
+
stub(@command).commit_gemspec! { true }
|
55
|
+
|
56
|
+
stub(@repo).push
|
57
|
+
|
58
|
+
stub(@command).release_not_tagged? { true }
|
59
|
+
|
60
|
+
@command.run({:remote => 'upstream', :local_branch => 'branch', :remote_branch => 'remote_branch'})
|
61
|
+
end
|
62
|
+
|
63
|
+
should "checkout local branch" do
|
64
|
+
assert_received(@repo) {|repo| repo.checkout('branch') }
|
65
|
+
end
|
66
|
+
|
67
|
+
should "regenerate gemspec" do
|
68
|
+
assert_received(@command) {|command| command.regenerate_gemspec! }
|
69
|
+
end
|
70
|
+
|
71
|
+
should "commit gemspec" do
|
72
|
+
assert_received(@command) {|command| command.commit_gemspec! }
|
73
|
+
end
|
74
|
+
|
75
|
+
should "push" do
|
76
|
+
assert_received(@repo) {|repo| repo.push('upstream', 'branch:remote_branch') }
|
77
|
+
end
|
78
|
+
|
79
|
+
end
|
80
|
+
|
81
|
+
context "happily with different branch" do
|
82
|
+
setup do
|
83
|
+
stub(@command).clean_staging_area? { true }
|
84
|
+
|
85
|
+
stub(@repo).checkout(anything)
|
86
|
+
|
87
|
+
stub(@command).regenerate_gemspec!
|
88
|
+
|
89
|
+
stub(@command).gemspec_changed? { true }
|
90
|
+
stub(@command).commit_gemspec! { true }
|
91
|
+
|
92
|
+
stub(@repo).push
|
93
|
+
|
94
|
+
stub(@command).release_not_tagged? { true }
|
95
|
+
|
96
|
+
@command.run({:branch => 'v3'})
|
97
|
+
end
|
98
|
+
|
99
|
+
should "checkout local branch" do
|
100
|
+
assert_received(@repo) {|repo| repo.checkout('v3') }
|
101
|
+
end
|
102
|
+
|
103
|
+
should "regenerate gemspec" do
|
104
|
+
assert_received(@command) {|command| command.regenerate_gemspec! }
|
105
|
+
end
|
106
|
+
|
107
|
+
should "commit gemspec" do
|
108
|
+
assert_received(@command) {|command| command.commit_gemspec! }
|
109
|
+
end
|
110
|
+
|
111
|
+
should "push" do
|
112
|
+
assert_received(@repo) {|repo| repo.push('origin', 'v3:v3') }
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
45
116
|
context "with an unclean staging area" do
|
46
117
|
setup do
|
47
118
|
stub(@command).clean_staging_area? { false }
|
@@ -87,7 +158,7 @@ class Jeweler
|
|
87
158
|
end
|
88
159
|
|
89
160
|
should "push" do
|
90
|
-
assert_received(@repo) {|repo| repo.push }
|
161
|
+
assert_received(@repo) {|repo| repo.push('origin', 'master:master') }
|
91
162
|
end
|
92
163
|
|
93
164
|
end
|
@@ -123,7 +194,7 @@ class Jeweler
|
|
123
194
|
end
|
124
195
|
|
125
196
|
should "push" do
|
126
|
-
assert_received(@repo) {|repo| repo.push }
|
197
|
+
assert_received(@repo) {|repo| repo.push('origin', 'master:master') }
|
127
198
|
end
|
128
199
|
|
129
200
|
end
|
data/test/test_helper.rb
CHANGED
data/test/test_jeweler.rb
CHANGED
@@ -136,24 +136,26 @@ class TestJeweler < Test::Unit::TestCase
|
|
136
136
|
|
137
137
|
should "build and run release to github command when running release_gemspec" do
|
138
138
|
jeweler = build_jeweler
|
139
|
+
args = {}
|
139
140
|
|
140
141
|
command = Object.new
|
141
|
-
mock(command).run
|
142
|
+
mock(command).run(args)
|
142
143
|
|
143
144
|
mock(Jeweler::Commands::ReleaseGemspec).build_for(jeweler) { command }
|
144
145
|
|
145
|
-
jeweler.release_gemspec
|
146
|
+
jeweler.release_gemspec(args)
|
146
147
|
end
|
147
148
|
|
148
149
|
should "build and run release to git command when running release_to_git" do
|
149
150
|
jeweler = build_jeweler
|
151
|
+
args = {}
|
150
152
|
|
151
153
|
command = Object.new
|
152
|
-
mock(command).run
|
154
|
+
mock(command).run(args)
|
153
155
|
|
154
156
|
mock(Jeweler::Commands::ReleaseToGit).build_for(jeweler) { command }
|
155
157
|
|
156
|
-
jeweler.release_to_git
|
158
|
+
jeweler.release_to_git(args)
|
157
159
|
end
|
158
160
|
|
159
161
|
should "respond to gemspec_helper" do
|
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jeweler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Josh Nichols
|
@@ -9,174 +10,182 @@ authors:
|
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date:
|
13
|
+
date: 2014-01-05 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: rake
|
16
17
|
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
17
19
|
requirements:
|
18
|
-
- - '>='
|
20
|
+
- - ! '>='
|
19
21
|
- !ruby/object:Gem::Version
|
20
22
|
version: '0'
|
21
23
|
type: :runtime
|
22
24
|
prerelease: false
|
23
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
24
27
|
requirements:
|
25
|
-
- - '>='
|
28
|
+
- - ! '>='
|
26
29
|
- !ruby/object:Gem::Version
|
27
30
|
version: '0'
|
28
31
|
- !ruby/object:Gem::Dependency
|
29
32
|
name: git
|
30
33
|
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
31
35
|
requirements:
|
32
|
-
- - '>='
|
36
|
+
- - ! '>='
|
33
37
|
- !ruby/object:Gem::Version
|
34
38
|
version: 1.2.5
|
35
39
|
type: :runtime
|
36
40
|
prerelease: false
|
37
41
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
38
43
|
requirements:
|
39
|
-
- - '>='
|
44
|
+
- - ! '>='
|
40
45
|
- !ruby/object:Gem::Version
|
41
46
|
version: 1.2.5
|
42
47
|
- !ruby/object:Gem::Dependency
|
43
48
|
name: nokogiri
|
44
49
|
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
45
51
|
requirements:
|
46
|
-
- - '
|
52
|
+
- - ! '>='
|
47
53
|
- !ruby/object:Gem::Version
|
48
54
|
version: 1.5.10
|
49
55
|
type: :runtime
|
50
56
|
prerelease: false
|
51
57
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
52
59
|
requirements:
|
53
|
-
- - '
|
60
|
+
- - ! '>='
|
54
61
|
- !ruby/object:Gem::Version
|
55
62
|
version: 1.5.10
|
56
63
|
- !ruby/object:Gem::Dependency
|
57
64
|
name: github_api
|
58
65
|
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
59
67
|
requirements:
|
60
|
-
- - '
|
68
|
+
- - ! '>='
|
61
69
|
- !ruby/object:Gem::Version
|
62
|
-
version: 0
|
70
|
+
version: '0'
|
63
71
|
type: :runtime
|
64
72
|
prerelease: false
|
65
73
|
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
66
75
|
requirements:
|
67
|
-
- - '
|
76
|
+
- - ! '>='
|
68
77
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0
|
78
|
+
version: '0'
|
70
79
|
- !ruby/object:Gem::Dependency
|
71
80
|
name: highline
|
72
81
|
requirement: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
73
83
|
requirements:
|
74
|
-
- - '>='
|
84
|
+
- - ! '>='
|
75
85
|
- !ruby/object:Gem::Version
|
76
86
|
version: 1.6.15
|
77
87
|
type: :runtime
|
78
88
|
prerelease: false
|
79
89
|
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
80
91
|
requirements:
|
81
|
-
- - '>='
|
92
|
+
- - ! '>='
|
82
93
|
- !ruby/object:Gem::Version
|
83
94
|
version: 1.6.15
|
84
95
|
- !ruby/object:Gem::Dependency
|
85
96
|
name: bundler
|
86
97
|
requirement: !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
87
99
|
requirements:
|
88
|
-
- -
|
100
|
+
- - ! '>='
|
89
101
|
- !ruby/object:Gem::Version
|
90
102
|
version: '1.0'
|
91
103
|
type: :runtime
|
92
104
|
prerelease: false
|
93
105
|
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
94
107
|
requirements:
|
95
|
-
- -
|
108
|
+
- - ! '>='
|
96
109
|
- !ruby/object:Gem::Version
|
97
110
|
version: '1.0'
|
98
111
|
- !ruby/object:Gem::Dependency
|
99
112
|
name: rdoc
|
100
113
|
requirement: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
101
115
|
requirements:
|
102
|
-
- - '>='
|
116
|
+
- - ! '>='
|
103
117
|
- !ruby/object:Gem::Version
|
104
118
|
version: '0'
|
105
119
|
type: :runtime
|
106
120
|
prerelease: false
|
107
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
108
123
|
requirements:
|
109
|
-
- - '>='
|
124
|
+
- - ! '>='
|
110
125
|
- !ruby/object:Gem::Version
|
111
126
|
version: '0'
|
112
127
|
- !ruby/object:Gem::Dependency
|
113
128
|
name: builder
|
114
129
|
requirement: !ruby/object:Gem::Requirement
|
130
|
+
none: false
|
115
131
|
requirements:
|
116
|
-
- - '>='
|
132
|
+
- - ! '>='
|
117
133
|
- !ruby/object:Gem::Version
|
118
134
|
version: '0'
|
119
135
|
type: :runtime
|
120
136
|
prerelease: false
|
121
137
|
version_requirements: !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
122
139
|
requirements:
|
123
|
-
- - '>='
|
140
|
+
- - ! '>='
|
124
141
|
- !ruby/object:Gem::Version
|
125
142
|
version: '0'
|
126
143
|
- !ruby/object:Gem::Dependency
|
127
144
|
name: yard
|
128
145
|
requirement: !ruby/object:Gem::Requirement
|
146
|
+
none: false
|
129
147
|
requirements:
|
130
|
-
- -
|
148
|
+
- - ! '>='
|
131
149
|
- !ruby/object:Gem::Version
|
132
150
|
version: 0.8.5
|
133
151
|
type: :development
|
134
152
|
prerelease: false
|
135
153
|
version_requirements: !ruby/object:Gem::Requirement
|
154
|
+
none: false
|
136
155
|
requirements:
|
137
|
-
- -
|
156
|
+
- - ! '>='
|
138
157
|
- !ruby/object:Gem::Version
|
139
158
|
version: 0.8.5
|
140
|
-
- !ruby/object:Gem::Dependency
|
141
|
-
name: rdoc
|
142
|
-
requirement: !ruby/object:Gem::Requirement
|
143
|
-
requirements:
|
144
|
-
- - '>='
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
version: '0'
|
147
|
-
type: :development
|
148
|
-
prerelease: false
|
149
|
-
version_requirements: !ruby/object:Gem::Requirement
|
150
|
-
requirements:
|
151
|
-
- - '>='
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
version: '0'
|
154
159
|
- !ruby/object:Gem::Dependency
|
155
160
|
name: bluecloth
|
156
161
|
requirement: !ruby/object:Gem::Requirement
|
162
|
+
none: false
|
157
163
|
requirements:
|
158
|
-
- - '>='
|
164
|
+
- - ! '>='
|
159
165
|
- !ruby/object:Gem::Version
|
160
166
|
version: '0'
|
161
167
|
type: :development
|
162
168
|
prerelease: false
|
163
169
|
version_requirements: !ruby/object:Gem::Requirement
|
170
|
+
none: false
|
164
171
|
requirements:
|
165
|
-
- - '>='
|
172
|
+
- - ! '>='
|
166
173
|
- !ruby/object:Gem::Version
|
167
174
|
version: '0'
|
168
175
|
- !ruby/object:Gem::Dependency
|
169
176
|
name: cucumber
|
170
177
|
requirement: !ruby/object:Gem::Requirement
|
178
|
+
none: false
|
171
179
|
requirements:
|
172
|
-
- -
|
180
|
+
- - ! '>='
|
173
181
|
- !ruby/object:Gem::Version
|
174
182
|
version: 1.1.4
|
175
183
|
type: :development
|
176
184
|
prerelease: false
|
177
185
|
version_requirements: !ruby/object:Gem::Requirement
|
186
|
+
none: false
|
178
187
|
requirements:
|
179
|
-
- -
|
188
|
+
- - ! '>='
|
180
189
|
- !ruby/object:Gem::Version
|
181
190
|
version: 1.1.4
|
182
191
|
description: Simple and opinionated helper for creating Rubygem projects on GitHub
|
@@ -191,6 +200,7 @@ extra_rdoc_files:
|
|
191
200
|
- LICENSE.txt
|
192
201
|
- README.markdown
|
193
202
|
files:
|
203
|
+
- .coveralls.yml
|
194
204
|
- .document
|
195
205
|
- .travis.yml
|
196
206
|
- .yardopts
|
@@ -353,25 +363,29 @@ files:
|
|
353
363
|
homepage: http://github.com/technicalpickles/jeweler
|
354
364
|
licenses:
|
355
365
|
- MIT
|
356
|
-
metadata: {}
|
357
366
|
post_install_message:
|
358
367
|
rdoc_options: []
|
359
368
|
require_paths:
|
360
369
|
- lib
|
361
370
|
required_ruby_version: !ruby/object:Gem::Requirement
|
371
|
+
none: false
|
362
372
|
requirements:
|
363
|
-
- - '>='
|
373
|
+
- - ! '>='
|
364
374
|
- !ruby/object:Gem::Version
|
365
375
|
version: '0'
|
376
|
+
segments:
|
377
|
+
- 0
|
378
|
+
hash: -3046647141543094999
|
366
379
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
380
|
+
none: false
|
367
381
|
requirements:
|
368
|
-
- - '>='
|
382
|
+
- - ! '>='
|
369
383
|
- !ruby/object:Gem::Version
|
370
384
|
version: '0'
|
371
385
|
requirements: []
|
372
386
|
rubyforge_project:
|
373
|
-
rubygems_version:
|
387
|
+
rubygems_version: 1.8.23
|
374
388
|
signing_key:
|
375
|
-
specification_version:
|
389
|
+
specification_version: 3
|
376
390
|
summary: Opinionated tool for creating and managing RubyGem projects
|
377
391
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 155993a21b30a9fff64eaa374e8338ec9b154e4b
|
4
|
-
data.tar.gz: aa5eadbc8a8982ed0da2774806ed61a794d1b862
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: a826ef79324e9cd5662f3ec854cdbcdfd1d01fcb81784812835c6c02b7d0e8f247e1457fd9a95600c8e6dfca33f1ee608b0bd645aa6a6f8c46c4a89e4e10b47a
|
7
|
-
data.tar.gz: 31886c9d266b9dbfae2892e3169b560443bb8e3947695432301cb7e071ef8b5d30c4f13486c5338d665850ac8bacafe297647966fe981011f66bfd09f0dd48db
|