sluggi 2.0.0 → 3.0.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: 183a80354c5c2961a06f2bfb30c00d2ba041475c66903307b6b3ceb365796cbe
4
- data.tar.gz: 215ba9fbe8b604f934c71e5c8114d31e03f143d97dcee1a34424c13151ced084
3
+ metadata.gz: c1e05dc6da17b7af7ac48f24f1ceeb086da1151da44327d724e76f694ef02b2b
4
+ data.tar.gz: 1fe64d38ba6211a4438eb283c89a778b234f977d8cbac76954be1b6ccb929800
5
5
  SHA512:
6
- metadata.gz: 157a8f7ff7f2cba47c84741db578733a5ca1a61474f8a1e9d50b4a42ed9ee2a718fb15b0dcab90a53887bca51fcfe567b599d40a9371d703bab565217f754782
7
- data.tar.gz: 6d673e52d9bd68df5d4413e8eb64bf7d8c90db80cec5fe011802ff209efee0b685a56710d25996a48e2b6698955f89397421f69f0da5d0bfe1ed1a4f7e80ffe8
6
+ metadata.gz: f5783c24559ec5c4a88ed7f766f396531fc75da37f78a3f599bf7a56c509b844beae44128bfdabe4b3df06669a1f35affc8c11dc7d5ceba2ce19838ef303b1c1
7
+ data.tar.gz: 836191eeac4d3118d92cc21a1c766c3647041af4430354bec39214d0345228a16946ddc886641cfccd57db514861a3ab04934cf24461378a1d446f75ebe9b0d6
@@ -6,10 +6,10 @@ module Sluggi
6
6
 
7
7
  included do
8
8
  has_many :slugs,
9
- -> { order("slugs.id DESC") },
10
- class_name: "Sluggi::Slug",
11
- as: :sluggable,
12
- dependent: :destroy
9
+ -> { order("slugs.id DESC") },
10
+ class_name: "Sluggi::Slug",
11
+ as: :sluggable,
12
+ dependent: :destroy
13
13
 
14
14
  after_save :create_slug, if: :saved_change_to_slug_value?
15
15
  end
data/lib/sluggi/model.rb CHANGED
@@ -4,8 +4,8 @@ module Sluggi
4
4
  module Model
5
5
  extend ActiveSupport::Concern
6
6
 
7
- NOT_IMPLEMENTED_MESSAGE = "You must implement #slug_value_changed? "\
8
- "and either #slug_value or #slug_candidates"
7
+ NOT_IMPLEMENTED_MESSAGE = "You must implement #slug_value_changed? " \
8
+ "and either #slug_value or #slug_candidates"
9
9
 
10
10
  included do
11
11
  before_validation :set_slug
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sluggi
4
- VERSION = "2.0.0"
4
+ VERSION = "3.0.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sluggi
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tee Parham
@@ -16,87 +16,31 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '6.0'
19
+ version: '7.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '6.0'
26
+ version: '7.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: railties
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '6.0'
33
+ version: '7.0'
34
34
  type: :runtime
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: '6.0'
41
- - !ruby/object:Gem::Dependency
42
- name: appraisal
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '2.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '2.0'
55
- - !ruby/object:Gem::Dependency
56
- name: minitest
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '5.22'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '5.22'
69
- - !ruby/object:Gem::Dependency
70
- name: rake
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '13.0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '13.0'
83
- - !ruby/object:Gem::Dependency
84
- name: sqlite3
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '1.3'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '1.3'
40
+ version: '7.0'
97
41
  description: A Rails slug generator inspired by friendly_id
98
42
  email:
99
- - tee@neighborland.com
43
+ - parhameter@gmail.com
100
44
  executables: []
101
45
  extensions: []
102
46
  extra_rdoc_files: []
@@ -117,7 +61,8 @@ files:
117
61
  homepage: https://github.com/neighborland/sluggi
118
62
  licenses:
119
63
  - MIT
120
- metadata: {}
64
+ metadata:
65
+ rubygems_mfa_required: 'true'
121
66
  post_install_message:
122
67
  rdoc_options: []
123
68
  require_paths: