effective_posts 2.3.1 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/app/models/effective/post.rb +2 -2
- data/config/effective_posts.rb +0 -2
- data/db/migrate/{01_create_effective_posts.rb.erb → 101_create_effective_posts.rb} +3 -8
- data/lib/effective_posts/version.rb +1 -1
- data/lib/generators/effective_posts/install_generator.rb +1 -3
- metadata +89 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f406e0650b91463c3e1b876f9001bdafbf683563d9bf943512b7d87f8c00f9e
|
4
|
+
data.tar.gz: 1241584d8be8da46c3fa6f44fb765796a34e8ee74e6f137580d1984dc0a0d982
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9eade43433c5c0da6e64816a25c5cc8857702a2af369b1f7027c4cbe44b8f78370e4ad853f40555a9ce7f1f9428a72f330ec09e530b0f956f74bdcb775d157eb
|
7
|
+
data.tar.gz: d8107969ffb90e822afe14507044e8a040d65cb97e7c3a9444a648b90768cf9637c67a88ee2dbc07aacdeafea6a585895ac3f94f286f24275de9c2b8c466614a
|
data/MIT-LICENSE
CHANGED
@@ -57,8 +57,8 @@ module Effective
|
|
57
57
|
validates :start_at, presence: true, if: -> { category == 'events' }
|
58
58
|
|
59
59
|
scope :drafts, -> { where(draft: true) }
|
60
|
-
scope :published, -> { where(draft: false).where("
|
61
|
-
scope :unpublished, -> { where(draft: true).or(where("
|
60
|
+
scope :published, -> { where(draft: false).where("published_at < ?", Time.zone.now) }
|
61
|
+
scope :unpublished, -> { where(draft: true).or(where("published_at > ?", Time.zone.now)) }
|
62
62
|
scope :with_category, -> (category) { where(category: category) }
|
63
63
|
|
64
64
|
# Kind of a meta category
|
data/config/effective_posts.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
class CreateEffectivePosts < ActiveRecord::Migration[
|
2
|
-
def
|
3
|
-
create_table
|
1
|
+
class CreateEffectivePosts < ActiveRecord::Migration[6.0]
|
2
|
+
def change
|
3
|
+
create_table :posts do |t|
|
4
4
|
t.integer :user_id
|
5
5
|
t.string :user_type
|
6
6
|
|
@@ -30,9 +30,4 @@ class CreateEffectivePosts < ActiveRecord::Migration[4.2]
|
|
30
30
|
t.datetime :created_at
|
31
31
|
end
|
32
32
|
end
|
33
|
-
|
34
|
-
def self.down
|
35
|
-
drop_table <%= @posts_table_name %>
|
36
|
-
end
|
37
|
-
|
38
33
|
end
|
@@ -20,9 +20,7 @@ module EffectivePosts
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def create_migration_file
|
23
|
-
|
24
|
-
|
25
|
-
migration_template ('../' * 3) + 'db/migrate/01_create_effective_posts.rb.erb', 'db/migrate/create_effective_posts.rb'
|
23
|
+
migration_template ('../' * 3) + 'db/migrate/101_create_effective_posts.rb', 'db/migrate/create_effective_posts.rb'
|
26
24
|
end
|
27
25
|
|
28
26
|
def copy_mailer_preview
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_posts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: sassc
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
@@ -80,6 +80,90 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '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: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: devise
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: pry-byebug
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: effective_test_bot
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: effective_developer
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: psych
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "<"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '4'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "<"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '4'
|
83
167
|
description: A blog implementation with WYSIWYG content editing, post scheduling,
|
84
168
|
pagination and optional top level routes for each post category.
|
85
169
|
email:
|
@@ -122,7 +206,7 @@ files:
|
|
122
206
|
- app/views/effective/posts_mailer/post_submitted.html.haml
|
123
207
|
- config/effective_posts.rb
|
124
208
|
- config/routes.rb
|
125
|
-
- db/migrate/
|
209
|
+
- db/migrate/101_create_effective_posts.rb
|
126
210
|
- lib/effective_posts.rb
|
127
211
|
- lib/effective_posts/engine.rb
|
128
212
|
- lib/effective_posts/version.rb
|
@@ -147,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
231
|
- !ruby/object:Gem::Version
|
148
232
|
version: '0'
|
149
233
|
requirements: []
|
150
|
-
rubygems_version: 3.
|
234
|
+
rubygems_version: 3.3.7
|
151
235
|
signing_key:
|
152
236
|
specification_version: 4
|
153
237
|
summary: A blog implementation with WYSIWYG content editing, post scheduling, pagination
|