mongoid-permalinks 0.4.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/mongoid/permalinks.rb +1 -1
- data/lib/mongoid/permalinks/version.rb +1 -1
- data/test/permalinks_test.rb +5 -0
- data/test/test_helper.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f8ad12c0daf0e93e6a6f52ec5f198d388ac63c6
|
4
|
+
data.tar.gz: 51dc0ae46dc6c1329d6d4bf2d5c4939a5ee5de9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6366424d28b2df6b45941420ca81d7d7993d48899f18f5a36221ce315a47ab567d007c94545ae66b4ddb5e93a68a335199c84dc644bf8a5a67bff6d346b08163
|
7
|
+
data.tar.gz: 875038894da17dc619281b07b4f04bf29491efd105ec25bc4851cb2360890eeb6a6f7a09dcf6693f98362d3297c4036f32f4257634abf91991a767d51789a341
|
data/CHANGELOG.md
CHANGED
data/lib/mongoid/permalinks.rb
CHANGED
data/test/permalinks_test.rb
CHANGED
@@ -41,6 +41,11 @@ class PermalinksTest < Minitest::Unit::TestCase
|
|
41
41
|
end
|
42
42
|
|
43
43
|
|
44
|
+
def test_underscores_are_removed
|
45
|
+
assert_equal 'custom-permalink', Document.create(permalink: 'custom_permalink', name: 'Name').permalink
|
46
|
+
end
|
47
|
+
|
48
|
+
|
44
49
|
def test_localized_permalink
|
45
50
|
document = Localized.new
|
46
51
|
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid-permalinks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mario Uher
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|