phcdevworks_core_modules 3.0.0 → 4.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: 26a1d4b42d4f3a48e06cbb7b2dcfdc8a175af44eef7822c3a60ff431e9bb897f
4
- data.tar.gz: f80048ced8e87031b052ba6207baabbd583d8dc85e4b00c0877f02faf2aa8b0f
3
+ metadata.gz: 62a7c0e3b836856dece9403e91a82c744952588583ca19648180d063c9d49392
4
+ data.tar.gz: 66941932957bc90eca62ca1f951a96692eee354e9c85e4fc05e5dc160f509a13
5
5
  SHA512:
6
- metadata.gz: ee875e01eca345a2a0db7bcbf19bd2a122151fc57c092e004bc3750ff5bcc1a67689c29c0084c72a42bf48359a36182b798a6cffc94a19827a091ba8e00a1bee
7
- data.tar.gz: 7665795363e0f55ba1f6d3250cfd330e393b71364cb2b5ddb6579d9aca9784e5b335e98e41d3248a8367ff8758ead188f51d0cdf236fc83b31baeaeba1ea48fd
6
+ metadata.gz: 73f70fb86f8b1095b4d69ae813c935d4aec15a34561214624cce14e790046d406fa2aca5691803162617cd07eca9da16a8375fdb45fda4dd575db5fc62f5dd9f
7
+ data.tar.gz: a68547e3c3d75fea5298e849c026165be78d98f2d4978fd8cfcfbfc51a1d1ce6f03816c60b9f5018adbc2c032f81b5e39ca02c76b1c30ea011380dc025b7e2cd
@@ -9,7 +9,7 @@ module PhcdevworksCoreModules
9
9
  has_one_attached :seo_open_graph_image
10
10
 
11
11
  # Paper Trail Initialize
12
- has_paper_trail :class_name => "PhcdevworksCoreModules::CoreOptimizationVersions"
12
+ has_paper_trail :class_name => "PhcdevworksCoreModules::MarketingOptimizationVersions"
13
13
 
14
14
  # Relationships for Local
15
15
  belongs_to :user, class_name: "PhcdevworksAccounts::User"
@@ -0,0 +1,5 @@
1
+ module PhcdevworksCoreModules
2
+ class MarketingOptimizationVersions < PaperTrail::Version
3
+ self.table_name = :phcdevworks_core_modules_marketing_optimization_versions
4
+ end
5
+ end
@@ -9,7 +9,7 @@ module PhcdevworksCoreModules
9
9
  has_one_attached :seo_open_graph_image
10
10
 
11
11
  # Paper Trail Initialize
12
- has_paper_trail :class_name => "PhcdevworksCoreModules::CoreCategoryVersions"
12
+ has_paper_trail :class_name => "PhcdevworksCoreModules::PostCategoryVersions"
13
13
 
14
14
  # Relationships for Local
15
15
  belongs_to :user, class_name: "PhcdevworksAccounts::User"
@@ -31,14 +31,13 @@ module PhcdevworksCoreModules
31
31
  validates :category_name,
32
32
  presence: true,
33
33
  uniqueness: true
34
-
34
+
35
35
  # Clean URL Define
36
36
  friendly_id :phcdev_core_category_nice_urls, use: [:slugged, :finders]
37
-
37
+
38
38
  def phcdev_core_category_nice_urls
39
- [:category_name]
39
+ [:category_name]
40
40
  end
41
-
42
-
41
+
43
42
  end
44
43
  end
