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: 178983bc97d82fca91e31500dc8e614fadfefb5c87bab88b582873e9a8aa2003
4
- data.tar.gz: dd7c7a1e1e13a9002c03b0466ac500a13f9332beed2a1282c006c0e23816844b
3
+ metadata.gz: f641880c5a87e9cfb11a49b235aa37dedbe6e5b6d5f136f1b5898e8d446e6a39
4
+ data.tar.gz: 629c76dadce870f7cdab4306ad527763707f80e012428a6f553cdee09a9644ae
5
5
  SHA512:
6
- metadata.gz: fd09893fa4e24836c69ce19a35b2222366de55fdc8d19696d8ceda3edc7f023b57038781121a0c9ce1cfb0b4a4d647f5c6451a76311b56459474a33cf55f09ab
7
- data.tar.gz: 5ab4d563534fc69be24d0501d116ada736eea2b89d6a5e2a6e80f927c279fb5e6b3a327fe783dddc28f99b7ca7249c7a05d3c728cbdd0c6e19f9f74d1efbcce0
6
+ metadata.gz: bfb799607f0e22aa7662239dfbbbe149cb588ef88351b4fb59fceb7bfcb42872e17daa2db8261cfb6f4eefdb3ac149fec4e99022edf5abb569d58e5b99047185
7
+ data.tar.gz: e58be268a23971cb9b93b933954ff4adbfd62da17f31c1c77af726cafd6f8208d5c51ef660443c39d963d8927a5c610598295c7f4a492a7c598a1adf77b34c65
@@ -1,16 +1,16 @@
1
1
  require "manual_slug/version"
2
2
 
3
3
  module ManualSlug
4
- autoload :Mongoid, 'manual_slug/mongoid'
5
- autoload :ActiveRecord, 'manual_slug/active_record'
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::Mongoid
9
+ include ManualSlug::MongoidMod
10
10
  elsif defined?(ActiveRecord)
11
- include ManualSlug::ActiveRecord
11
+ include ManualSlug::ActiveRecordMod
12
12
  elsif defined?(Mongoid)
13
- include ManualSlug::Mongoid
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
@@ -1,4 +1,4 @@
1
- module ManualSlug::ActiveRecord
1
+ module ManualSlug::ActiveRecordMod
2
2
  extend ActiveSupport::Concern
3
3
 
4
4
  included do
@@ -1,4 +1,4 @@
1
- module ManualSlug::Mongoid
1
+ module ManualSlug::MongoidMod
2
2
  extend ActiveSupport::Concern
3
3
  include ::Mongoid::Slug
4
4
 
@@ -1,3 +1,3 @@
1
1
  module ManualSlug
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -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.7"
24
- spec.add_development_dependency "rake", "~> 10.0"
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.3.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-01-30 00:00:00.000000000 Z
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.7'
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.7'
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: '10.0'
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: '10.0'
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/active_record.rb
69
- - lib/manual_slug/mongoid.rb
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.3
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