Skip to content

Commit b82f049

Browse files
committedSep 11, 2016
Moved mongoid-slug to the Mongoid organization.
1 parent 5f1bc08 commit b82f049

File tree

5 files changed

+41
-40
lines changed

5 files changed

+41
-40
lines changed
 

‎CHANGELOG.md

+28-27
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,45 @@
11
## 5.3.0 (Next)
22

3-
* [#166](https://github.com/digitalplaywright/mongoid-slug/issues/166): Configure slug builder globally - [@anujaware](https://github.com/anujaware).
4-
* [#209](https://github.com/digitalplaywright/mongoid-slug/issues/209): Prefixed internal `Mongoid::Slug` class attributes with `slug_` to avoid conflicts - [@dblock](https://github.com/dblock).
5-
* [#217](https://github.com/digitalplaywright/mongoid-slug/issues/217): Fixed `mongoid_slug:set` rake task for Mongoid 6 - [@dblock](https://github.com/dblock).
6-
* [#219](https://github.com/digitalplaywright/mongoid-slug/pull/219): Mongoid HEAD and Rails 5.0.0.rc1 support - [@Fudoshiki](https://github.com/Fudoshiki).
7-
* [#224](https://github.com/digitalplaywright/mongoid-slug/pull/224): Use Danger, PR linter - [@dblock](https://github.com/dblock).
8-
* [#222](https://github.com/digitalplaywright/mongoid-slug/pull/225): Fix: `Mongo::Error::OperationFailure: E11000 duplicate key error index` error with blank slugs, default `_slugs` to `nil` instead of `[]` - [@dblock](https://github.com/dblock).
9-
* [#172](https://github.com/digitalplaywright/mongoid-slug/pull/172): Improved handling of unique and sparse index constraints - [@johnnyshields](https://github.com/johnnyshields).
3+
* [#228](https://github.com/mongoid/mongoid-slug/pull/228): Moved to the [mongoid](http://mongoid.github.io) organization - [@dblock](https://github.com/dblock), [@digitalplaywright](https://github.com/digitalplaywright).
4+
* [#166](https://github.com/mongoid/mongoid-slug/issues/166): Configure slug builder globally - [@anujaware](https://github.com/anujaware).
5+
* [#209](https://github.com/mongoid/mongoid-slug/issues/209): Prefixed internal `Mongoid::Slug` class attributes with `slug_` to avoid conflicts - [@dblock](https://github.com/dblock).
6+
* [#217](https://github.com/mongoid/mongoid-slug/issues/217): Fixed `mongoid_slug:set` rake task for Mongoid 6 - [@dblock](https://github.com/dblock).
7+
* [#219](https://github.com/mongoid/mongoid-slug/pull/219): Mongoid HEAD and Rails 5.0.0.rc1 support - [@Fudoshiki](https://github.com/Fudoshiki).
8+
* [#224](https://github.com/mongoid/mongoid-slug/pull/224): Use Danger, PR linter - [@dblock](https://github.com/dblock).
9+
* [#222](https://github.com/mongoid/mongoid-slug/pull/225): Fix: `Mongo::Error::OperationFailure: E11000 duplicate key error index` error with blank slugs, default `_slugs` to `nil` instead of `[]` - [@dblock](https://github.com/dblock).
10+
* [#172](https://github.com/mongoid/mongoid-slug/pull/172): Improved handling of unique and sparse index constraints - [@johnnyshields](https://github.com/johnnyshields).
1011
* Your contribution here.
1112

1213
## 5.2.0 (2016/01/03)
1314

14-
* [#204](https://github.com/digitalplaywright/mongoid-slug/pull/204): The text portion of the slug is now truncated at `Mongoid::Slug::MONGO_INDEX_KEY_LIMIT_BYTES - 32` bytes by default and can be set via `max_length` - [@dblock](https://github.com/dblock).
15-
* [#177](https://github.com/digitalplaywright/mongoid-slug/issues/177): Added `mongoid_slug:set` rake task to set slug for legacy data - [@anuja-joshi](https://github.com/anuja-joshi).
15+
* [#204](https://github.com/mongoid/mongoid-slug/pull/204): The text portion of the slug is now truncated at `Mongoid::Slug::MONGO_INDEX_KEY_LIMIT_BYTES - 32` bytes by default and can be set via `max_length` - [@dblock](https://github.com/dblock).
16+
* [#177](https://github.com/mongoid/mongoid-slug/issues/177): Added `mongoid_slug:set` rake task to set slug for legacy data - [@anuja-joshi](https://github.com/anuja-joshi).
1617

1718
## 5.1.1
1819

19-
* [#197](https://github.com/digitalplaywright/mongoid-slug/pull/197): Compatibility with Mongoid 5.0.1, fix [MONGOID-4177](https://jira.mongodb.org/browse/MONGOID-4177) - [@dblock](https://github.com/dblock).
20+
* [#197](https://github.com/mongoid/mongoid-slug/pull/197): Compatibility with Mongoid 5.0.1, fix [MONGOID-4177](https://jira.mongodb.org/browse/MONGOID-4177) - [@dblock](https://github.com/dblock).
2021

2122
## 5.1.0
2223

23-
* [#194](https://github.com/digitalplaywright/mongoid-slug/issues/194): Fixed compatibility with Mongoid::Observer - [@dblock](https://github.com/dblock).
24+
* [#194](https://github.com/mongoid/mongoid-slug/issues/194): Fixed compatibility with Mongoid::Observer - [@dblock](https://github.com/dblock).
2425

2526
## 5.0.0
2627

27-
* [#187](https://github.com/digitalplaywright/mongoid-slug/pull/187): Mongoid 5 support - [@dblock](https://github.com/dblock).
28-
* [#188](https://github.com/digitalplaywright/mongoid-slug/pull/188): Removed deprecated name, _mongoid_slug_ - [@dblock](https://github.com/dblock).
29-
* [#189](https://github.com/digitalplaywright/mongoid-slug/pull/189): Implemented RuboCop - [@dblock](https://github.com/dblock).
28+
* [#187](https://github.com/mongoid/mongoid-slug/pull/187): Mongoid 5 support - [@dblock](https://github.com/dblock).
29+
* [#188](https://github.com/mongoid/mongoid-slug/pull/188): Removed deprecated name, _mongoid_slug_ - [@dblock](https://github.com/dblock).
30+
* [#189](https://github.com/mongoid/mongoid-slug/pull/189): Implemented RuboCop - [@dblock](https://github.com/dblock).
3031

3132
## 4.0.0
3233

33-
* [#179](https://github.com/digitalplaywright/mongoid-slug/pull/179): Renamed gem to mongoid-slug - [@nofxx](https://github.com/nofxx).
34-
* [#168](https://github.com/digitalplaywright/mongoid-slug/pull/168): Finding a unique slug is now threadsafe - [@jaxesn](https://github.com/jaxesn).
35-
* [#165](https://github.com/digitalplaywright/mongoid-slug/pull/165): Fixed compatibility with Mongoid::Paranoia - [@johnnyshields](https://github.com/johnnyshields).
34+
* [#179](https://github.com/mongoid/mongoid-slug/pull/179): Renamed gem to mongoid-slug - [@nofxx](https://github.com/nofxx).
35+
* [#168](https://github.com/mongoid/mongoid-slug/pull/168): Finding a unique slug is now threadsafe - [@jaxesn](https://github.com/jaxesn).
36+
* [#165](https://github.com/mongoid/mongoid-slug/pull/165): Fixed compatibility with Mongoid::Paranoia - [@johnnyshields](https://github.com/johnnyshields).
3637

3738
## 3.2.2
3839

3940
## Bugfixes
4041

41-
* [#163](https://github.com/digitalplaywright/mongoid-slug/pull/163): Avoid scope error in tests - [@johnnyshields](https://github.com/johnnyshields).
42+
* [#163](https://github.com/mongoid/mongoid-slug/pull/163): Avoid scope error in tests - [@johnnyshields](https://github.com/johnnyshields).
4243
* Require activesupport dependencies to fix error in test on ruby 1.9.3 and Mongoid 4 - [@digitalplaywright](https://github.com/digitalplaywright).
4344

4445
## 3.2.1
@@ -79,7 +80,7 @@
7980

8081
### Bugfixes
8182

82-
* [#121](https://github.com/digitalplaywright/mongoid-slug/issues/121), [#122](https://github.com/digitalplaywright/mongoid-slug/issues/122): Do not generate empty slug - [@digitalplaywright](https://github.com/digitalplaywright).
83+
* [#121](https://github.com/mongoid/mongoid-slug/issues/121), [#122](https://github.com/mongoid/mongoid-slug/issues/122): Do not generate empty slug - [@digitalplaywright](https://github.com/digitalplaywright).
8384

8485
## 3.1.0
8586

@@ -137,7 +138,7 @@
137138

138139
### Minor Changes
139140

140-
* [#76](https://github.com/digitalplaywright/mongoid-slug/pull/76): Cleanup of callback handling - [@empact](https://github.com/empact).
141+
* [#76](https://github.com/mongoid/mongoid-slug/pull/76): Cleanup of callback handling - [@empact](https://github.com/empact).
141142

142143
### Major Changes (Backwards Incompatible)
143144

@@ -168,7 +169,7 @@
168169

169170
## 0.9.0
170171

171-
* [#43](https://github.com/digitalplaywright/mongoid-slug/pull/43): Allowed overriding of slug at model creation time - [@bdmac](https://github.com/bdmac).
172+
* [#43](https://github.com/mongoid/mongoid-slug/pull/43): Allowed overriding of slug at model creation time - [@bdmac](https://github.com/bdmac).
172173

173174
## 0.8.3
174175

@@ -180,32 +181,32 @@
180181

181182
## 0.8.1
182183

183-
* [#27](https://github.com/digitalplaywright/mongoid-slug/pull/27): No longer necessary to require library in Gemfile - [@etehtsea](https://github.com/etehtsea).
184+
* [#27](https://github.com/mongoid/mongoid-slug/pull/27): No longer necessary to require library in Gemfile - [@etehtsea](https://github.com/etehtsea).
184185

185186
## 0.8.0
186187

187-
* [#23](https://github.com/digitalplaywright/mongoid-slug/pull/23): Fix edbug concerning slugs with double-digit counters - [@jbredeche](https://github.com/jbredeche).
188+
* [#23](https://github.com/mongoid/mongoid-slug/pull/23): Fix edbug concerning slugs with double-digit counters - [@jbredeche](https://github.com/jbredeche).
188189
* Removed #slug!. The method is of limited value - [@digitalplaywright](https://github.com/digitalplaywright).
189190

190191
## 0.7.2
191192

192-
* [#21](https://github.com/digitalplaywright/mongoid-slug/pull/21): Added `#find_by_slug!` - [@ajsharp](https://github.com/ajsharp).
193+
* [#21](https://github.com/mongoid/mongoid-slug/pull/21): Added `#find_by_slug!` - [@ajsharp](https://github.com/ajsharp).
193194

194195
## 0.7.1
195196

196-
* [#16](https://github.com/digitalplaywright/mongoid-slug/pull/16): Library no longers hit database multiple times to find unique slug when duplicates exist - [@tiendung](https://github.com/tiendung).
197+
* [#16](https://github.com/mongoid/mongoid-slug/pull/16): Library no longers hit database multiple times to find unique slug when duplicates exist - [@tiendung](https://github.com/tiendung).
197198

198199
## 0.7.0
199200

200201
* Slug now can be given an optional block to build a custom slug out of the specified fields - [@digitalplaywright](https://github.com/digitalplaywright).
201202

202203
## 0.6.4
203204

204-
* [#10](https://github.com/digitalplaywright/mongoid-slug/pull/10): Added :any option to use first present field when multiple fields are slugged - [@iamnader](https://github.com/iamnader).
205+
* [#10](https://github.com/mongoid/mongoid-slug/pull/10): Added :any option to use first present field when multiple fields are slugged - [@iamnader](https://github.com/iamnader).
205206

206207
## 0.6.3
207208

208-
* [#13](https://github.com/digitalplaywright/mongoid-slug/pull/13): Mongoid no longer requires that emmbedded_in pass `:inverse_of` option - [@sporkd](https://github.com/sporkd).
209+
* [#13](https://github.com/mongoid/mongoid-slug/pull/13): Mongoid no longer requires that emmbedded_in pass `:inverse_of` option - [@sporkd](https://github.com/sporkd).
209210

210211
## 0.6.2
211212

‎CONTRIBUTING.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
Contributing to Mongoid-Slug
22
============================
33

4-
Mongoid-slug is work of [many of contributors](https://github.com/digitalplaywright/mongoid-slug/graphs/contributors). You're encouraged to submit [pull requests](https://github.com/digitalplaywright/mongoid-slug/pulls), [propose features, ask questions and discuss issues](https://github.com/digitalplaywright/mongoid-slug/issues).
4+
Mongoid-slug is work of [many of contributors](https://github.com/mongoid/mongoid-slug/graphs/contributors). You're encouraged to submit [pull requests](https://github.com/mongoid/mongoid-slug/pulls), [propose features, ask questions and discuss issues](https://github.com/mongoid/mongoid-slug/issues).
55

66
#### Fork the Project
77

8-
Fork the [project on Github](https://github.com/digitalplaywright/mongoid-slug) and check out your copy.
8+
Fork the [project on Github](https://github.com/mongoid/mongoid-slug) and check out your copy.
99

1010
```
1111
git clone https://github.com/contributor/mongoid-slug.git
1212
cd mongoid-slug
13-
git remote add upstream https://github.com/digitalplaywright/mongoid-slug.git
13+
git remote add upstream https://github.com/mongoid/mongoid-slug.git
1414
```
1515

1616
#### Create a Topic Branch
@@ -95,7 +95,7 @@ git push origin my-feature-branch -f
9595
Update the [CHANGELOG](CHANGELOG.md) with the pull request number. A typical entry looks as follows.
9696

9797
```
98-
* [#123](https://github.com/digitalplaywright/mongoid-slug/pull/123): Reticulated splines - [@contributor](https://github.com/contributor).
98+
* [#123](https://github.com/mongoid/mongoid-slug/pull/123): Reticulated splines - [@contributor](https://github.com/contributor).
9999
```
100100

101101
Amend your previous commit and force push the changes.

‎README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ Mongoid Slug
33

44
Mongoid Slug generates a URL slug or permalink based on one or more fields in a Mongoid model. It sits idly on top of [stringex](https://github.com/rsl/stringex), supporting non-Latin characters.
55

6-
[![Build Status](https://secure.travis-ci.org/digitalplaywright/mongoid-slug.svg)](http://travis-ci.org/digitalplaywright/mongoid-slug)
6+
[![Build Status](https://secure.travis-ci.org/mongoid/mongoid-slug.svg)](http://travis-ci.org/mongoid/mongoid-slug)
77
[![Gem Version](https://badge.fury.io/rb/mongoid-slug.svg)](http://badge.fury.io/rb/mongoid-slug)
8-
[![Dependency Status](https://gemnasium.com/digitalplaywright/mongoid-slug.svg)](https://gemnasium.com/digitalplaywright/mongoid-slug)
9-
[![Code Climate](https://codeclimate.com/github/digitalplaywright/mongoid-slug.svg)](https://codeclimate.com/github/digitalplaywright/mongoid-slug)
8+
[![Dependency Status](https://gemnasium.com/mongoid/mongoid-slug.svg)](https://gemnasium.com/mongoid/mongoid-slug)
9+
[![Code Climate](https://codeclimate.com/github/mongoid/mongoid-slug.svg)](https://codeclimate.com/github/mongoid/mongoid-slug)
1010

1111
### Installation
1212

@@ -352,7 +352,7 @@ The following variants of Mongoid Paranoia are officially supported:
352352
Contributing
353353
------------
354354

355-
Mongoid-slug is work of [many of contributors](https://github.com/digitalplaywright/mongoid-slug/graphs/contributors). You're encouraged to submit [pull requests](https://github.com/digitalplaywright/mongoid-slug/pulls), [propose features, ask questions and discuss issues](https://github.com/digitalplaywright/mongoid-slug/issues). See [CONTRIBUTING](CONTRIBUTING.md) for details.
355+
Mongoid-slug is work of [many of contributors](https://github.com/mongoid/mongoid-slug/graphs/contributors). You're encouraged to submit [pull requests](https://github.com/mongoid/mongoid-slug/pulls), [propose features, ask questions and discuss issues](https://github.com/mongoid/mongoid-slug/issues). See [CONTRIBUTING](CONTRIBUTING.md) for details.
356356

357357
Copyright & License
358358
-------------------

‎UPGRADING.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@ Klass.where(_slugs: []).unset(:_slugs)
1111
Klass.where(_slugs: nil).unset(:_slugs)
1212
```
1313

14-
See [#225](https://github.com/digitalplaywright/mongoid-slug/pull/225) for more information.
14+
See [#225](https://github.com/mongoid/mongoid-slug/pull/225) for more information.
1515

1616
#### Changes in unique index definitions
1717

1818
The `:sparse` option on the `_slugs` index is now set in all cases. The `:unique` option is set except in an edge case with Paranoid documents.
1919

20-
See [#172](https://github.com/digitalplaywright/mongoid-slug/pull/172) and [#227](https://github.com/digitalplaywright/mongoid-slug/pull/227) for more information.
20+
See [#172](https://github.com/mongoid/mongoid-slug/pull/172) and [#227](https://github.com/mongoid/mongoid-slug/pull/227) for more information.
2121

2222
### Upgrading to 5.2.0
2323

2424
MongoDB has a default limit around 1KB to the size of the index keys and will raise error 17280, `key too large to index` when trying to create a record that causes an index key to exceed that limit. MongoDB 2.4 did not enforce this limit (see [mongodb#SERVER-5290](https://jira.mongodb.org/browse/SERVER-5290)). MongoDB 2.6 corrected this. Slugs of the form `text[-number]` and the text portion is limited in size to `Mongoid::Slug::MONGO_INDEX_KEY_LIMIT_BYTES - 32` bytes since mongoid-slug 5.2. To restore old behavior, change the constant in your code or set the limit for each model to `nil`. This can be useful when running MongoDB with [failIndexKeyTooLong](https://docs.mongodb.org/manual/reference/parameters/#param.failIndexKeyTooLong) set to `false`, however be advised that MongoDB will make those documents impossible to find when the index is used. Note that setting this limit for exsiting data has no effect on such data.
2525

26-
See [mongoid-slug#204](https://github.com/digitalplaywright/mongoid-slug/pull/204) for more information.
26+
See [mongoid-slug#204](https://github.com/mongoid/mongoid-slug/pull/204) for more information.
2727

2828
### Deprecated Gem Name
2929

3030
The underscored gem name, _mongoid_slug_, has been deprecated. Use the hyphenated version, _mongoid-slug_.
3131

3232
### Upgrading to 1.0.0
3333

34-
If you are upgrading to Mongoid Slug 1.0.0 please migrate in accordance with the instructions in https://github.com/digitalplaywright/mongoid-slug/wiki/How-to-upgrade-to-1.0.0-or-newer. Mongoid Slug 1.0.0 stores the slugs in a single field _slugs of array type, and all previous slugs must be migrated.
34+
If you are upgrading to Mongoid Slug 1.0.0 please migrate in accordance with the instructions in https://github.com/mongoid/mongoid-slug/wiki/How-to-upgrade-to-1.0.0-or-newer. Mongoid Slug 1.0.0 stores the slugs in a single field _slugs of array type, and all previous slugs must be migrated.

‎mongoid-slug.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
88
s.platform = Gem::Platform::RUBY
99
s.authors = ['Andreas Saebjoernsen']
1010
s.email = ['andy@cosemble.com']
11-
s.homepage = 'https://github.com/digitalplaywright/mongoid-slug'
11+
s.homepage = 'https://github.com/mongoid/mongoid-slug'
1212
s.summary = 'Mongoid URL slugs'
1313
s.description = 'Mongoid URL slug or permalink generator'
1414
s.license = 'MIT'

0 commit comments

Comments
 (0)