@@ -0,0 +1,5 @@
1
+ module PhcdevworksCoreModules
2
+ class PostCategoryVersions < PaperTrail::Version
3
+ self.table_name = :phcdevworks_core_modules_post_category_versions
4
+ end
5
+ end
@@ -1,17 +1,17 @@
1
- class CreatePhcdevworksCoreModulesOptimizationVersions < ActiveRecord::Migration[6.0]
2
- TEXT_BYTES = 1_073_741_823
3
- def change
4
-
5
- create_table :phcdevworks_core_modules_optimization_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 :phcdevworks_core_modules_optimization_versions, %i(item_type item_id), :name => 'core_optimize_versions'
15
-
16
- end
17
- end
1
+ class CreatePhcdevworksCoreModulesPostCategoryVersions < ActiveRecord::Migration[6.0]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+
5
+ create_table :phcdevworks_core_modules_post_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
+
14
+ add_index :phcdevworks_core_modules_post_category_versions, %i(item_type item_id), :name => 'post_category_versions'
15
+
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ class CreatePhcdevworksCoreModulesMarketingOptimizationVersions < ActiveRecord::Migration[6.0]
2
+ TEXT_BYTES = 1_073_741_823
3
+ def change
4
+
5
+ create_table :phcdevworks_core_modules_marketing_optimization_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 :phcdevworks_core_modules_marketing_optimization_versions, %i(item_type item_id), :name => 'marketing_optimize_versions'
15
+
16
+ end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksCoreModules
2
- VERSION = '3.0.0'
2
+ VERSION = '4.0.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_core_modules
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-07 00:00:00.000000000 Z
11
+ date: 2020-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -281,13 +281,13 @@ files:
281
281
  - app/jobs/phcdevworks_core_modules/application_job.rb
282
282
  - app/mailers/phcdevworks_core_modules/application_mailer.rb
283
283
  - app/models/phcdevworks_core_modules/application_record.rb
284
- - app/models/phcdevworks_core_modules/core_category_versions.rb
285
- - app/models/phcdevworks_core_modules/core_optimization_versions.rb
286
284
  - app/models/phcdevworks_core_modules/marketing.rb
287
285
  - app/models/phcdevworks_core_modules/marketing/optimization.rb
286
+ - app/models/phcdevworks_core_modules/marketing_optimization_versions.rb
288
287
  - app/models/phcdevworks_core_modules/modules.rb
289
288
  - app/models/phcdevworks_core_modules/post.rb
290
289
  - app/models/phcdevworks_core_modules/post/category.rb
290
+ - app/models/phcdevworks_core_modules/post_category_versions.rb
291
291
  - app/views/layouts/phcdevworks_core_modules/application.html.erb
292
292
  - app/views/layouts/phcdevworks_core_modules/components/backend/footer/_footer.html.erb
293
293
  - app/views/layouts/phcdevworks_core_modules/components/backend/navigation/_top_menu.html.erb
@@ -303,9 +303,9 @@ files:
303
303
  - app/views/phcdevworks_core_modules/post/categories/new.html.erb
304
304
  - app/views/phcdevworks_core_modules/post/categories/show.html.erb
305
305
  - config/routes.rb
306
- - db/migrate/20170517064427_create_phcdevworks_core_modules_category_versions.rb
306
+ - db/migrate/20170517064427_create_phcdevworks_core_modules_post_category_versions.rb
307
307
  - db/migrate/20200705223718_create_phcdevworks_core_modules_marketing_optimizations.rb
308
- - db/migrate/20200705225433_create_phcdevworks_core_modules_optimization_versions.rb
308
+ - db/migrate/20200705225433_create_phcdevworks_core_modules_marketing_optimization_versions.rb
309
309
  - db/migrate/20200706094820_create_phcdevworks_core_modules_post_categories.rb
310
310
  - lib/phcdevworks_core_modules.rb
311
311
  - lib/phcdevworks_core_modules/engine.rb
@@ -1,5 +0,0 @@
1
- module PhcdevworksCoreModules
2
- class CoreCategoryVersions < PaperTrail::Version
3
- self.table_name = :phcdevworks_core_modules_category_versions
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- module PhcdevworksCoreModules
2
- class CoreOptimizationVersions < PaperTrail::Version
3
- self.table_name = :phcdevworks_core_modules_optimization_versions
4
- end
5
- end
@@ -1,17 +0,0 @@
1
- class CreatePhcdevworksCoreModulesCategoryVersions < ActiveRecord::Migration[6.0]
2
- TEXT_BYTES = 1_073_741_823
3
- def change
4
-
5
- create_table :phcdevworks_core_modules_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
-
14
- add_index :phcdevworks_core_modules_category_versions, %i(item_type item_id), :name => 'core_category_versions'
15
-
16
- end
17
- end