manual_slug 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f641880c5a87e9cfb11a49b235aa37dedbe6e5b6d5f136f1b5898e8d446e6a39
|
4
|
+
data.tar.gz: 629c76dadce870f7cdab4306ad527763707f80e012428a6f553cdee09a9644ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfb799607f0e22aa7662239dfbbbe149cb588ef88351b4fb59fceb7bfcb42872e17daa2db8261cfb6f4eefdb3ac149fec4e99022edf5abb569d58e5b99047185
|
7
|
+
data.tar.gz: e58be268a23971cb9b93b933954ff4adbfd62da17f31c1c77af726cafd6f8208d5c51ef660443c39d963d8927a5c610598295c7f4a492a7c598a1adf77b34c65
|
data/lib/manual_slug.rb
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
require "manual_slug/version"
|
2
2
|
|
3
3
|
module ManualSlug
|
4
|
-
autoload :
|
5
|
-
autoload :
|
4
|
+
autoload :MongoidMod, 'manual_slug/mongoid_mod'
|
5
|
+
autoload :ActiveRecordMod, 'manual_slug/active_record_mod'
|
6
6
|
|
7
7
|
extend ActiveSupport::Concern
|
8
8
|
if (defined?(RocketCMS) && RocketCMS.mongoid?)
|
9
|
-
include ManualSlug::
|
9
|
+
include ManualSlug::MongoidMod
|
10
10
|
elsif defined?(ActiveRecord)
|
11
|
-
include ManualSlug::
|
11
|
+
include ManualSlug::ActiveRecordMod
|
12
12
|
elsif defined?(Mongoid)
|
13
|
-
include ManualSlug::
|
13
|
+
include ManualSlug::MongoidMod
|
14
14
|
else
|
15
15
|
puts "manual_slug was unable to find your ORM, please load after ORM"
|
16
16
|
end
|
data/lib/manual_slug/version.rb
CHANGED
data/manual_slug.gemspec
CHANGED
@@ -20,6 +20,6 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_dependency 'activesupport'
|
22
22
|
|
23
|
-
spec.add_development_dependency "bundler", "~> 1.
|
24
|
-
spec.add_development_dependency "rake", "~>
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
24
|
+
spec.add_development_dependency "rake", "~> 12.3"
|
25
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manual_slug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- glebtv
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
33
|
+
version: '1.16'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1.
|
40
|
+
version: '1.16'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '12.3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '12.3'
|
55
55
|
description: ''
|
56
56
|
email:
|
57
57
|
- glebtv@gmail.com
|
@@ -65,8 +65,8 @@ files:
|
|
65
65
|
- README.md
|
66
66
|
- Rakefile
|
67
67
|
- lib/manual_slug.rb
|
68
|
-
- lib/manual_slug/
|
69
|
-
- lib/manual_slug/
|
68
|
+
- lib/manual_slug/active_record_mod.rb
|
69
|
+
- lib/manual_slug/mongoid_mod.rb
|
70
70
|
- lib/manual_slug/version.rb
|
71
71
|
- manual_slug.gemspec
|
72
72
|
homepage: https://github.com/rs-pro/manual_slug
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
91
|
rubyforge_project:
|
92
|
-
rubygems_version: 2.7.
|
92
|
+
rubygems_version: 2.7.6
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
95
|
summary: Allows to set slug manually for friendly_id and mongoid-slug
|