tb_blog 1.3.5 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/app/assets/javascripts/admin/blog/posts.js +1 -1
- data/app/controllers/admin/post_categories_controller.rb +3 -3
- data/app/controllers/admin/posts_controller.rb +4 -13
- data/app/controllers/concerns/render_post_action.rb +7 -0
- data/app/controllers/posts_controller.rb +10 -11
- data/app/helpers/admin/posts_helper.rb +1 -1
- data/app/helpers/blog_helper.rb +1 -1
- data/app/models/spud_post.rb +1 -1
- data/app/models/spud_post_category.rb +0 -1
- data/app/models/spud_post_site.rb +1 -1
- data/app/models/{spud → tb_core}/spud_post_model.rb +20 -17
- data/app/views/posts/index.html.erb +1 -1
- data/app/views/posts/index.rss.builder +5 -5
- data/app/views/posts/show.html.erb +1 -1
- data/lib/generators/spud/blog/random_posts_generator.rb +1 -1
- data/lib/spud_blog/engine.rb +8 -9
- data/lib/spud_blog/version.rb +1 -1
- data/spec/controllers/admin/posts_controller_spec.rb +6 -9
- data/spec/controllers/posts_controller_spec.rb +11 -3
- data/spec/dummy/app/controllers/application_controller.rb +1 -1
- data/spec/dummy/config/environments/development.rb +0 -7
- data/spec/dummy/config/environments/production.rb +0 -4
- data/spec/dummy/config/environments/test.rb +1 -1
- data/spec/dummy/config/initializers/secret_token.rb +1 -1
- data/spec/dummy/db/migrate/20180730141254_create_active_storage_tables.active_storage.rb +26 -0
- data/spec/dummy/db/schema.rb +112 -110
- data/spec/factories/spud_post_factories.rb +3 -3
- data/spec/helpers/admin/posts_helper_spec.rb +1 -1
- data/spec/helpers/blog_helper_spec.rb +1 -1
- data/spec/models/spud_post_spec.rb +2 -2
- data/spec/rails_helper.rb +9 -2
- metadata +95 -95
- data/app/controllers/concerns/post_view_for_action.rb +0 -11
- data/spec/dummy/db/migrate/20161020155436_create_tb_liquid_spud_liquid_tags.tb_liquid.rb +0 -13
@@ -22,13 +22,6 @@ Dummy::Application.configure do
|
|
22
22
|
# Only use best-standards-support built into browsers
|
23
23
|
config.action_dispatch.best_standards_support = :builtin
|
24
24
|
|
25
|
-
# Raise exception on mass assignment protection for Active Record models
|
26
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
27
|
-
|
28
|
-
# Log the query plan for queries taking more than this (works
|
29
|
-
# with SQLite, MySQL, and PostgreSQL)
|
30
|
-
config.active_record.auto_explain_threshold_in_seconds = 0.5
|
31
|
-
|
32
25
|
# Do not compress assets
|
33
26
|
config.assets.compress = false
|
34
27
|
|
@@ -60,8 +60,4 @@ Dummy::Application.configure do
|
|
60
60
|
|
61
61
|
# Send deprecation notices to registered listeners
|
62
62
|
config.active_support.deprecation = :notify
|
63
|
-
|
64
|
-
# Log the query plan for queries taking more than this (works
|
65
|
-
# with SQLite, MySQL, and PostgreSQL)
|
66
|
-
# config.active_record.auto_explain_threshold_in_seconds = 0.5
|
67
63
|
end
|
@@ -9,7 +9,7 @@ Dummy::Application.configure do
|
|
9
9
|
|
10
10
|
# Configure static asset server for tests with Cache-Control for performance
|
11
11
|
config.serve_static_assets = true
|
12
|
-
config.
|
12
|
+
config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
|
13
13
|
|
14
14
|
# Do not eager load code on boot. This avoids loading your whole application
|
15
15
|
# just for the purpose of running a single test. If you are using a tool that
|
@@ -4,5 +4,5 @@
|
|
4
4
|
# If you change this key, all old signed cookies will become invalid!
|
5
5
|
# Make sure the secret is at least 30 characters and all random,
|
6
6
|
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
-
Dummy::Application.config.secret_token = '3a89d4b95c1fd9c3d43623d8e2b5a907988d00bfdbfb6de2ae26b760a49fcdc86937728b8cdf3301e4df1342c5f44a3d8d83410d857e341f1907c9c467b9bcf4'
|
7
|
+
# Dummy::Application.config.secret_token = '3a89d4b95c1fd9c3d43623d8e2b5a907988d00bfdbfb6de2ae26b760a49fcdc86937728b8cdf3301e4df1342c5f44a3d8d83410d857e341f1907c9c467b9bcf4'
|
8
8
|
Dummy::Application.config.secret_key_base = '83ed28f1288f2f059bc8f642f2acb0606ed8b46a3490bee501c1223d3acac326c325b2a97f3b984dda20828815aa123c911970579df1faaedefa21613b05630d'
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# This migration comes from active_storage (originally 20170806125915)
|
2
|
+
class CreateActiveStorageTables < ActiveRecord::Migration[5.2]
|
3
|
+
def change
|
4
|
+
create_table :active_storage_blobs do |t|
|
5
|
+
t.string :key, null: false
|
6
|
+
t.string :filename, null: false
|
7
|
+
t.string :content_type
|
8
|
+
t.text :metadata
|
9
|
+
t.bigint :byte_size, null: false
|
10
|
+
t.string :checksum, null: false
|
11
|
+
t.datetime :created_at, null: false
|
12
|
+
|
13
|
+
t.index [ :key ], unique: true
|
14
|
+
end
|
15
|
+
|
16
|
+
create_table :active_storage_attachments do |t|
|
17
|
+
t.string :name, null: false
|
18
|
+
t.references :record, null: false, polymorphic: true, index: false
|
19
|
+
t.references :blob, null: false
|
20
|
+
|
21
|
+
t.datetime :created_at, null: false
|
22
|
+
|
23
|
+
t.index [ :record_type, :record_id, :name, :blob_id ], name: "index_active_storage_attachments_uniqueness", unique: true
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
1
|
# This file is auto-generated from the current state of the database. Instead
|
3
2
|
# of editing this file, please use the migrations feature of Active Record to
|
4
3
|
# incrementally modify your database, and then regenerate this schema definition.
|
@@ -11,135 +10,138 @@
|
|
11
10
|
#
|
12
11
|
# It's strongly recommended that you check this file into your version control system.
|
13
12
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema.define(version: 2018_07_30_141254) do
|
15
14
|
|
16
|
-
create_table
|
17
|
-
t.
|
18
|
-
t.string
|
19
|
-
t.
|
20
|
-
t.
|
21
|
-
t.datetime
|
22
|
-
t.
|
15
|
+
create_table "active_storage_attachments", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
16
|
+
t.string "name", null: false
|
17
|
+
t.string "record_type", null: false
|
18
|
+
t.bigint "record_id", null: false
|
19
|
+
t.bigint "blob_id", null: false
|
20
|
+
t.datetime "created_at", null: false
|
21
|
+
t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id"
|
22
|
+
t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true
|
23
23
|
end
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
t.string
|
29
|
-
t.
|
30
|
-
t.
|
31
|
-
t.
|
25
|
+
create_table "active_storage_blobs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
26
|
+
t.string "key", null: false
|
27
|
+
t.string "filename", null: false
|
28
|
+
t.string "content_type"
|
29
|
+
t.text "metadata"
|
30
|
+
t.bigint "byte_size", null: false
|
31
|
+
t.string "checksum", null: false
|
32
|
+
t.datetime "created_at", null: false
|
33
|
+
t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true
|
32
34
|
end
|
33
35
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
t.
|
38
|
-
t.datetime
|
39
|
-
t.
|
40
|
-
t.string 'url_name', limit: 255
|
36
|
+
create_table "spud_permissions", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
37
|
+
t.string "name", null: false
|
38
|
+
t.string "tag", null: false
|
39
|
+
t.datetime "created_at"
|
40
|
+
t.datetime "updated_at"
|
41
|
+
t.index ["tag"], name: "index_spud_permissions_on_tag", unique: true
|
41
42
|
end
|
42
43
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
t.
|
47
|
-
t.
|
44
|
+
create_table "spud_post_categories", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
45
|
+
t.string "name"
|
46
|
+
t.datetime "created_at"
|
47
|
+
t.datetime "updated_at"
|
48
|
+
t.string "url_name"
|
49
|
+
t.index ["url_name"], name: "index_spud_post_categories_on_url_name"
|
48
50
|
end
|
49
51
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
t.
|
54
|
-
t.string 'title', limit: 255
|
55
|
-
t.text 'content', limit: 65_535
|
56
|
-
t.boolean 'comments_enabled', default: false
|
57
|
-
t.boolean 'visible', default: true
|
58
|
-
t.datetime 'published_at'
|
59
|
-
t.datetime 'created_at'
|
60
|
-
t.datetime 'updated_at'
|
61
|
-
t.string 'url_name', limit: 255
|
62
|
-
t.boolean 'is_news', default: false
|
63
|
-
t.string 'meta_keywords', limit: 255
|
64
|
-
t.text 'meta_description', limit: 65_535
|
65
|
-
t.string 'content_format', limit: 255, default: 'HTML'
|
66
|
-
t.text 'content_processed', limit: 65_535
|
67
|
-
t.string 'blog_key', limit: 255
|
68
|
-
t.string 'custom_author', limit: 255
|
69
|
-
t.string 'identifier', limit: 255
|
52
|
+
create_table "spud_post_categories_posts", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
53
|
+
t.integer "spud_post_id"
|
54
|
+
t.integer "spud_post_category_id"
|
55
|
+
t.index ["spud_post_category_id"], name: "index_spud_post_categories_posts_on_spud_post_category_id"
|
70
56
|
end
|
71
57
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
t.
|
81
|
-
t.string
|
82
|
-
t.
|
83
|
-
t.
|
58
|
+
create_table "spud_posts", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
59
|
+
t.integer "spud_user_id"
|
60
|
+
t.string "title"
|
61
|
+
t.text "content"
|
62
|
+
t.boolean "comments_enabled", default: false
|
63
|
+
t.boolean "visible", default: true
|
64
|
+
t.datetime "published_at"
|
65
|
+
t.datetime "created_at"
|
66
|
+
t.datetime "updated_at"
|
67
|
+
t.string "url_name"
|
68
|
+
t.boolean "is_news", default: false
|
69
|
+
t.string "meta_keywords"
|
70
|
+
t.text "meta_description"
|
71
|
+
t.string "content_format", default: "HTML"
|
72
|
+
t.text "content_processed"
|
73
|
+
t.string "blog_key"
|
74
|
+
t.string "custom_author"
|
75
|
+
t.string "identifier"
|
76
|
+
t.index ["blog_key"], name: "index_spud_posts_on_blog_key"
|
77
|
+
t.index ["identifier"], name: "index_spud_posts_on_identifier", unique: true
|
78
|
+
t.index ["is_news"], name: "index_spud_posts_on_is_news"
|
79
|
+
t.index ["spud_user_id"], name: "index_spud_posts_on_spud_user_id"
|
80
|
+
t.index ["url_name"], name: "index_spud_posts_on_url_name"
|
81
|
+
t.index ["visible"], name: "index_spud_posts_on_visible"
|
84
82
|
end
|
85
83
|
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
t.
|
91
|
-
t.
|
92
|
-
t.
|
84
|
+
create_table "spud_role_permissions", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
85
|
+
t.integer "spud_role_id", null: false
|
86
|
+
t.string "spud_permission_tag", null: false
|
87
|
+
t.datetime "created_at"
|
88
|
+
t.datetime "updated_at"
|
89
|
+
t.index ["spud_permission_tag"], name: "index_spud_role_permissions_on_spud_permission_tag"
|
90
|
+
t.index ["spud_role_id"], name: "index_spud_role_permissions_on_spud_role_id"
|
93
91
|
end
|
94
92
|
|
95
|
-
create_table
|
96
|
-
t.
|
97
|
-
t.
|
98
|
-
t.
|
99
|
-
t.datetime 'created_at'
|
100
|
-
t.datetime 'updated_at'
|
93
|
+
create_table "spud_roles", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
94
|
+
t.string "name"
|
95
|
+
t.datetime "created_at"
|
96
|
+
t.datetime "updated_at"
|
101
97
|
end
|
102
98
|
|
103
|
-
create_table
|
104
|
-
t.
|
105
|
-
t.string
|
106
|
-
t.
|
107
|
-
t.
|
108
|
-
t.
|
109
|
-
t.string 'crypted_password', limit: 255, null: false
|
110
|
-
t.string 'password_salt', limit: 255, null: false
|
111
|
-
t.string 'persistence_token', limit: 255, null: false
|
112
|
-
t.string 'single_access_token', limit: 255, null: false
|
113
|
-
t.string 'perishable_token', limit: 255, null: false
|
114
|
-
t.integer 'login_count', limit: 4, default: 0, null: false
|
115
|
-
t.integer 'failed_login_count', limit: 4, default: 0, null: false
|
116
|
-
t.datetime 'last_request_at'
|
117
|
-
t.datetime 'current_login_at'
|
118
|
-
t.datetime 'last_login_at'
|
119
|
-
t.string 'current_login_ip', limit: 255
|
120
|
-
t.string 'last_login_ip', limit: 255
|
121
|
-
t.datetime 'created_at'
|
122
|
-
t.datetime 'updated_at'
|
123
|
-
t.string 'time_zone', limit: 255
|
124
|
-
t.integer 'spud_role_id', limit: 4
|
125
|
-
t.boolean 'requires_password_change', default: false
|
99
|
+
create_table "spud_user_settings", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
100
|
+
t.integer "spud_user_id"
|
101
|
+
t.string "key"
|
102
|
+
t.string "value"
|
103
|
+
t.datetime "created_at"
|
104
|
+
t.datetime "updated_at"
|
126
105
|
end
|
127
106
|
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
t.string
|
134
|
-
t.
|
135
|
-
t.string
|
136
|
-
t.string
|
137
|
-
t.string
|
138
|
-
t.
|
139
|
-
t.
|
107
|
+
create_table "spud_users", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
108
|
+
t.string "first_name"
|
109
|
+
t.string "last_name"
|
110
|
+
t.boolean "super_admin"
|
111
|
+
t.string "login", null: false
|
112
|
+
t.string "email", null: false
|
113
|
+
t.string "crypted_password", null: false
|
114
|
+
t.string "password_salt", null: false
|
115
|
+
t.string "persistence_token", null: false
|
116
|
+
t.string "single_access_token", null: false
|
117
|
+
t.string "perishable_token", null: false
|
118
|
+
t.integer "login_count", default: 0, null: false
|
119
|
+
t.integer "failed_login_count", default: 0, null: false
|
120
|
+
t.datetime "last_request_at"
|
121
|
+
t.datetime "current_login_at"
|
122
|
+
t.datetime "last_login_at"
|
123
|
+
t.string "current_login_ip"
|
124
|
+
t.string "last_login_ip"
|
125
|
+
t.datetime "created_at"
|
126
|
+
t.datetime "updated_at"
|
127
|
+
t.string "time_zone"
|
128
|
+
t.integer "spud_role_id"
|
129
|
+
t.boolean "requires_password_change", default: false
|
130
|
+
t.index ["email"], name: "index_spud_users_on_email"
|
131
|
+
t.index ["login"], name: "index_spud_users_on_login"
|
132
|
+
t.index ["spud_role_id"], name: "index_spud_users_on_spud_role_id"
|
140
133
|
end
|
141
134
|
|
142
|
-
|
143
|
-
|
135
|
+
create_table "tb_redirects", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
136
|
+
t.string "owner_type"
|
137
|
+
t.integer "owner_id"
|
138
|
+
t.string "source", null: false
|
139
|
+
t.string "destination", null: false
|
140
|
+
t.string "created_by"
|
141
|
+
t.datetime "created_at", null: false
|
142
|
+
t.datetime "updated_at", null: false
|
143
|
+
t.index ["owner_type", "owner_id"], name: "index_tb_redirects_on_owner_type_and_owner_id"
|
144
|
+
t.index ["source"], name: "index_tb_redirects_on_source", unique: true
|
145
|
+
end
|
144
146
|
|
145
147
|
end
|
@@ -1,12 +1,12 @@
|
|
1
|
-
|
1
|
+
FactoryBot.define do
|
2
2
|
|
3
3
|
sequence :spud_post_title do |n|
|
4
4
|
"Test Blog Post #{n}"
|
5
5
|
end
|
6
6
|
|
7
7
|
factory :spud_post do
|
8
|
-
author {
|
9
|
-
title {
|
8
|
+
author { FactoryBot.create(:spud_user) }
|
9
|
+
title { FactoryBot.generate(:spud_post_title) }
|
10
10
|
content 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
|
11
11
|
comments_enabled true
|
12
12
|
visible true
|
@@ -4,7 +4,7 @@ RSpec.describe Admin::PostsHelper, type: :helper do
|
|
4
4
|
|
5
5
|
describe '#link_to_disqus_comment_count' do
|
6
6
|
it 'should return a link with the disqus identifier' do
|
7
|
-
post =
|
7
|
+
post = FactoryBot.create(:spud_post)
|
8
8
|
result = helper.link_to_disqus_comment_count(post)
|
9
9
|
|
10
10
|
expect(result).to include("data-disqus-identifier=\"#{post.identifier}\"")
|
@@ -4,7 +4,7 @@ RSpec.describe BlogHelper, type: :helper do
|
|
4
4
|
|
5
5
|
describe '#disqus_comment_count_for_post' do
|
6
6
|
it 'should return a tag with the disqus identifier' do
|
7
|
-
post =
|
7
|
+
post = FactoryBot.create(:spud_post)
|
8
8
|
result = helper.disqus_comment_count_for_post(post)
|
9
9
|
expect(result).to include("data-disqus-identifier=\"#{post.identifier}\"")
|
10
10
|
end
|
@@ -4,14 +4,14 @@ RSpec.describe SpudPost, type: :model do
|
|
4
4
|
|
5
5
|
describe '#display_date' do
|
6
6
|
it 'should return a date string' do
|
7
|
-
post =
|
7
|
+
post = FactoryBot.create(:spud_post)
|
8
8
|
expect(post.display_date).to eq(post.published_at.strftime('%b %d, %Y'))
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
12
12
|
describe '#set_identifier' do
|
13
13
|
it 'should set a random identifier' do
|
14
|
-
post =
|
14
|
+
post = FactoryBot.create(:spud_post, identifier: nil)
|
15
15
|
expect(post.identifier).to be_a(String)
|
16
16
|
end
|
17
17
|
end
|
data/spec/rails_helper.rb
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
2
|
ENV['RAILS_ENV'] ||= 'test'
|
3
3
|
|
4
|
-
require File.expand_path('
|
4
|
+
require File.expand_path('dummy/config/environment.rb', __dir__)
|
5
5
|
require 'spec_helper'
|
6
6
|
require 'rspec/rails'
|
7
|
+
require 'rails-controller-testing'
|
7
8
|
require 'database_cleaner'
|
8
9
|
require 'simplecov'
|
9
|
-
require '
|
10
|
+
require 'factory_bot_rails'
|
10
11
|
require 'tb_core/test_helper'
|
11
12
|
|
12
13
|
SimpleCov.start 'rails'
|
@@ -33,6 +34,12 @@ SimpleCov.start 'rails'
|
|
33
34
|
# ActiveRecord::Migration.maintain_test_schema!
|
34
35
|
|
35
36
|
RSpec.configure do |config|
|
37
|
+
[:controller, :view, :request].each do |type|
|
38
|
+
config.include ::Rails::Controller::Testing::TestProcess, type: type
|
39
|
+
config.include ::Rails::Controller::Testing::TemplateAssertions, type: type
|
40
|
+
config.include ::Rails::Controller::Testing::Integration, type: type
|
41
|
+
end
|
42
|
+
|
36
43
|
config.raise_errors_for_deprecations!
|
37
44
|
config.infer_base_class_for_anonymous_controllers = false
|
38
45
|
|
metadata
CHANGED
@@ -1,79 +1,79 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tb_blog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3
|
4
|
+
version: 1.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
autorequire:
|
7
|
+
- Moser Consulting
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 5.0.0.1
|
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:
|
26
|
+
version: 5.0.0.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: tb_core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.4.beta2
|
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: 1.
|
40
|
+
version: 1.4.beta2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: tb_redirects
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.0.beta1
|
48
48
|
type: :runtime
|
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: 1.0.beta1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: truncate_html
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: database_cleaner
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
|
-
type: :
|
76
|
+
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: factory_bot_rails
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
@@ -95,63 +95,63 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: mysql2
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: rails-controller-testing
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - "
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: rspec-rails
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - "
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: rubocop
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - "
|
143
|
+
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 0
|
145
|
+
version: '0'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - "
|
150
|
+
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 0
|
152
|
+
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: simplecov
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - ">="
|
@@ -166,7 +166,7 @@ dependencies:
|
|
166
166
|
version: '0'
|
167
167
|
description: Twice Baked blogging/news and rss engine.
|
168
168
|
email:
|
169
|
-
- greg@
|
169
|
+
- greg.woods@moserit.com
|
170
170
|
executables: []
|
171
171
|
extensions: []
|
172
172
|
extra_rdoc_files: []
|
@@ -183,7 +183,7 @@ files:
|
|
183
183
|
- app/controllers/admin/post_categories_controller.rb
|
184
184
|
- app/controllers/admin/posts_controller.rb
|
185
185
|
- app/controllers/concerns/blog_url_helpers.rb
|
186
|
-
- app/controllers/concerns/
|
186
|
+
- app/controllers/concerns/render_post_action.rb
|
187
187
|
- app/controllers/posts_controller.rb
|
188
188
|
- app/helpers/admin/news_posts_helper.rb
|
189
189
|
- app/helpers/admin/post_categories_helper.rb
|
@@ -191,12 +191,12 @@ files:
|
|
191
191
|
- app/helpers/blog/sitemaps_helper.rb
|
192
192
|
- app/helpers/blog_helper.rb
|
193
193
|
- app/helpers/news_helper.rb
|
194
|
-
- app/models/spud/spud_post_model.rb
|
195
194
|
- app/models/spud_blog_config.rb
|
196
195
|
- app/models/spud_post.rb
|
197
196
|
- app/models/spud_post_categories_post.rb
|
198
197
|
- app/models/spud_post_category.rb
|
199
198
|
- app/models/spud_post_site.rb
|
199
|
+
- app/models/tb_core/spud_post_model.rb
|
200
200
|
- app/views/admin/post_categories/_category.html.erb
|
201
201
|
- app/views/admin/post_categories/_form.html.erb
|
202
202
|
- app/views/admin/post_categories/edit.html.erb
|
@@ -278,7 +278,6 @@ files:
|
|
278
278
|
- spec/dummy/db/migrate/20161020155433_drop_spud_admin_permissions.tb_core.rb
|
279
279
|
- spec/dummy/db/migrate/20161020155434_add_requires_password_change_to_spud_users.tb_core.rb
|
280
280
|
- spec/dummy/db/migrate/20161020155435_create_tb_redirects.tb_redirects.rb
|
281
|
-
- spec/dummy/db/migrate/20161020155436_create_tb_liquid_spud_liquid_tags.tb_liquid.rb
|
282
281
|
- spec/dummy/db/migrate/20161020155437_create_spud_posts.tb_blog.rb
|
283
282
|
- spec/dummy/db/migrate/20161020155438_create_spud_post_categories.tb_blog.rb
|
284
283
|
- spec/dummy/db/migrate/20161020155439_add_url_to_spud_posts.tb_blog.rb
|
@@ -295,6 +294,7 @@ files:
|
|
295
294
|
- spec/dummy/db/migrate/20161020155450_drop_spud_post_sites.tb_blog.rb
|
296
295
|
- spec/dummy/db/migrate/20161020155451_add_custom_author_to_post.tb_blog.rb
|
297
296
|
- spec/dummy/db/migrate/20161020155452_add_identifier_to_spud_posts.tb_blog.rb
|
297
|
+
- spec/dummy/db/migrate/20180730141254_create_active_storage_tables.active_storage.rb
|
298
298
|
- spec/dummy/db/schema.rb
|
299
299
|
- spec/dummy/public/404.html
|
300
300
|
- spec/dummy/public/422.html
|
@@ -307,10 +307,10 @@ files:
|
|
307
307
|
- spec/models/spud_post_spec.rb
|
308
308
|
- spec/rails_helper.rb
|
309
309
|
- spec/spec_helper.rb
|
310
|
-
homepage: http://bitbucket.org/
|
310
|
+
homepage: http://bitbucket.org/moser-inc/tb_blog
|
311
311
|
licenses: []
|
312
312
|
metadata: {}
|
313
|
-
post_install_message:
|
313
|
+
post_install_message:
|
314
314
|
rdoc_options: []
|
315
315
|
require_paths:
|
316
316
|
- lib
|
@@ -325,75 +325,75 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
325
325
|
- !ruby/object:Gem::Version
|
326
326
|
version: '0'
|
327
327
|
requirements: []
|
328
|
-
rubyforge_project:
|
329
|
-
rubygems_version: 2.
|
330
|
-
signing_key:
|
328
|
+
rubyforge_project:
|
329
|
+
rubygems_version: 2.6.12
|
330
|
+
signing_key:
|
331
331
|
specification_version: 4
|
332
332
|
summary: Twice Baked Blog Engine.
|
333
333
|
test_files:
|
334
|
-
- spec/
|
335
|
-
- spec/controllers/
|
336
|
-
- spec/
|
334
|
+
- spec/spec_helper.rb
|
335
|
+
- spec/dummy/app/controllers/application_controller.rb
|
336
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
337
337
|
- spec/dummy/app/assets/javascripts/application.js
|
338
338
|
- spec/dummy/app/assets/stylesheets/application.css
|
339
|
-
- spec/dummy/app/controllers/application_controller.rb
|
340
339
|
- spec/dummy/app/helpers/application_helper.rb
|
341
|
-
- spec/dummy/
|
342
|
-
- spec/dummy/config/
|
343
|
-
- spec/dummy/config/boot.rb
|
344
|
-
- spec/dummy/config/database.yml
|
345
|
-
- spec/dummy/config/environment.rb
|
346
|
-
- spec/dummy/config/environments/development.rb
|
340
|
+
- spec/dummy/config/routes.rb
|
341
|
+
- spec/dummy/config/locales/en.yml
|
347
342
|
- spec/dummy/config/environments/production.rb
|
343
|
+
- spec/dummy/config/environments/development.rb
|
348
344
|
- spec/dummy/config/environments/test.rb
|
345
|
+
- spec/dummy/config/environment.rb
|
346
|
+
- spec/dummy/config/application.rb
|
347
|
+
- spec/dummy/config/database.yml
|
348
|
+
- spec/dummy/config/boot.rb
|
349
349
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
350
|
-
- spec/dummy/config/initializers/inflections.rb
|
351
350
|
- spec/dummy/config/initializers/mime_types.rb
|
352
|
-
- spec/dummy/config/initializers/secret_token.rb
|
353
351
|
- spec/dummy/config/initializers/session_store.rb
|
354
352
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
355
|
-
- spec/dummy/config/
|
356
|
-
- spec/dummy/config/
|
353
|
+
- spec/dummy/config/initializers/secret_token.rb
|
354
|
+
- spec/dummy/config/initializers/inflections.rb
|
357
355
|
- spec/dummy/config.ru
|
358
|
-
- spec/dummy/
|
359
|
-
- spec/dummy/
|
360
|
-
- spec/dummy/
|
361
|
-
- spec/dummy/
|
362
|
-
- spec/dummy/
|
363
|
-
- spec/dummy/
|
356
|
+
- spec/dummy/script/rails
|
357
|
+
- spec/dummy/Rakefile
|
358
|
+
- spec/dummy/public/favicon.ico
|
359
|
+
- spec/dummy/public/422.html
|
360
|
+
- spec/dummy/public/500.html
|
361
|
+
- spec/dummy/public/404.html
|
362
|
+
- spec/dummy/db/schema.rb
|
364
363
|
- spec/dummy/db/migrate/20161020155431_create_spud_permissions.tb_core.rb
|
365
|
-
- spec/dummy/db/migrate/20161020155432_create_spud_role_permissions.tb_core.rb
|
366
|
-
- spec/dummy/db/migrate/20161020155433_drop_spud_admin_permissions.tb_core.rb
|
367
|
-
- spec/dummy/db/migrate/20161020155434_add_requires_password_change_to_spud_users.tb_core.rb
|
368
364
|
- spec/dummy/db/migrate/20161020155435_create_tb_redirects.tb_redirects.rb
|
369
|
-
- spec/dummy/db/migrate/
|
365
|
+
- spec/dummy/db/migrate/20161020155425_create_spud_admin_permissions.tb_core.rb
|
366
|
+
- spec/dummy/db/migrate/20161020155442_add_meta_to_posts.tb_blog.rb
|
367
|
+
- spec/dummy/db/migrate/20161020155428_add_scope_to_spud_admin_permissions.tb_core.rb
|
370
368
|
- spec/dummy/db/migrate/20161020155437_create_spud_posts.tb_blog.rb
|
371
369
|
- spec/dummy/db/migrate/20161020155438_create_spud_post_categories.tb_blog.rb
|
372
|
-
- spec/dummy/db/migrate/20161020155439_add_url_to_spud_posts.tb_blog.rb
|
373
|
-
- spec/dummy/db/migrate/20161020155440_add_url_to_spud_post_categories.tb_blog.rb
|
374
|
-
- spec/dummy/db/migrate/20161020155441_add_is_news_to_spud_posts.tb_blog.rb
|
375
|
-
- spec/dummy/db/migrate/20161020155442_add_meta_to_posts.tb_blog.rb
|
376
|
-
- spec/dummy/db/migrate/20161020155443_create_spud_post_sites.tb_blog.rb
|
377
|
-
- spec/dummy/db/migrate/20161020155444_add_nested_set_to_post_categories.tb_blog.rb
|
378
370
|
- spec/dummy/db/migrate/20161020155445_add_content_format_to_spud_posts.tb_blog.rb
|
379
|
-
- spec/dummy/db/migrate/
|
380
|
-
- spec/dummy/db/migrate/
|
381
|
-
- spec/dummy/db/migrate/20161020155448_remove_awesome_nested_set_columns_from_spud_post_categories.tb_blog.rb
|
371
|
+
- spec/dummy/db/migrate/20180730141254_create_active_storage_tables.active_storage.rb
|
372
|
+
- spec/dummy/db/migrate/20161020155433_drop_spud_admin_permissions.tb_core.rb
|
382
373
|
- spec/dummy/db/migrate/20161020155449_add_blog_key_to_spud_posts.tb_blog.rb
|
374
|
+
- spec/dummy/db/migrate/20161020155432_create_spud_role_permissions.tb_core.rb
|
383
375
|
- spec/dummy/db/migrate/20161020155450_drop_spud_post_sites.tb_blog.rb
|
376
|
+
- spec/dummy/db/migrate/20161020155427_add_time_zone_to_spud_user.tb_core.rb
|
377
|
+
- spec/dummy/db/migrate/20161020155429_create_spud_user_settings.tb_core.rb
|
384
378
|
- spec/dummy/db/migrate/20161020155451_add_custom_author_to_post.tb_blog.rb
|
379
|
+
- spec/dummy/db/migrate/20161020155440_add_url_to_spud_post_categories.tb_blog.rb
|
380
|
+
- spec/dummy/db/migrate/20161020155426_create_spud_users.tb_core.rb
|
381
|
+
- spec/dummy/db/migrate/20161020155444_add_nested_set_to_post_categories.tb_blog.rb
|
382
|
+
- spec/dummy/db/migrate/20161020155439_add_url_to_spud_posts.tb_blog.rb
|
383
|
+
- spec/dummy/db/migrate/20161020155448_remove_awesome_nested_set_columns_from_spud_post_categories.tb_blog.rb
|
384
|
+
- spec/dummy/db/migrate/20161020155443_create_spud_post_sites.tb_blog.rb
|
385
|
+
- spec/dummy/db/migrate/20161020155430_create_spud_roles.tb_core.rb
|
386
|
+
- spec/dummy/db/migrate/20161020155447_add_primary_key_to_spud_post_categories_posts.tb_blog.rb
|
387
|
+
- spec/dummy/db/migrate/20161020155441_add_is_news_to_spud_posts.tb_blog.rb
|
385
388
|
- spec/dummy/db/migrate/20161020155452_add_identifier_to_spud_posts.tb_blog.rb
|
386
|
-
- spec/dummy/db/
|
387
|
-
- spec/dummy/
|
388
|
-
- spec/dummy/public/422.html
|
389
|
-
- spec/dummy/public/500.html
|
390
|
-
- spec/dummy/public/favicon.ico
|
391
|
-
- spec/dummy/Rakefile
|
389
|
+
- spec/dummy/db/migrate/20161020155446_add_content_processed_to_spud_post.tb_blog.rb
|
390
|
+
- spec/dummy/db/migrate/20161020155434_add_requires_password_change_to_spud_users.tb_core.rb
|
392
391
|
- spec/dummy/README.rdoc
|
393
|
-
- spec/
|
392
|
+
- spec/models/spud_post_spec.rb
|
394
393
|
- spec/factories/spud_post_factories.rb
|
394
|
+
- spec/controllers/posts_controller_spec.rb
|
395
|
+
- spec/controllers/admin/posts_controller_spec.rb
|
396
|
+
- spec/rails_helper.rb
|
395
397
|
- spec/helpers/admin/posts_helper_spec.rb
|
396
398
|
- spec/helpers/blog_helper_spec.rb
|
397
|
-
- spec/
|
398
|
-
- spec/rails_helper.rb
|
399
|
-
- spec/spec_helper.rb
|
399
|
+
- spec/authlogic_helper.rb
|