From b82f049eba3c2384f420d3f7dba3369d49be57cf Mon Sep 17 00:00:00 2001 From: dblock Date: Sun, 11 Sep 2016 17:13:28 -0400 Subject: [PATCH] Moved mongoid-slug to the Mongoid organization. --- CHANGELOG.md | 55 ++++++++++++++++++++++---------------------- CONTRIBUTING.md | 8 +++---- README.md | 8 +++---- UPGRADING.md | 8 +++---- mongoid-slug.gemspec | 2 +- 5 files changed, 41 insertions(+), 40 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d2b6c456..dbf88779 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,44 +1,45 @@ ## 5.3.0 (Next) -* [#166](https://github.com/digitalplaywright/mongoid-slug/issues/166): Configure slug builder globally - [@anujaware](https://github.com/anujaware). -* [#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). -* [#217](https://github.com/digitalplaywright/mongoid-slug/issues/217): Fixed `mongoid_slug:set` rake task for Mongoid 6 - [@dblock](https://github.com/dblock). -* [#219](https://github.com/digitalplaywright/mongoid-slug/pull/219): Mongoid HEAD and Rails 5.0.0.rc1 support - [@Fudoshiki](https://github.com/Fudoshiki). -* [#224](https://github.com/digitalplaywright/mongoid-slug/pull/224): Use Danger, PR linter - [@dblock](https://github.com/dblock). -* [#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). -* [#172](https://github.com/digitalplaywright/mongoid-slug/pull/172): Improved handling of unique and sparse index constraints - [@johnnyshields](https://github.com/johnnyshields). +* [#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). +* [#166](https://github.com/mongoid/mongoid-slug/issues/166): Configure slug builder globally - [@anujaware](https://github.com/anujaware). +* [#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). +* [#217](https://github.com/mongoid/mongoid-slug/issues/217): Fixed `mongoid_slug:set` rake task for Mongoid 6 - [@dblock](https://github.com/dblock). +* [#219](https://github.com/mongoid/mongoid-slug/pull/219): Mongoid HEAD and Rails 5.0.0.rc1 support - [@Fudoshiki](https://github.com/Fudoshiki). +* [#224](https://github.com/mongoid/mongoid-slug/pull/224): Use Danger, PR linter - [@dblock](https://github.com/dblock). +* [#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). +* [#172](https://github.com/mongoid/mongoid-slug/pull/172): Improved handling of unique and sparse index constraints - [@johnnyshields](https://github.com/johnnyshields). * Your contribution here. ## 5.2.0 (2016/01/03) -* [#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). -* [#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). +* [#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). +* [#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). ## 5.1.1 -* [#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). +* [#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). ## 5.1.0 -* [#194](https://github.com/digitalplaywright/mongoid-slug/issues/194): Fixed compatibility with Mongoid::Observer - [@dblock](https://github.com/dblock). +* [#194](https://github.com/mongoid/mongoid-slug/issues/194): Fixed compatibility with Mongoid::Observer - [@dblock](https://github.com/dblock). ## 5.0.0 -* [#187](https://github.com/digitalplaywright/mongoid-slug/pull/187): Mongoid 5 support - [@dblock](https://github.com/dblock). -* [#188](https://github.com/digitalplaywright/mongoid-slug/pull/188): Removed deprecated name, _mongoid_slug_ - [@dblock](https://github.com/dblock). -* [#189](https://github.com/digitalplaywright/mongoid-slug/pull/189): Implemented RuboCop - [@dblock](https://github.com/dblock). +* [#187](https://github.com/mongoid/mongoid-slug/pull/187): Mongoid 5 support - [@dblock](https://github.com/dblock). +* [#188](https://github.com/mongoid/mongoid-slug/pull/188): Removed deprecated name, _mongoid_slug_ - [@dblock](https://github.com/dblock). +* [#189](https://github.com/mongoid/mongoid-slug/pull/189): Implemented RuboCop - [@dblock](https://github.com/dblock). ## 4.0.0 -* [#179](https://github.com/digitalplaywright/mongoid-slug/pull/179): Renamed gem to mongoid-slug - [@nofxx](https://github.com/nofxx). -* [#168](https://github.com/digitalplaywright/mongoid-slug/pull/168): Finding a unique slug is now threadsafe - [@jaxesn](https://github.com/jaxesn). -* [#165](https://github.com/digitalplaywright/mongoid-slug/pull/165): Fixed compatibility with Mongoid::Paranoia - [@johnnyshields](https://github.com/johnnyshields). +* [#179](https://github.com/mongoid/mongoid-slug/pull/179): Renamed gem to mongoid-slug - [@nofxx](https://github.com/nofxx). +* [#168](https://github.com/mongoid/mongoid-slug/pull/168): Finding a unique slug is now threadsafe - [@jaxesn](https://github.com/jaxesn). +* [#165](https://github.com/mongoid/mongoid-slug/pull/165): Fixed compatibility with Mongoid::Paranoia - [@johnnyshields](https://github.com/johnnyshields). ## 3.2.2 ## Bugfixes -* [#163](https://github.com/digitalplaywright/mongoid-slug/pull/163): Avoid scope error in tests - [@johnnyshields](https://github.com/johnnyshields). +* [#163](https://github.com/mongoid/mongoid-slug/pull/163): Avoid scope error in tests - [@johnnyshields](https://github.com/johnnyshields). * Require activesupport dependencies to fix error in test on ruby 1.9.3 and Mongoid 4 - [@digitalplaywright](https://github.com/digitalplaywright). ## 3.2.1 @@ -79,7 +80,7 @@ ### Bugfixes -* [#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). +* [#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). ## 3.1.0 @@ -137,7 +138,7 @@ ### Minor Changes -* [#76](https://github.com/digitalplaywright/mongoid-slug/pull/76): Cleanup of callback handling - [@empact](https://github.com/empact). +* [#76](https://github.com/mongoid/mongoid-slug/pull/76): Cleanup of callback handling - [@empact](https://github.com/empact). ### Major Changes (Backwards Incompatible) @@ -168,7 +169,7 @@ ## 0.9.0 -* [#43](https://github.com/digitalplaywright/mongoid-slug/pull/43): Allowed overriding of slug at model creation time - [@bdmac](https://github.com/bdmac). +* [#43](https://github.com/mongoid/mongoid-slug/pull/43): Allowed overriding of slug at model creation time - [@bdmac](https://github.com/bdmac). ## 0.8.3 @@ -180,20 +181,20 @@ ## 0.8.1 -* [#27](https://github.com/digitalplaywright/mongoid-slug/pull/27): No longer necessary to require library in Gemfile - [@etehtsea](https://github.com/etehtsea). +* [#27](https://github.com/mongoid/mongoid-slug/pull/27): No longer necessary to require library in Gemfile - [@etehtsea](https://github.com/etehtsea). ## 0.8.0 -* [#23](https://github.com/digitalplaywright/mongoid-slug/pull/23): Fix edbug concerning slugs with double-digit counters - [@jbredeche](https://github.com/jbredeche). +* [#23](https://github.com/mongoid/mongoid-slug/pull/23): Fix edbug concerning slugs with double-digit counters - [@jbredeche](https://github.com/jbredeche). * Removed #slug!. The method is of limited value - [@digitalplaywright](https://github.com/digitalplaywright). ## 0.7.2 -* [#21](https://github.com/digitalplaywright/mongoid-slug/pull/21): Added `#find_by_slug!` - [@ajsharp](https://github.com/ajsharp). +* [#21](https://github.com/mongoid/mongoid-slug/pull/21): Added `#find_by_slug!` - [@ajsharp](https://github.com/ajsharp). ## 0.7.1 -* [#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). +* [#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). ## 0.7.0 @@ -201,11 +202,11 @@ ## 0.6.4 -* [#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). +* [#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). ## 0.6.3 -* [#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). +* [#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). ## 0.6.2 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b4efde99..bd1aaf6b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,16 +1,16 @@ Contributing to Mongoid-Slug ============================ -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). +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). #### Fork the Project -Fork the [project on Github](https://github.com/digitalplaywright/mongoid-slug) and check out your copy. +Fork the [project on Github](https://github.com/mongoid/mongoid-slug) and check out your copy. ``` git clone https://github.com/contributor/mongoid-slug.git cd mongoid-slug -git remote add upstream https://github.com/digitalplaywright/mongoid-slug.git +git remote add upstream https://github.com/mongoid/mongoid-slug.git ``` #### Create a Topic Branch @@ -95,7 +95,7 @@ git push origin my-feature-branch -f Update the [CHANGELOG](CHANGELOG.md) with the pull request number. A typical entry looks as follows. ``` -* [#123](https://github.com/digitalplaywright/mongoid-slug/pull/123): Reticulated splines - [@contributor](https://github.com/contributor). +* [#123](https://github.com/mongoid/mongoid-slug/pull/123): Reticulated splines - [@contributor](https://github.com/contributor). ``` Amend your previous commit and force push the changes. diff --git a/README.md b/README.md index d661ee61..2a0dd6b0 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,10 @@ Mongoid Slug 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. -[![Build Status](https://secure.travis-ci.org/digitalplaywright/mongoid-slug.svg)](http://travis-ci.org/digitalplaywright/mongoid-slug) +[![Build Status](https://secure.travis-ci.org/mongoid/mongoid-slug.svg)](http://travis-ci.org/mongoid/mongoid-slug) [![Gem Version](https://badge.fury.io/rb/mongoid-slug.svg)](http://badge.fury.io/rb/mongoid-slug) -[![Dependency Status](https://gemnasium.com/digitalplaywright/mongoid-slug.svg)](https://gemnasium.com/digitalplaywright/mongoid-slug) -[![Code Climate](https://codeclimate.com/github/digitalplaywright/mongoid-slug.svg)](https://codeclimate.com/github/digitalplaywright/mongoid-slug) +[![Dependency Status](https://gemnasium.com/mongoid/mongoid-slug.svg)](https://gemnasium.com/mongoid/mongoid-slug) +[![Code Climate](https://codeclimate.com/github/mongoid/mongoid-slug.svg)](https://codeclimate.com/github/mongoid/mongoid-slug) ### Installation @@ -352,7 +352,7 @@ The following variants of Mongoid Paranoia are officially supported: Contributing ------------ -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. +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. Copyright & License ------------------- diff --git a/UPGRADING.md b/UPGRADING.md index 06c7a89f..94f58743 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -11,19 +11,19 @@ Klass.where(_slugs: []).unset(:_slugs) Klass.where(_slugs: nil).unset(:_slugs) ``` -See [#225](https://github.com/digitalplaywright/mongoid-slug/pull/225) for more information. +See [#225](https://github.com/mongoid/mongoid-slug/pull/225) for more information. #### Changes in unique index definitions 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. -See [#172](https://github.com/digitalplaywright/mongoid-slug/pull/172) and [#227](https://github.com/digitalplaywright/mongoid-slug/pull/227) for more information. +See [#172](https://github.com/mongoid/mongoid-slug/pull/172) and [#227](https://github.com/mongoid/mongoid-slug/pull/227) for more information. ### Upgrading to 5.2.0 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. -See [mongoid-slug#204](https://github.com/digitalplaywright/mongoid-slug/pull/204) for more information. +See [mongoid-slug#204](https://github.com/mongoid/mongoid-slug/pull/204) for more information. ### Deprecated Gem Name @@ -31,4 +31,4 @@ The underscored gem name, _mongoid_slug_, has been deprecated. Use the hyphenate ### Upgrading to 1.0.0 -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. +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. diff --git a/mongoid-slug.gemspec b/mongoid-slug.gemspec index 1fc3fd77..b020d9db 100644 --- a/mongoid-slug.gemspec +++ b/mongoid-slug.gemspec @@ -8,7 +8,7 @@ Gem::Specification.new do |s| s.platform = Gem::Platform::RUBY s.authors = ['Andreas Saebjoernsen'] s.email = ['andy@cosemble.com'] - s.homepage = 'https://github.com/digitalplaywright/mongoid-slug' + s.homepage = 'https://github.com/mongoid/mongoid-slug' s.summary = 'Mongoid URL slugs' s.description = 'Mongoid URL slug or permalink generator' s.license = 'MIT'