Skip to content

Commit d27c084

Browse files
committed
Merge pull request #219 from ruby-ldap/release-v0.12
Release v0.12
2 parents 406ca3a + 777438d commit d27c084

File tree

4 files changed

+65
-4
lines changed

4 files changed

+65
-4
lines changed

History.rdoc

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
=== Net::LDAP 0.12.0
2+
3+
* Correctly set BerIdentifiedString values to UTF-8 {#212}[https://github.com/ruby-ldap/ruby-net-ldap/pull/212]
4+
* Raise Net::LDAP::ConnectionRefusedError when new connection is refused. {#213}[https://github.com/ruby-ldap/ruby-net-ldap/pull/213]
5+
* obscure auth password upon #inspect, added test, closes #216 {#217}[https://github.com/ruby-ldap/ruby-net-ldap/pull/217]
6+
* Fixing incorrect error class name {#207}[https://github.com/ruby-ldap/ruby-net-ldap/pull/207]
7+
* Travis update {#205}[https://github.com/ruby-ldap/ruby-net-ldap/pull/205]
8+
* Remove obsolete rbx-19mode from Travis {#204}[https://github.com/ruby-ldap/ruby-net-ldap/pull/204]
9+
* mv "sudo" from script/install-openldap to .travis.yml {#199}[https://github.com/ruby-ldap/ruby-net-ldap/pull/199]
10+
* Remove meaningless shebang {#200}[https://github.com/ruby-ldap/ruby-net-ldap/pull/200]
11+
* Fix Travis CI build {#202}[https://github.com/ruby-ldap/ruby-net-ldap/pull/202]
12+
* README.rdoc: fix travis link {#195}[https://github.com/ruby-ldap/ruby-net-ldap/pull/195]
13+
114
=== Net::LDAP 0.11
215
* Major enhancements:
316
* #183 Specific errors subclassing Net::LDAP::Error

README.rdoc

+4-3
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,11 @@ To run the integration tests against an LDAP server:
6363

6464
This section is for gem maintainers to cut a new version of the gem.
6565

66+
* Check out a new branch `release-VERSION`
6667
* Update lib/net/ldap/version.rb to next version number X.X.X following {semver}(http://semver.org/).
67-
* Update `History.rdoc`. Get latest changes with `git log --oneline vLAST_RELEASE..HEAD | grep Merge`
68-
69-
* On the master branch, run `script/release`
68+
* Update `History.rdoc`. Get latest changes with `script/changelog`
69+
* Open a pull request with these changes for review
70+
* After merging, on the master branch, run `script/release`
7071

7172
:include: Contributors.rdoc
7273

lib/net/ldap/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Net
22
class LDAP
3-
VERSION = "0.11"
3+
VERSION = "0.12.0"
44
end
55
end

script/changelog

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#!/bin/bash
2+
# Usage: script/changelog [-r <repo>] [-b <base>] [-h <head>]
3+
#
4+
# repo: BASE string of GitHub REPOsitory url. e.g. "user_or_org/REPOsitory". Defaults to git remote url.
5+
# base: git ref to compare from. e.g. "v1.3.1". Defaults to latest git tag.
6+
# head: git ref to compare to. Defaults to "HEAD".
7+
#
8+
# Generate a changelog preview from pull requests merged between `base` and
9+
# `head`.
10+
#
11+
# https://github.com/jch/release-scripts/blob/master/changelog
12+
set -e
13+
14+
[ $# -eq 0 ] && set -- --help
15+
while [[ $# > 1 ]]
16+
do
17+
key="$1"
18+
case $key in
19+
-r|--repo)
20+
repo="$2"
21+
shift
22+
;;
23+
-b|--base)
24+
base="$2"
25+
shift
26+
;;
27+
-h|--head)
28+
head="$2"
29+
shift
30+
;;
31+
*)
32+
;;
33+
esac
34+
shift
35+
done
36+
37+
repo="${repo:-$(git remote -v | grep push | awk '{print $2}' | cut -d'/' -f4- | sed 's/\.git//')}"
38+
base="${base:-$(git tag -l | sort -t. -k 1,1n -k 2,2n -k 3,3n | tail -n 1)}"
39+
head="${head:-HEAD}"
40+
api_url="https://api.github.com"
41+
42+
# get merged PR's. Better way is to query the API for these, but this is easier
43+
for pr in $(git log --oneline $base..$head | grep "Merge pull request" | awk '{gsub("#",""); print $5}')
44+
do
45+
# frustrated with trying to pull out the right values, fell back to ruby
46+
curl -s "$api_url/repos/$repo/pulls/$pr" | ruby -rjson -e 'pr=JSON.parse(STDIN.read); puts "* #{pr[%q(title)]} {##{pr[%q(number)]}}[#{pr[%q(html_url)]}]"'
47+
done

0 commit comments

Comments
 (0)