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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9d8e5570b02bb73d75d54a4b910001b9c1762c6fabe432169647c87b27e8192
4
- data.tar.gz: 41e7bb371e0e9e35199cbc4f756861c38bb06a73c737839a31d84a33429a1215
3
+ metadata.gz: 7f406e0650b91463c3e1b876f9001bdafbf683563d9bf943512b7d87f8c00f9e
4
+ data.tar.gz: 1241584d8be8da46c3fa6f44fb765796a34e8ee74e6f137580d1984dc0a0d982
5
5
  SHA512:
6
- metadata.gz: 29142f4e9ba9cf43ccef2f15b4dc555c54c7962a89df168d058a09a1ac8e3cd52e4e0010ddfacd902ae426c41d11a967a067a4ffd0acea9e2064ffac2b2ec7e4
7
- data.tar.gz: 80480ad18d597104970d8356afb629067a2dd459a9344234e128e5ab406c858e1291916f2b4f13cb07229709c24af9faf67c7cd50ab84d6c42b27049f2d2add4
6
+ metadata.gz: 9eade43433c5c0da6e64816a25c5cc8857702a2af369b1f7027c4cbe44b8f78370e4ad853f40555a9ce7f1f9428a72f330ec09e530b0f956f74bdcb775d157eb
7
+ data.tar.gz: d8107969ffb90e822afe14507044e8a040d65cb97e7c3a9444a648b90768cf9637c67a88ee2dbc07aacdeafea6a585895ac3f94f286f24275de9c2b8c466614a
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2021 Code and Effect Inc.
1
+ Copyright 2023 Code and Effect Inc.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -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("#{EffectivePosts.posts_table_name}.published_at < ?", Time.zone.now) }
61
- scope :unpublished, -> { where(draft: true).or(where("#{EffectivePosts.posts_table_name}.published_at > ?", Time.zone.now)) }
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
@@ -1,6 +1,4 @@
1
1
  EffectivePosts.setup do |config|
2
- config.posts_table_name = :posts
3
-
4
2
  # Every post must have a category
5
3
  # Each of these categories parameterized value will be a top level route
6
4
  config.categories = ['News', 'Events']
@@ -1,6 +1,6 @@
1
- class CreateEffectivePosts < ActiveRecord::Migration[4.2]
2
- def self.up
3
- create_table <%= @posts_table_name %> do |t|
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
@@ -1,3 +1,3 @@
1
1
  module EffectivePosts
2
- VERSION = '2.3.1'.freeze
2
+ VERSION = '2.4.1'.freeze
3
3
  end
@@ -20,9 +20,7 @@ module EffectivePosts
20
20
  end
21
21
 
22
22
  def create_migration_file
23
- @posts_table_name = ':' + EffectivePosts.posts_table_name.to_s
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.3.1
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-16 00:00:00.000000000 Z
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: sass
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/01_create_effective_posts.rb.erb
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.4.10
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