phcpress 29.0.0 → 30.0.0
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/README.md +1 -1
- data/Rakefile +1 -5
- data/lib/phcpress/engine.rb +1 -1
- data/lib/phcpress/version.rb +1 -1
- metadata +5 -92
- data/config/initializers/friendly_id.rb +0 -92
- data/config/initializers/locale.rb +0 -10
- data/config/initializers/paper_trail.rb +0 -1
- data/config/tinymce.yml +0 -5
- data/db/migrate/20160716182848_create_phcpress_modules_categories.rb +0 -18
- data/db/migrate/20160720181307_create_phcpress_article_posts.rb +0 -21
- data/db/migrate/20160720235314_create_phcpress_modules_connections.rb +0 -19
- data/db/migrate/20170509002355_create_phcpress_friendly_id_slugs.rb +0 -18
- data/db/migrate/20170517064030_create_phcpress_post_versions.rb +0 -17
- data/db/migrate/20170517064114_create_phcpress_connection_versions.rb +0 -16
- data/db/migrate/20170517064427_create_phcpress_category_versions.rb +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 317550e58483de0b2de6d6db6257467eb4077ce02b09b3b4ff4b04c6525158a3
|
4
|
+
data.tar.gz: 01caa1809bacf75fb876d512602dd6235173fb3776b606e70867a43274cf4604
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a38e8adccb80d9c3105291890415a6964bbae3f1042a342e9151b293de1f57bd8d168f8f8929c53f3ded6727d3ebd8944cb89a8195747f80d7de885ffc4b8123
|
7
|
+
data.tar.gz: 6b3e783d629b786b08dd2881780854b40409f916cafb620a3fec7923b2a4739b5df09b35e5996af83c6298fb8ce2d7f63e62c7634e0e527700b5b1e8bd00991e
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -12,7 +12,7 @@ PHCPress rails CMS engine to manage your website's articles, categories and medi
|
|
12
12
|
|
13
13
|
#### Step 1 - Add PHCPress to your gemfile and run command
|
14
14
|
|
15
|
-
gem 'phcpress', '~>
|
15
|
+
gem 'phcpress', '~> 30.0'
|
16
16
|
bundle install
|
17
17
|
|
18
18
|
#### Step 2 - Copy PHCPress Database Tables
|
data/Rakefile
CHANGED
@@ -1,12 +1,10 @@
|
|
1
1
|
begin
|
2
2
|
require 'bundler/setup'
|
3
|
-
|
4
3
|
rescue LoadError
|
5
4
|
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
6
5
|
end
|
7
6
|
|
8
7
|
require 'rdoc/task'
|
9
|
-
|
10
8
|
RDoc::Task.new(:rdoc) do |rdoc|
|
11
9
|
rdoc.rdoc_dir = 'rdoc'
|
12
10
|
rdoc.title = 'Phcpress'
|
@@ -15,9 +13,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
|
|
15
13
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
16
14
|
end
|
17
15
|
|
18
|
-
APP_RAKEFILE = File.expand_path("
|
19
|
-
|
16
|
+
APP_RAKEFILE = File.expand_path("spec/test_app/Rakefile", __dir__)
|
20
17
|
load 'rails/tasks/engine.rake'
|
21
18
|
load 'rails/tasks/statistics.rake'
|
22
|
-
|
23
19
|
require 'bundler/gem_tasks'
|
data/lib/phcpress/engine.rb
CHANGED
data/lib/phcpress/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcpress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 30.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -311,95 +311,19 @@ dependencies:
|
|
311
311
|
- !ruby/object:Gem::Version
|
312
312
|
version: 0.21.0
|
313
313
|
- !ruby/object:Gem::Dependency
|
314
|
-
name:
|
314
|
+
name: phcaccounts
|
315
315
|
requirement: !ruby/object:Gem::Requirement
|
316
316
|
requirements:
|
317
317
|
- - "~>"
|
318
318
|
- !ruby/object:Gem::Version
|
319
|
-
version: '
|
320
|
-
- - ">="
|
321
|
-
- !ruby/object:Gem::Version
|
322
|
-
version: 4.4.3
|
323
|
-
type: :runtime
|
324
|
-
prerelease: false
|
325
|
-
version_requirements: !ruby/object:Gem::Requirement
|
326
|
-
requirements:
|
327
|
-
- - "~>"
|
328
|
-
- !ruby/object:Gem::Version
|
329
|
-
version: '4.4'
|
330
|
-
- - ">="
|
331
|
-
- !ruby/object:Gem::Version
|
332
|
-
version: 4.4.3
|
333
|
-
- !ruby/object:Gem::Dependency
|
334
|
-
name: simple_token_authentication
|
335
|
-
requirement: !ruby/object:Gem::Requirement
|
336
|
-
requirements:
|
337
|
-
- - "~>"
|
338
|
-
- !ruby/object:Gem::Version
|
339
|
-
version: '1.15'
|
340
|
-
type: :runtime
|
341
|
-
prerelease: false
|
342
|
-
version_requirements: !ruby/object:Gem::Requirement
|
343
|
-
requirements:
|
344
|
-
- - "~>"
|
345
|
-
- !ruby/object:Gem::Version
|
346
|
-
version: '1.15'
|
347
|
-
- !ruby/object:Gem::Dependency
|
348
|
-
name: omniauth-facebook
|
349
|
-
requirement: !ruby/object:Gem::Requirement
|
350
|
-
requirements:
|
351
|
-
- - "~>"
|
352
|
-
- !ruby/object:Gem::Version
|
353
|
-
version: '5.0'
|
354
|
-
type: :runtime
|
355
|
-
prerelease: false
|
356
|
-
version_requirements: !ruby/object:Gem::Requirement
|
357
|
-
requirements:
|
358
|
-
- - "~>"
|
359
|
-
- !ruby/object:Gem::Version
|
360
|
-
version: '5.0'
|
361
|
-
- !ruby/object:Gem::Dependency
|
362
|
-
name: omniauth-github
|
363
|
-
requirement: !ruby/object:Gem::Requirement
|
364
|
-
requirements:
|
365
|
-
- - "~>"
|
366
|
-
- !ruby/object:Gem::Version
|
367
|
-
version: '1.3'
|
368
|
-
type: :runtime
|
369
|
-
prerelease: false
|
370
|
-
version_requirements: !ruby/object:Gem::Requirement
|
371
|
-
requirements:
|
372
|
-
- - "~>"
|
373
|
-
- !ruby/object:Gem::Version
|
374
|
-
version: '1.3'
|
375
|
-
- !ruby/object:Gem::Dependency
|
376
|
-
name: omniauth-instagram
|
377
|
-
requirement: !ruby/object:Gem::Requirement
|
378
|
-
requirements:
|
379
|
-
- - "~>"
|
380
|
-
- !ruby/object:Gem::Version
|
381
|
-
version: '1.3'
|
382
|
-
type: :runtime
|
383
|
-
prerelease: false
|
384
|
-
version_requirements: !ruby/object:Gem::Requirement
|
385
|
-
requirements:
|
386
|
-
- - "~>"
|
387
|
-
- !ruby/object:Gem::Version
|
388
|
-
version: '1.3'
|
389
|
-
- !ruby/object:Gem::Dependency
|
390
|
-
name: omniauth-twitter
|
391
|
-
requirement: !ruby/object:Gem::Requirement
|
392
|
-
requirements:
|
393
|
-
- - "~>"
|
394
|
-
- !ruby/object:Gem::Version
|
395
|
-
version: '1.4'
|
319
|
+
version: '6.0'
|
396
320
|
type: :runtime
|
397
321
|
prerelease: false
|
398
322
|
version_requirements: !ruby/object:Gem::Requirement
|
399
323
|
requirements:
|
400
324
|
- - "~>"
|
401
325
|
- !ruby/object:Gem::Version
|
402
|
-
version: '
|
326
|
+
version: '6.0'
|
403
327
|
- !ruby/object:Gem::Dependency
|
404
328
|
name: rspec-rails
|
405
329
|
requirement: !ruby/object:Gem::Requirement
|
@@ -660,18 +584,7 @@ files:
|
|
660
584
|
- app/views/phcpress/modules/connections/index.html.erb
|
661
585
|
- app/views/phcpress/modules/connections/new.html.erb
|
662
586
|
- app/views/phcpress/modules/connections/show.html.erb
|
663
|
-
- config/initializers/friendly_id.rb
|
664
|
-
- config/initializers/locale.rb
|
665
|
-
- config/initializers/paper_trail.rb
|
666
587
|
- config/routes.rb
|
667
|
-
- config/tinymce.yml
|
668
|
-
- db/migrate/20160716182848_create_phcpress_modules_categories.rb
|
669
|
-
- db/migrate/20160720181307_create_phcpress_article_posts.rb
|
670
|
-
- db/migrate/20160720235314_create_phcpress_modules_connections.rb
|
671
|
-
- db/migrate/20170509002355_create_phcpress_friendly_id_slugs.rb
|
672
|
-
- db/migrate/20170517064030_create_phcpress_post_versions.rb
|
673
|
-
- db/migrate/20170517064114_create_phcpress_connection_versions.rb
|
674
|
-
- db/migrate/20170517064427_create_phcpress_category_versions.rb
|
675
588
|
- lib/phcpress.rb
|
676
589
|
- lib/phcpress/engine.rb
|
677
590
|
- lib/phcpress/version.rb
|
@@ -1,92 +0,0 @@
|
|
1
|
-
# FriendlyId Global Configuration
|
2
|
-
#
|
3
|
-
# Use this to set up shared configuration options for your entire application.
|
4
|
-
# Any of the configuration options shown here can also be applied to single
|
5
|
-
# models by passing arguments to the `friendly_id` class method or defining
|
6
|
-
# methods in your model.
|
7
|
-
#
|
8
|
-
# To learn more, check out the guide:
|
9
|
-
#
|
10
|
-
# http://norman.github.io/friendly_id/file.Guide.html
|
11
|
-
|
12
|
-
FriendlyId.defaults do |config|
|
13
|
-
# ## Reserved Words
|
14
|
-
#
|
15
|
-
# Some words could conflict with Rails's routes when used as slugs, or are
|
16
|
-
# undesirable to allow as slugs. Edit this list as needed for your app.
|
17
|
-
config.use :reserved
|
18
|
-
|
19
|
-
config.reserved_words = %w(new edit index session login logout users admin
|
20
|
-
stylesheets assets javascripts images)
|
21
|
-
|
22
|
-
# ## Friendly Finders
|
23
|
-
#
|
24
|
-
# Uncomment this to use friendly finders in all models. By default, if
|
25
|
-
# you wish to find a record by its friendly id, you must do:
|
26
|
-
#
|
27
|
-
# MyModel.friendly.find('foo')
|
28
|
-
#
|
29
|
-
# If you uncomment this, you can do:
|
30
|
-
#
|
31
|
-
# MyModel.find('foo')
|
32
|
-
#
|
33
|
-
# This is significantly more convenient but may not be appropriate for
|
34
|
-
# all applications, so you must explicity opt-in to this behavior. You can
|
35
|
-
# always also configure it on a per-model basis if you prefer.
|
36
|
-
#
|
37
|
-
# Something else to consider is that using the :finders addon boosts
|
38
|
-
# performance because it will avoid Rails-internal code that makes runtime
|
39
|
-
# calls to `Module.extend`.
|
40
|
-
#
|
41
|
-
config.use :finders
|
42
|
-
#
|
43
|
-
# ## Slugs
|
44
|
-
#
|
45
|
-
# Most applications will use the :slugged module everywhere. If you wish
|
46
|
-
# to do so, uncomment the following line.
|
47
|
-
#
|
48
|
-
config.use :slugged
|
49
|
-
#
|
50
|
-
# By default, FriendlyId's :slugged addon expects the slug column to be named
|
51
|
-
# 'slug', but you can change it if you wish.
|
52
|
-
#
|
53
|
-
# config.slug_column = 'slug'
|
54
|
-
#
|
55
|
-
# When FriendlyId can not generate a unique ID from your base method, it appends
|
56
|
-
# a UUID, separated by a single dash. You can configure the character used as the
|
57
|
-
# separator. If you're upgrading from FriendlyId 4, you may wish to replace this
|
58
|
-
# with two dashes.
|
59
|
-
#
|
60
|
-
# config.sequence_separator = '-'
|
61
|
-
#
|
62
|
-
# Note that you must use the :slugged addon **prior** to the line which
|
63
|
-
# configures the sequence separator, or else FriendlyId will raise an undefined
|
64
|
-
# method error.
|
65
|
-
#
|
66
|
-
# ## Tips and Tricks
|
67
|
-
#
|
68
|
-
# ### Controlling when slugs are generated
|
69
|
-
#
|
70
|
-
# As of FriendlyId 5.0, new slugs are generated only when the slug field is
|
71
|
-
# nil, but if you're using a column as your base method can change this
|
72
|
-
# behavior by overriding the `should_generate_new_friendly_id?` method that
|
73
|
-
# FriendlyId adds to your model. The change below makes FriendlyId 5.0 behave
|
74
|
-
# more like 4.0.
|
75
|
-
#
|
76
|
-
# config.use Module.new {
|
77
|
-
# def should_generate_new_friendly_id?
|
78
|
-
# slug.blank? || <your_column_name_here>_changed?
|
79
|
-
# end
|
80
|
-
# }
|
81
|
-
#
|
82
|
-
# FriendlyId uses Rails's `parameterize` method to generate slugs, but for
|
83
|
-
# languages that don't use the Roman alphabet, that's not usually sufficient.
|
84
|
-
# Here we use the Babosa library to transliterate Russian Cyrillic slugs to
|
85
|
-
# ASCII. If you use this, don't forget to add "babosa" to your Gemfile.
|
86
|
-
#
|
87
|
-
# config.use Module.new {
|
88
|
-
# def normalize_friendly_id(text)
|
89
|
-
# text.to_slug.normalize! :transliterations => [:russian, :latin]
|
90
|
-
# end
|
91
|
-
# }
|
92
|
-
end
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# config/initializers/locale.rb
|
2
|
-
|
3
|
-
# Where the I18n library should search for translation files
|
4
|
-
I18n.load_path += Dir[Rails.root.join('lib', 'locale', '*.{rb,yml}')]
|
5
|
-
|
6
|
-
# Whitelist locales available for the application
|
7
|
-
I18n.available_locales = [:en, :pt]
|
8
|
-
|
9
|
-
# Set default locale to something other than :en
|
10
|
-
I18n.default_locale = :en
|
@@ -1 +0,0 @@
|
|
1
|
-
PaperTrail.config.track_associations = false
|
data/config/tinymce.yml
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
class CreatePhcpressModulesCategories < ActiveRecord::Migration[5.2]
|
2
|
-
def change
|
3
|
-
|
4
|
-
create_table :phcpress_modules_categories do |t|
|
5
|
-
|
6
|
-
t.string :catname
|
7
|
-
|
8
|
-
t.string :slug
|
9
|
-
|
10
|
-
t.string :user_id
|
11
|
-
t.string :user_name
|
12
|
-
|
13
|
-
t.timestamps
|
14
|
-
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
class CreatePhcpressArticlePosts < ActiveRecord::Migration[5.2]
|
2
|
-
def change
|
3
|
-
|
4
|
-
create_table :phcpress_article_posts do |t|
|
5
|
-
|
6
|
-
t.string :psttitle
|
7
|
-
t.text :psttext
|
8
|
-
t.string :pststatus
|
9
|
-
t.string :pstimage
|
10
|
-
|
11
|
-
t.string :slug
|
12
|
-
|
13
|
-
t.string :user_id
|
14
|
-
t.string :user_name
|
15
|
-
|
16
|
-
t.timestamps
|
17
|
-
|
18
|
-
end
|
19
|
-
|
20
|
-
end
|
21
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
class CreatePhcpressModulesConnections < ActiveRecord::Migration[5.2]
|
2
|
-
def change
|
3
|
-
|
4
|
-
create_table :phcpress_modules_connections do |t|
|
5
|
-
|
6
|
-
t.references :post
|
7
|
-
t.references :category
|
8
|
-
|
9
|
-
t.string :slug
|
10
|
-
|
11
|
-
t.string :user_id
|
12
|
-
t.string :user_name
|
13
|
-
|
14
|
-
t.timestamps
|
15
|
-
|
16
|
-
end
|
17
|
-
|
18
|
-
end
|
19
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
class CreatePhcpressFriendlyIdSlugs < ActiveRecord::Migration[5.2]
|
2
|
-
def change
|
3
|
-
|
4
|
-
create_table :phcpress_friendly_id_slugs do |t|
|
5
|
-
t.string :slug, :null => false
|
6
|
-
t.integer :sluggable_id, :null => false
|
7
|
-
t.string :sluggable_type, :limit => 50
|
8
|
-
t.string :scope
|
9
|
-
t.datetime :created_at
|
10
|
-
end
|
11
|
-
|
12
|
-
add_index :phcpress_friendly_id_slugs, :sluggable_id
|
13
|
-
add_index :phcpress_friendly_id_slugs, [:slug, :sluggable_type], length: { slug: 140, sluggable_type: 50 }
|
14
|
-
add_index :phcpress_friendly_id_slugs, [:slug, :sluggable_type, :scope], name: 'phcpress_fri_id_slugable_scope_type', length: { slug: 70, sluggable_type: 50, scope: 70 }, unique: true
|
15
|
-
add_index :phcpress_friendly_id_slugs, :sluggable_type
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
class CreatePhcpressPostVersions < ActiveRecord::Migration[5.2]
|
2
|
-
TEXT_BYTES = 1_073_741_823
|
3
|
-
def change
|
4
|
-
|
5
|
-
create_table :phcpress_post_versions do |t|
|
6
|
-
t.string :item_type, {:null=>false}
|
7
|
-
t.integer :item_id, null: false
|
8
|
-
t.string :event, null: false
|
9
|
-
t.string :whodunnit
|
10
|
-
t.text :object, limit: TEXT_BYTES
|
11
|
-
t.datetime :created_at
|
12
|
-
end
|
13
|
-
|
14
|
-
add_index :phcpress_post_versions, %i(item_type item_id), :name => 'press_post_versions'
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
class CreatePhcpressConnectionVersions < ActiveRecord::Migration[5.2]
|
2
|
-
TEXT_BYTES = 1_073_741_823
|
3
|
-
def change
|
4
|
-
|
5
|
-
create_table :phcpress_connection_versions do |t|
|
6
|
-
t.string :item_type, {:null=>false}
|
7
|
-
t.integer :item_id, null: false
|
8
|
-
t.string :event, null: false
|
9
|
-
t.string :whodunnit
|
10
|
-
t.text :object, limit: TEXT_BYTES
|
11
|
-
t.datetime :created_at
|
12
|
-
end
|
13
|
-
add_index :phcpress_connection_versions, %i(item_type item_id), :name => 'press_connection_versions'
|
14
|
-
|
15
|
-
end
|
16
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
class CreatePhcpressCategoryVersions < ActiveRecord::Migration[5.2]
|
2
|
-
TEXT_BYTES = 1_073_741_823
|
3
|
-
def change
|
4
|
-
|
5
|
-
create_table :phcpress_category_versions do |t|
|
6
|
-
t.string :item_type, {:null=>false}
|
7
|
-
t.integer :item_id, null: false
|
8
|
-
t.string :event, null: false
|
9
|
-
t.string :whodunnit
|
10
|
-
t.text :object, limit: TEXT_BYTES
|
11
|
-
t.datetime :created_at
|
12
|
-
end
|
13
|
-
add_index :phcpress_category_versions, %i(item_type item_id), :name => 'press_category_versions'
|
14
|
-
|
15
|
-
end
|
16
|
-
end
|