mongoid_permalink_extension 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/lib/mongoid_permalink_extension/permalink.rb +1 -1
- data/lib/mongoid_permalink_extension/version.rb +1 -1
- data/mongoid_permalink_extension.gemspec +17 -17
- metadata +7 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 871d9e6f3675450b0bea4e3f772d4ca1a37a7d3e
|
4
|
+
data.tar.gz: cfe647f888ec7ee710a434a0ba057aa3a8da6e1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32a6ff15eb4117584c9c98f323da1b8f3f5152ffe39889cd08856da9102bba9df0de551e645a734653da3478a98d61e54d7b34618ab41513d9ea9b1045f130ad
|
7
|
+
data.tar.gz: 62526cba6d41c7e3619b01dd22e5dc24bff869a3bc5397889db892d6c4bd9e79669a854c145232cc71f8d408352ca979bbc2d0ba5b3668968aaa56c1091396b3
|
data/.travis.yml
CHANGED
@@ -12,7 +12,7 @@ module MongoidPermalinkExtension
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def mongoize value
|
15
|
-
return if value.nil?
|
15
|
+
return if value.nil? # FIXME: this way we can never set the value to nil
|
16
16
|
value.to_s.
|
17
17
|
gsub(/([^[:upper:]](?=[[:upper:]]))|([a-z](?=\d+))/, '\1\2-').
|
18
18
|
gsub(/\//, '-').
|
@@ -4,27 +4,27 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'mongoid_permalink_extension/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
7
|
+
spec.name = 'mongoid_permalink_extension'
|
8
8
|
spec.version = MongoidPermalinkExtension::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
11
|
-
spec.description =
|
12
|
-
spec.summary =
|
13
|
-
spec.homepage =
|
14
|
-
spec.license =
|
9
|
+
spec.authors = ['Tomas Celizna']
|
10
|
+
spec.email = ['tomas.celizna@gmail.com']
|
11
|
+
spec.description = 'Custom field type for Mongoid that automatically converts strings to URL slugs.'
|
12
|
+
spec.summary = 'Custom field type for Mongoid that automatically converts strings to URL slugs.'
|
13
|
+
spec.homepage = 'https://github.com/tomasc/mongoid_permalink_extension'
|
14
|
+
spec.license = 'MIT'
|
15
15
|
|
16
|
-
spec.files = `git ls-files`.split(
|
16
|
+
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
-
spec.require_paths = [
|
19
|
+
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_dependency
|
22
|
-
spec.add_dependency
|
21
|
+
spec.add_dependency 'mongoid', '>= 4.0'
|
22
|
+
spec.add_dependency 'stringex'
|
23
23
|
|
24
|
-
spec.add_development_dependency
|
25
|
-
spec.add_development_dependency
|
26
|
-
spec.add_development_dependency
|
27
|
-
spec.add_development_dependency
|
28
|
-
spec.add_development_dependency
|
29
|
-
spec.add_development_dependency
|
24
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
25
|
+
spec.add_development_dependency 'coveralls'
|
26
|
+
spec.add_development_dependency 'guard'
|
27
|
+
spec.add_development_dependency 'guard-minitest'
|
28
|
+
spec.add_development_dependency 'minitest'
|
29
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
30
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_permalink_extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomas Celizna
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongoid
|
@@ -17,9 +17,6 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '4.0'
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '6.0'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,9 +24,6 @@ dependencies:
|
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '4.0'
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '6.0'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: stringex
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -118,16 +112,16 @@ dependencies:
|
|
118
112
|
name: rake
|
119
113
|
requirement: !ruby/object:Gem::Requirement
|
120
114
|
requirements:
|
121
|
-
- - "
|
115
|
+
- - "~>"
|
122
116
|
- !ruby/object:Gem::Version
|
123
|
-
version: '0'
|
117
|
+
version: '10.0'
|
124
118
|
type: :development
|
125
119
|
prerelease: false
|
126
120
|
version_requirements: !ruby/object:Gem::Requirement
|
127
121
|
requirements:
|
128
|
-
- - "
|
122
|
+
- - "~>"
|
129
123
|
- !ruby/object:Gem::Version
|
130
|
-
version: '0'
|
124
|
+
version: '10.0'
|
131
125
|
description: Custom field type for Mongoid that automatically converts strings to
|
132
126
|
URL slugs.
|
133
127
|
email:
|
@@ -171,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
165
|
version: '0'
|
172
166
|
requirements: []
|
173
167
|
rubyforge_project:
|
174
|
-
rubygems_version: 2.4.
|
168
|
+
rubygems_version: 2.4.5.1
|
175
169
|
signing_key:
|
176
170
|
specification_version: 4
|
177
171
|
summary: Custom field type for Mongoid that automatically converts strings to URL
|