Skip to content

Commit c752269

Browse files
author
Jerry Cheung
committed
Merge remote-tracking branch 'origin/master' into fix-gemspec-date
2 parents 33f3aa0 + 77e28cf commit c752269

File tree

8 files changed

+43
-127
lines changed

8 files changed

+43
-127
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ pkg/
55
doc/
66
publish/
77
Gemfile.lock
8+
.bundle
9+
bin/

Hacking.rdoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ us with a sample LDIF data file for importing into LDAP servers for testing.
5555
Net::LDAP uses several libraries during development, all of which can be
5656
installed using RubyGems.
5757

58-
* *hoe*
59-
* *hoe-git*
6058
* *flexmock*
6159

6260
== Participation

Manifest.txt

Lines changed: 0 additions & 52 deletions
This file was deleted.

README.rdoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ sources.
3737

3838
Simply require either 'net-ldap' or 'net/ldap'.
3939

40+
== Release
41+
42+
This section is for gem maintainers to cut a new version of the gem.
43+
44+
* Update lib/html/pipeline/version.rb to next version number X.X.X following {semver}(http://semver.org/).
45+
* Update CHANGELOG.md. Get latest changes with `git log --oneline vLAST_RELEASE..HEAD | grep Merge`
46+
* On the master branch, run `script/release`
47+
4048
:include: Contributors.rdoc
4149

4250
:include: License.rdoc

Rakefile

Lines changed: 8 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,13 @@
1+
#!/usr/bin/env rake
12
# -*- ruby encoding: utf-8 -*-
3+
# vim: syntax=ruby
24

3-
require "rubygems"
4-
require 'hoe'
5-
6-
Hoe.plugin :doofus
7-
Hoe.plugin :git
8-
Hoe.plugin :gemspec
9-
10-
Hoe.spec 'net-ldap' do |spec|
11-
# spec.rubyforge_name = spec.name
12-
13-
spec.developer("Francis Cianfrocca", "[email protected]")
14-
spec.developer("Emiel van de Laar", "[email protected]")
15-
spec.developer("Rory O'Connell", "[email protected]")
16-
spec.developer("Kaspar Schiess", "[email protected]")
17-
spec.developer("Austin Ziegler", "[email protected]")
18-
spec.developer("Michael Schaarschmidt", "[email protected]")
19-
20-
spec.remote_rdoc_dir = ''
21-
spec.rsync_args << ' --exclude=statsvn/'
22-
23-
spec.urls = %w(http://rubyldap.com/' 'https://github.com/ruby-ldap/ruby-net-ldap)
24-
spec.licenses = ['MIT']
25-
26-
spec.history_file = 'History.rdoc'
27-
spec.readme_file = 'README.rdoc'
28-
29-
spec.extra_rdoc_files = FileList["*.rdoc"].to_a
30-
31-
spec.extra_dev_deps << [ "hoe-git", "~> 1" ]
32-
spec.extra_dev_deps << [ "hoe-gemspec", "~> 1" ]
33-
spec.extra_dev_deps << [ "flexmock", ">= 1.3.0" ]
34-
35-
spec.clean_globs << "coverage"
36-
37-
spec.spec_extras[:required_ruby_version] = ">= 1.8.7"
38-
spec.multiruby_skip << "1.8.6"
39-
spec.multiruby_skip << "1_8_6"
40-
41-
spec.need_tar = true
42-
end
43-
44-
# I'm not quite ready to get rid of this, but I think "rake git:manifest" is
45-
# sufficient.
46-
namespace :old do
47-
desc "Build the manifest file from the current set of files."
48-
task :build_manifest do |t|
49-
require 'find'
50-
51-
paths = []
52-
Find.find(".") do |path|
53-
next if File.directory?(path)
54-
next if path =~ /\.svn/
55-
next if path =~ /\.git/
56-
next if path =~ /\.hoerc/
57-
next if path =~ /\.swp$/
58-
next if path =~ %r{coverage/}
59-
next if path =~ /~$/
60-
paths << path.sub(%r{^\./}, '')
61-
end
62-
63-
File.open("Manifest.txt", "w") do |f|
64-
f.puts paths.sort.join("\n")
65-
end
5+
require 'rake/testtask'
666

67-
puts paths.sort.join("\n")
68-
end
7+
Rake::TestTask.new do |t|
8+
t.libs << "test"
9+
t.test_files = FileList['test/**/test_*.rb']
10+
t.verbose = true
6911
end
7012

71-
desc "Run a full set of integration and unit tests"
72-
task :cruise => [:test, :spec]
73-
74-
# vim: syntax=ruby
13+
task :default => :test

net-ldap.gemspec

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ earlier versions of the IETF LDAP RFCs (2251-2256, 2829-2830, 3377, and 3771).
2020
Our roadmap for Net::LDAP 1.0 is to gain full <em>client</em> compliance with
2121
the most recent LDAP RFCs (4510-4519, plutions of 4520-4532).}
2222
23-
s.extra_rdoc_files = ["Manifest.txt", "Contributors.rdoc", "Hacking.rdoc", "History.rdoc", "License.rdoc", "README.rdoc"]
23+
s.extra_rdoc_files = ["Contributors.rdoc", "Hacking.rdoc", "History.rdoc", "License.rdoc", "README.rdoc"]
2424
s.files = `git ls-files`.split $/
2525
s.test_files = s.files.grep(%r{^test})
2626
s.homepage = %q{http://github.com/ruby-ldap/ruby-net-ldap}
@@ -29,8 +29,6 @@ the most recent LDAP RFCs (4510-4519, plutions of 4520-4532).}
2929
s.required_ruby_version = ">= 1.9.3"
3030
s.summary = %q{Net::LDAP for Ruby (also called net-ldap) implements client access for the Lightweight Directory Access Protocol (LDAP), an IETF standard protocol for accessing distributed directory services}
3131

32-
s.add_development_dependency("hoe-git", "~> 1.0")
33-
s.add_development_dependency("hoe-gemspec", "~> 1.0")
3432
s.add_development_dependency("flexmock", "~> 1.3")
35-
s.add_development_dependency("hoe", "~> 2.9")
33+
s.add_development_dependency("rake", "~> 10.0")
3634
end

script/package

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
# Usage: script/package
3+
# Updates the gemspec and builds a new gem in the pkg directory.
4+
5+
mkdir -p pkg
6+
gem build *.gemspec
7+
mv *.gem pkg

script/release

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
# Usage: script/release
3+
# Build the package, tag a commit, push it to origin, and then release the
4+
# package publicly.
5+
6+
set -e
7+
8+
version="$(script/package | grep Version: | awk '{print $2}')"
9+
[ -n "$version" ] || exit 1
10+
11+
echo $version
12+
git commit --allow-empty -a -m "Release $version"
13+
git tag "v$version"
14+
git push origin
15+
git push origin "v$version"
16+
gem push pkg/*-${version}.gem

0 commit comments

Comments
 (0)