jeweler 1.8.2 → 2.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.coveralls.yml +2 -0
- data/.semver +5 -0
- data/.travis.yml +5 -3
- data/ChangeLog.markdown +30 -0
- data/Gemfile +32 -25
- data/Gemfile.lock +117 -46
- data/README.markdown +36 -10
- data/README.org +374 -0
- data/Rakefile +23 -28
- data/bin/jeweler +1 -0
- data/features/generator/gemfile.feature +1 -0
- data/features/generator/test.feature +2 -2
- data/features/step_definitions/debug_steps.rb +0 -1
- data/features/step_definitions/filesystem_steps.rb +2 -3
- data/features/step_definitions/generator_steps.rb +44 -66
- data/features/step_definitions/task_steps.rb +1 -2
- data/features/support/env.rb +22 -9
- data/jeweler.gemspec +64 -45
- data/lib/jeweler/commands/build_gem.rb +6 -2
- data/lib/jeweler/commands/check_dependencies.rb +3 -3
- data/lib/jeweler/commands/install_gem.rb +1 -1
- data/lib/jeweler/commands/release_gemspec.rb +17 -14
- data/lib/jeweler/commands/release_to_git.rb +20 -11
- data/lib/jeweler/commands/validate_gemspec.rb +5 -7
- data/lib/jeweler/commands/version/base.rb +8 -13
- data/lib/jeweler/commands/version/bump_major.rb +1 -3
- data/lib/jeweler/commands/version/bump_minor.rb +1 -2
- data/lib/jeweler/commands/version/bump_patch.rb +1 -4
- data/lib/jeweler/commands/write_gemspec.rb +4 -3
- data/lib/jeweler/commands.rb +6 -6
- data/lib/jeweler/gemspec_helper.rb +15 -15
- data/lib/jeweler/generator/application.rb +5 -10
- data/lib/jeweler/generator/bacon_mixin.rb +2 -4
- data/lib/jeweler/generator/github_mixin.rb +1 -10
- data/lib/jeweler/generator/micronaut_mixin.rb +3 -3
- data/lib/jeweler/generator/minitest_mixin.rb +2 -3
- data/lib/jeweler/generator/options.rb +16 -25
- data/lib/jeweler/generator/rdoc_mixin.rb +1 -1
- data/lib/jeweler/generator/riot_mixin.rb +2 -3
- data/lib/jeweler/generator/rspec_mixin.rb +2 -3
- data/lib/jeweler/generator/shindo_mixin.rb +2 -3
- data/lib/jeweler/generator/shoulda_mixin.rb +2 -3
- data/lib/jeweler/generator/testspec_mixin.rb +2 -3
- data/lib/jeweler/generator/testunit_mixin.rb +1 -3
- data/lib/jeweler/generator/yard_mixin.rb +3 -4
- data/lib/jeweler/generator.rb +52 -45
- data/lib/jeweler/rubyforge_tasks.rb +13 -13
- data/lib/jeweler/rubygems_dot_org_tasks.rb +3 -3
- data/lib/jeweler/rubygems_tasks.rb +3 -3
- data/lib/jeweler/specification.rb +22 -11
- data/lib/jeweler/tasks.rb +68 -59
- data/lib/jeweler/templates/Gemfile +1 -1
- data/lib/jeweler/templates/bacon/flunking.rb +3 -3
- data/lib/jeweler/templates/bacon/helper.rb +1 -0
- data/lib/jeweler/templates/features/support/env.rb +1 -0
- data/lib/jeweler/templates/jeweler_tasks.erb +1 -1
- data/lib/jeweler/templates/micronaut/flunking.rb +3 -3
- data/lib/jeweler/templates/micronaut/helper.rb +1 -0
- data/lib/jeweler/templates/minitest/flunking.rb +1 -1
- data/lib/jeweler/templates/minitest/helper.rb +4 -3
- data/lib/jeweler/templates/other_tasks.erb +4 -20
- data/lib/jeweler/templates/riot/flunking.rb +1 -1
- data/lib/jeweler/templates/riot/helper.rb +1 -0
- data/lib/jeweler/templates/rspec/flunking.rb +3 -3
- data/lib/jeweler/templates/rspec/helper.rb +3 -1
- data/lib/jeweler/templates/shindo/flunking.rb +3 -3
- data/lib/jeweler/templates/shindo/helper.rb +1 -0
- data/lib/jeweler/templates/shoulda/helper.rb +1 -0
- data/lib/jeweler/templates/simplecov.erb +16 -0
- data/lib/jeweler/templates/testspec/flunking.rb +3 -3
- data/lib/jeweler/templates/testspec/helper.rb +1 -1
- data/lib/jeweler/templates/testunit/helper.rb +1 -0
- data/lib/jeweler/version.rb +3 -3
- data/lib/jeweler/version_helper.rb +18 -15
- data/lib/jeweler.rb +23 -23
- data/test/fixtures/bar/lib/foo_the_ultimate_lib.rb +1 -1
- data/test/fixtures/existing-project-with-version-constant/Rakefile +18 -20
- data/test/fixtures/existing-project-with-version-constant/existing-project-with-version.gemspec +15 -17
- data/test/fixtures/existing-project-with-version-constant/test/existing_project_with_version_test.rb +2 -2
- data/test/fixtures/existing-project-with-version-plaintext/Rakefile +17 -19
- data/test/fixtures/existing-project-with-version-plaintext/existing-project-with-version.gemspec +15 -17
- data/test/fixtures/existing-project-with-version-plaintext/test/existing_project_with_version_test.rb +2 -2
- data/test/fixtures/existing-project-with-version-yaml/Rakefile +17 -19
- data/test/fixtures/existing-project-with-version-yaml/existing-project-with-version.gemspec +15 -17
- data/test/fixtures/existing-project-with-version-yaml/test/existing_project_with_version_test.rb +2 -2
- data/test/jeweler/commands/test_build_gem.rb +33 -27
- data/test/jeweler/commands/test_install_gem.rb +7 -7
- data/test/jeweler/commands/test_release_to_gemcutter.rb +6 -7
- data/test/jeweler/commands/test_release_to_git.rb +95 -37
- data/test/jeweler/commands/test_release_to_github.rb +161 -97
- data/test/jeweler/commands/test_validate_gemspec.rb +4 -6
- data/test/jeweler/commands/test_write_gemspec.rb +21 -24
- data/test/jeweler/commands/version/test_base.rb +26 -6
- data/test/jeweler/commands/version/test_bump_major.rb +1 -5
- data/test/jeweler/commands/version/test_bump_minor.rb +1 -2
- data/test/jeweler/commands/version/test_bump_patch.rb +1 -3
- data/test/jeweler/commands/version/test_write.rb +1 -3
- data/test/jeweler/generator/test_application.rb +22 -26
- data/test/jeweler/generator/test_options.rb +26 -38
- data/test/jeweler/test_gemspec_helper.rb +7 -7
- data/test/jeweler/test_generator.rb +31 -33
- data/test/jeweler/test_generator_initialization.rb +40 -57
- data/test/jeweler/test_generator_mixins.rb +6 -7
- data/test/jeweler/test_specification.rb +44 -43
- data/test/jeweler/test_tasks.rb +2 -3
- data/test/jeweler/test_version_helper.rb +33 -35
- data/test/shoulda_macros/jeweler_macros.rb +5 -5
- data/test/test_helper.rb +25 -31
- data/test/test_jeweler.rb +28 -29
- metadata +206 -165
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 75a2defb36cb0375edbb24eb87a80772c4c0de3f
|
4
|
+
data.tar.gz: 58b9cda6bdbdadd2f71fb6f3c3ed74746bca294a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9134a92692b58c7906c197f0e035bc22395491c62e2d30e53d47f161261a75ae8368dcc7f83844997f8207a8e44ae0064aaac7ebab1260b68861982f973268fa
|
7
|
+
data.tar.gz: edb76a82af7b5d81c2c6455ea96691b5d4fd5748ab8e341085de1692a368db335c98a656c05020b1ec754e15e5e54839ead6eae353b59f39093e75c5fd5e4b3b
|
data/.coveralls.yml
ADDED
data/.semver
ADDED
data/.travis.yml
CHANGED
data/ChangeLog.markdown
CHANGED
@@ -1,3 +1,33 @@
|
|
1
|
+
# jeweler 2.2.1
|
2
|
+
* Added a patch for a potential psych problem that hit juwelier.
|
3
|
+
|
4
|
+
# jeweler 2.1.2, 2016-10-22
|
5
|
+
* Merged pull requests to support breaking changes to the Bundler API (thanks julik)
|
6
|
+
* Updated gem dependencies
|
7
|
+
|
8
|
+
# jeweler 2.0.0, 2014-01-05
|
9
|
+
|
10
|
+
* Ruby 1.8 is not supported anymore.
|
11
|
+
* rake release accepts remote and branches #249
|
12
|
+
|
13
|
+
# jeweler 1.8.7, 2013-08-12
|
14
|
+
|
15
|
+
* Lock timecop version to 0.6.1 to keep support of 1.8.7 #243
|
16
|
+
* Bump version in version.rb to reflect released gem version
|
17
|
+
* jeweler's Rakefile reads version from version.rb
|
18
|
+
|
19
|
+
# jeweler 1.8.6, 2013-07-04
|
20
|
+
|
21
|
+
* Fix dependency error when install #239
|
22
|
+
|
23
|
+
# jeweler 1.8.5, 2013-06-29
|
24
|
+
|
25
|
+
* Support rubygems 2.x #238
|
26
|
+
|
27
|
+
# jeweler 1.8.2, 2012-01-24
|
28
|
+
|
29
|
+
* Fixed jeweler's circular dependency on itself #224
|
30
|
+
|
1
31
|
# jeweler 1.8.2, 2012-01-24
|
2
32
|
|
3
33
|
* Standardize on invoking jeweler in development: bundle exec jeweler #220
|
data/Gemfile
CHANGED
@@ -1,35 +1,42 @@
|
|
1
|
-
source
|
2
|
-
source "http://gems.github.com"
|
1
|
+
source 'https://rubygems.org'
|
3
2
|
|
4
|
-
|
5
|
-
|
6
|
-
gem '
|
7
|
-
|
8
|
-
gem
|
9
|
-
gem
|
10
|
-
gem
|
11
|
-
gem
|
3
|
+
gem 'rake'
|
4
|
+
gem 'git', '>= 1.2.5'
|
5
|
+
gem 'nokogiri', '>= 1.5.10'
|
6
|
+
gem 'github_api', '~> 0.16.0'
|
7
|
+
gem 'highline', '>= 1.6.15'
|
8
|
+
gem 'bundler', '>= 1'
|
9
|
+
gem 'rdoc'
|
10
|
+
gem 'builder'
|
11
|
+
gem "semver2"
|
12
|
+
gem "psych", "~> 2.2"
|
12
13
|
|
13
14
|
group :development do
|
14
|
-
gem
|
15
|
-
gem
|
16
|
-
gem
|
17
|
-
gem
|
18
|
-
gem "rcov"
|
15
|
+
gem 'yard', '>= 0.8.5'
|
16
|
+
gem 'bluecloth'
|
17
|
+
gem 'cucumber', '>= 1.1.4'
|
18
|
+
gem 'simplecov'
|
19
19
|
end
|
20
20
|
|
21
21
|
group :test do
|
22
|
-
gem
|
23
|
-
gem
|
24
|
-
gem
|
25
|
-
gem
|
26
|
-
gem
|
27
|
-
gem
|
28
|
-
gem
|
29
|
-
gem
|
30
|
-
gem
|
22
|
+
gem 'timecop'
|
23
|
+
gem 'activesupport', '~> 3.2.16'
|
24
|
+
gem 'shoulda', require: false
|
25
|
+
gem 'mhennemeyer-output_catcher'
|
26
|
+
gem 'mocha', require: false
|
27
|
+
gem 'redgreen'
|
28
|
+
gem 'test_construct'
|
29
|
+
gem 'coveralls', require: false
|
30
|
+
gem 'test-unit-rr', require: false
|
31
|
+
end
|
32
|
+
|
33
|
+
# yo dawg, i herd u lieked jeweler
|
34
|
+
group :xzibit do
|
35
|
+
# steal a page from bundler's gemspec:
|
36
|
+
# add this directory as jeweler, in order to bundle exec jeweler and use the current working directory
|
37
|
+
gem 'jeweler', path: '.'
|
31
38
|
end
|
32
39
|
|
33
40
|
group :debug do
|
34
|
-
gem
|
41
|
+
gem 'test-unit'
|
35
42
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,73 +1,144 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
jeweler (
|
5
|
-
|
4
|
+
jeweler (2.3.7)
|
5
|
+
builder
|
6
|
+
bundler (>= 1)
|
6
7
|
git (>= 1.2.5)
|
8
|
+
github_api (~> 0.16.0)
|
9
|
+
highline (>= 1.6.15)
|
10
|
+
nokogiri (>= 1.5.10)
|
11
|
+
psych (~> 2.2)
|
7
12
|
rake
|
8
13
|
rdoc
|
14
|
+
semver2
|
9
15
|
|
10
16
|
GEM
|
11
|
-
remote:
|
12
|
-
remote: http://gems.github.com/
|
17
|
+
remote: https://rubygems.org/
|
13
18
|
specs:
|
14
|
-
activesupport (2.
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
+
activesupport (3.2.22.5)
|
20
|
+
i18n (~> 0.6, >= 0.6.4)
|
21
|
+
multi_json (~> 1.0)
|
22
|
+
addressable (2.4.0)
|
23
|
+
bluecloth (2.2.0)
|
24
|
+
builder (3.2.3)
|
25
|
+
coveralls (0.8.21)
|
26
|
+
json (>= 1.8, < 3)
|
27
|
+
simplecov (~> 0.14.1)
|
28
|
+
term-ansicolor (~> 1.3)
|
29
|
+
thor (~> 0.19.4)
|
30
|
+
tins (~> 1.6)
|
31
|
+
cucumber (2.4.0)
|
19
32
|
builder (>= 2.1.2)
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
33
|
+
cucumber-core (~> 1.5.0)
|
34
|
+
cucumber-wire (~> 0.0.1)
|
35
|
+
diff-lcs (>= 1.1.3)
|
36
|
+
gherkin (~> 4.0)
|
37
|
+
multi_json (>= 1.7.5, < 2.0)
|
38
|
+
multi_test (>= 0.1.2)
|
39
|
+
cucumber-core (1.5.0)
|
40
|
+
gherkin (~> 4.0)
|
41
|
+
cucumber-wire (0.0.1)
|
42
|
+
descendants_tracker (0.0.4)
|
43
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
44
|
+
diff-lcs (1.3)
|
45
|
+
docile (1.1.5)
|
46
|
+
faraday (0.9.2)
|
47
|
+
multipart-post (>= 1.2, < 3)
|
48
|
+
gherkin (4.1.3)
|
49
|
+
git (1.3.0)
|
50
|
+
github_api (0.16.0)
|
51
|
+
addressable (~> 2.4.0)
|
52
|
+
descendants_tracker (~> 0.0.4)
|
53
|
+
faraday (~> 0.8, < 0.10)
|
54
|
+
hashie (>= 3.4)
|
55
|
+
mime-types (>= 1.16, < 3.0)
|
56
|
+
oauth2 (~> 1.0)
|
57
|
+
hashie (3.5.5)
|
58
|
+
highline (1.7.8)
|
59
|
+
i18n (0.8.4)
|
60
|
+
json (2.1.0)
|
61
|
+
jwt (1.5.6)
|
62
|
+
metaclass (0.0.4)
|
31
63
|
mhennemeyer-output_catcher (1.0.1)
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
64
|
+
mime-types (2.99.3)
|
65
|
+
mini_portile2 (2.2.0)
|
66
|
+
mocha (1.2.1)
|
67
|
+
metaclass (~> 0.0.1)
|
68
|
+
multi_json (1.12.1)
|
69
|
+
multi_test (0.1.2)
|
70
|
+
multi_xml (0.6.0)
|
71
|
+
multipart-post (2.0.0)
|
72
|
+
nokogiri (1.8.0)
|
73
|
+
mini_portile2 (~> 2.2.0)
|
74
|
+
oauth2 (1.4.0)
|
75
|
+
faraday (>= 0.8, < 0.13)
|
76
|
+
jwt (~> 1.0)
|
77
|
+
multi_json (~> 1.3)
|
78
|
+
multi_xml (~> 0.5)
|
79
|
+
rack (>= 1.2, < 3)
|
80
|
+
power_assert (1.0.2)
|
81
|
+
psych (2.2.4)
|
82
|
+
rack (2.0.3)
|
83
|
+
rake (12.0.0)
|
84
|
+
rdoc (5.1.0)
|
39
85
|
redgreen (1.2.2)
|
40
|
-
rr (1.0
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
shoulda (2.
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
86
|
+
rr (1.2.0)
|
87
|
+
semver2 (3.4.2)
|
88
|
+
shoulda (3.5.0)
|
89
|
+
shoulda-context (~> 1.0, >= 1.0.1)
|
90
|
+
shoulda-matchers (>= 1.4.1, < 3.0)
|
91
|
+
shoulda-context (1.2.2)
|
92
|
+
shoulda-matchers (2.8.0)
|
93
|
+
activesupport (>= 3.0.0)
|
94
|
+
simplecov (0.14.1)
|
95
|
+
docile (~> 1.1.0)
|
96
|
+
json (>= 1.8, < 3)
|
97
|
+
simplecov-html (~> 0.10.0)
|
98
|
+
simplecov-html (0.10.1)
|
99
|
+
term-ansicolor (1.6.0)
|
100
|
+
tins (~> 1.0)
|
101
|
+
test-unit (3.2.4)
|
102
|
+
power_assert
|
103
|
+
test-unit-rr (1.0.5)
|
104
|
+
rr (>= 1.1.1)
|
105
|
+
test-unit (>= 2.5.2)
|
106
|
+
test_construct (2.0.1)
|
107
|
+
thor (0.19.4)
|
108
|
+
thread_safe (0.3.6)
|
109
|
+
timecop (0.9.0)
|
110
|
+
tins (1.14.0)
|
111
|
+
yard (0.9.9)
|
51
112
|
|
52
113
|
PLATFORMS
|
53
114
|
ruby
|
54
115
|
|
55
116
|
DEPENDENCIES
|
56
|
-
activesupport (~> 2.
|
117
|
+
activesupport (~> 3.2.16)
|
57
118
|
bluecloth
|
58
|
-
|
59
|
-
|
119
|
+
builder
|
120
|
+
bundler (>= 1)
|
121
|
+
coveralls
|
122
|
+
cucumber (>= 1.1.4)
|
60
123
|
git (>= 1.2.5)
|
124
|
+
github_api (~> 0.16.0)
|
125
|
+
highline (>= 1.6.15)
|
61
126
|
jeweler!
|
62
127
|
mhennemeyer-output_catcher
|
63
128
|
mocha
|
129
|
+
nokogiri (>= 1.5.10)
|
130
|
+
psych (~> 2.2)
|
64
131
|
rake
|
65
|
-
rcov
|
66
132
|
rdoc
|
67
133
|
redgreen
|
68
|
-
|
69
|
-
ruby-debug
|
134
|
+
semver2
|
70
135
|
shoulda
|
71
|
-
|
136
|
+
simplecov
|
137
|
+
test-unit
|
138
|
+
test-unit-rr
|
139
|
+
test_construct
|
72
140
|
timecop
|
73
|
-
yard (
|
141
|
+
yard (>= 0.8.5)
|
142
|
+
|
143
|
+
BUNDLED WITH
|
144
|
+
1.14.6
|
data/README.markdown
CHANGED
@@ -1,15 +1,27 @@
|
|
1
|
+
*Jeweler maintenance has now shifted to Fred Mitchell*. I am now maintaining both Jeweler and its fork, juwelier. I will keep Jeweler at least functional with the latest Ruby releases, but put new features in Juwelier. Your input on this is more than welcome.
|
2
|
+
|
1
3
|
# Jeweler: Craft the perfect RubyGem
|
2
4
|
|
5
|
+
[![Join the chat at https://gitter.im/technicalpickles/jeweler](https://badges.gitter.im/technicalpickles/jeweler.svg)](https://gitter.im/technicalpickles/jeweler?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
6
|
+
|
3
7
|
Jeweler provides the noble ruby developer with two primary features:
|
4
8
|
|
5
9
|
* a library for managing and releasing RubyGem projects
|
6
10
|
* a scaffold generator for starting new RubyGem projects
|
7
11
|
|
8
|
-
[
|
12
|
+
PLEASE NOTE that if you are starting afresh, please use the successor [Juwelier](https://github.com/flajann2/juwelier)
|
13
|
+
I (Fred Mitchell, flajann2) will be maintaining both Jeweler and Juwelier, but will be adding new features to
|
14
|
+
Juwelier, and eventually "merge" this one into Juwelier after some namespace issues
|
15
|
+
are dealt with.
|
16
|
+
|
17
|
+
[![Build Status](https://travis-ci.org/technicalpickles/jeweler.png)](https://travis-ci.org/technicalpickles/jeweler)
|
18
|
+
[![Coverage Status](https://coveralls.io/repos/technicalpickles/jeweler/badge.png)](https://coveralls.io/r/technicalpickles/jeweler)
|
19
|
+
[![Dependency Status](https://www.versioneye.com/ruby/jeweler/2.0.0/badge.png)](https://www.versioneye.com/ruby/jeweler/2.0.0)
|
20
|
+
[![Code Climate](https://codeclimate.com/github/technicalpickles/jeweler/badges/gpa.svg)](https://codeclimate.com/github/technicalpickles/jeweler)
|
9
21
|
|
10
22
|
## Hello, world
|
11
23
|
|
12
|
-
Use RubyGems to install the heck out of jeweler to get started:
|
24
|
+
Use RubyGems to install the heck out of jeweler to get started:
|
13
25
|
|
14
26
|
$ gem install jeweler
|
15
27
|
|
@@ -55,7 +67,7 @@ The `install` rake task builds the gem and `gem install`s it. You're all set if
|
|
55
67
|
|
56
68
|
### Releasing
|
57
69
|
|
58
|
-
At last, it's time to [ship it](http://
|
70
|
+
At last, it's time to [ship it](http://shipitsquirrel.github.com/)! Make sure you have everything committed and pushed, then go wild:
|
59
71
|
|
60
72
|
$ rake release
|
61
73
|
|
@@ -65,6 +77,19 @@ This will automatically:
|
|
65
77
|
* Use `git` to tag `v0.1.0` and push it
|
66
78
|
* Build `hello-gem-0.1.0.gem` and push it to [rubygems.org](http://rubygems.org/gems/)
|
67
79
|
|
80
|
+
`rake release` accepts REMOTE(default: `origin`), LOCAL_BRANCH(default: `master`), REMOTE_BRANCH(default: `master`) and BRANCH(default: master)as options.
|
81
|
+
|
82
|
+
$ rake release REMOTE=upstream LOCAL_BRANCH=critical-security-fix REMOTE_BRANCH=v3
|
83
|
+
|
84
|
+
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
|
85
|
+
on `upstream`) and release the gem.
|
86
|
+
|
87
|
+
$ rake release BRANCH=v3
|
88
|
+
|
89
|
+
If both remote and local branches are the same, use `BRANCH` option to simplify.
|
90
|
+
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
|
91
|
+
on `origin`) and release the gem.
|
92
|
+
|
68
93
|
### Version bumping
|
69
94
|
|
70
95
|
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:
|
@@ -93,7 +118,7 @@ You can customize your gem by updating your `Rakefile`. With a newly generated p
|
|
93
118
|
|
94
119
|
require 'jeweler'
|
95
120
|
Jeweler::Tasks.new do |gem|
|
96
|
-
# gem is a Gem::Specification... see http://
|
121
|
+
# gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
|
97
122
|
gem.name = "whatwhatwhat"
|
98
123
|
gem.summary = %Q{TODO: one-line summary of your gem}
|
99
124
|
gem.description = %Q{TODO: longer description of your gem}
|
@@ -103,13 +128,13 @@ You can customize your gem by updating your `Rakefile`. With a newly generated p
|
|
103
128
|
end
|
104
129
|
Jeweler::RubygemsDotOrgTasks.new
|
105
130
|
|
106
|
-
It's crucial to understand the `gem` object is just a Gem::Specification. You can read up about it at [
|
131
|
+
It's crucial to understand the `gem` object is just a Gem::Specification. You can read up about it at [guides.rubygems.org/specification-reference](http://guides.rubygems.org/specification-reference/). This is the most basic way of specifying a gem, Jeweler-managed or not. Jeweler just exposes this to you, in addition to providing some reasonable defaults, which we'll explore now.
|
107
132
|
|
108
133
|
### Project information
|
109
134
|
|
110
135
|
gem.name = "whatwhatwhat"
|
111
136
|
|
112
|
-
Every gem has a name. Among other things, the gem name is how you are able to `gem install` it. [Reference](http://
|
137
|
+
Every gem has a name. Among other things, the gem name is how you are able to `gem install` it. [Reference](http://guides.rubygems.org/specification-reference/#name)
|
113
138
|
|
114
139
|
gem.summary = %Q{TODO: one-line summary of your gem}
|
115
140
|
|
@@ -146,7 +171,7 @@ If that's not enough, you can just set `gem.files` outright
|
|
146
171
|
|
147
172
|
### Dependencies
|
148
173
|
|
149
|
-
Dependencies let you define other gems that your gem needs to function. `gem install your-gem` will install your-gem's dependencies along with it, and when you use your-gem in an application, the dependencies will be made available. Use `gem.add_dependency` to register them. [Reference](http://
|
174
|
+
Dependencies let you define other gems that your gem needs to function. `gem install your-gem` will install your-gem's dependencies along with it, and when you use your-gem in an application, the dependencies will be made available. Use `gem.add_dependency` to register them. [Reference](http://guides.rubygems.org/specification-reference/#add_development_dependency)
|
150
175
|
|
151
176
|
gem.add_dependency 'nokogiri'
|
152
177
|
|
@@ -184,7 +209,7 @@ A common pattern is to have this in a version constant in your library. This is
|
|
184
209
|
MINOR = 2
|
185
210
|
PATCH = 3
|
186
211
|
BUILD = 'pre3'
|
187
|
-
|
212
|
+
|
188
213
|
STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
|
189
214
|
end
|
190
215
|
end
|
@@ -202,7 +227,7 @@ A common pattern is to have this in a version constant in your library. This is
|
|
202
227
|
Jeweler lives inside of Rake. As a result, they are dear friends. But, that friendship doesn't interfere with typical Rake operations.
|
203
228
|
|
204
229
|
That means you can define your own namespaces, tasks, or use third party Rake libraries without cause for concern.
|
205
|
-
|
230
|
+
|
206
231
|
## Contributing to Jeweler
|
207
232
|
|
208
233
|
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
@@ -216,4 +241,5 @@ That means you can define your own namespaces, tasks, or use third party Rake li
|
|
216
241
|
|
217
242
|
## Copyright
|
218
243
|
|
219
|
-
Copyright (c) 2008-2010 Josh Nichols.
|
244
|
+
Copyright (c) 2008-2010 Josh Nichols.
|
245
|
+
Copyright (c) 2016 Fred Mitchell. See LICENSE for details.
|