effective_classifieds 0.5.1 → 0.6.0
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/app/models/effective/classified.rb +1 -1
- data/app/models/effective/classified_wizard.rb +1 -1
- data/config/effective_classifieds.rb +0 -3
- data/db/migrate/{01_create_effective_classifieds.rb.erb → 101_create_effective_classifieds.rb} +7 -7
- data/lib/effective_classifieds/version.rb +1 -1
- data/lib/generators/effective_classifieds/install_generator.rb +1 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79336bbb620e6d45dee7ef30b76c3e8d6af610355c5839e6995edc190eeead60
|
4
|
+
data.tar.gz: f679373fb3056d855711d9e6668e68e06cb434f1804ca7f0052e8d86aeb5f82d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e4add172e382d41b1f78407971a33170afd46e138c71913210e51508beddc9b7588714cd411aa9e2e7827abf31245a377cdf8d40c725317756ba0efb3fc9138
|
7
|
+
data.tar.gz: 50009a6e425035cc59e58abbcf32ce6d70e73eb19a9c7be131e5c50de1ca6bd14ee37729c288709279d7492a71dc506e68ce132c430db205f36c65e15d22a228
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module Effective
|
4
4
|
class Classified < ActiveRecord::Base
|
5
|
-
self.table_name = EffectiveClassifieds.classifieds_table_name.to_s
|
5
|
+
self.table_name = (EffectiveClassifieds.classifieds_table_name || :classifieds).to_s
|
6
6
|
|
7
7
|
attr_accessor :current_user
|
8
8
|
attr_accessor :importing
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Effective
|
2
2
|
class ClassifiedWizard < ActiveRecord::Base
|
3
|
-
self.table_name = EffectiveClassifieds.classified_wizards_table_name.to_s
|
3
|
+
self.table_name = (EffectiveClassifieds.classified_wizards_table_name || :classified_wizards).to_s
|
4
4
|
|
5
5
|
effective_classifieds_classified_wizard
|
6
6
|
end
|
data/db/migrate/{01_create_effective_classifieds.rb.erb → 101_create_effective_classifieds.rb}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
|
-
class CreateEffectiveClassifieds < ActiveRecord::Migration[6.
|
1
|
+
class CreateEffectiveClassifieds < ActiveRecord::Migration[6.0]
|
2
2
|
def change
|
3
|
-
create_table
|
3
|
+
create_table :classifieds do |t|
|
4
4
|
t.integer :classified_wizard_id
|
5
5
|
t.string :classified_wizard_type
|
6
6
|
|
@@ -39,10 +39,10 @@ class CreateEffectiveClassifieds < ActiveRecord::Migration[6.1]
|
|
39
39
|
t.timestamps
|
40
40
|
end
|
41
41
|
|
42
|
-
add_index
|
43
|
-
add_index
|
42
|
+
add_index :classifieds, [:owner_id, :owner_type]
|
43
|
+
add_index :classifieds, :slug
|
44
44
|
|
45
|
-
create_table
|
45
|
+
create_table :classified_wizards do |t|
|
46
46
|
t.string :token
|
47
47
|
|
48
48
|
t.integer :owner_id
|
@@ -65,7 +65,7 @@ class CreateEffectiveClassifieds < ActiveRecord::Migration[6.1]
|
|
65
65
|
t.datetime :created_at
|
66
66
|
end
|
67
67
|
|
68
|
-
add_index
|
69
|
-
add_index
|
68
|
+
add_index :classified_wizards, [:owner_id, :owner_type]
|
69
|
+
add_index :classified_wizards, :token
|
70
70
|
end
|
71
71
|
end
|
@@ -20,10 +20,7 @@ module EffectiveMemberships
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def create_migration_file
|
23
|
-
|
24
|
-
@classified_wizards_table_name = ':' + EffectiveClassifieds.classified_wizards_table_name.to_s
|
25
|
-
|
26
|
-
migration_template ('../' * 3) + 'db/migrate/01_create_effective_classifieds.rb.erb', 'db/migrate/create_effective_classifieds.rb'
|
23
|
+
migration_template ('../' * 3) + 'db/migrate/101_create_effective_classifieds.rb', 'db/migrate/create_effective_classifieds.rb'
|
27
24
|
end
|
28
25
|
|
29
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_classifieds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
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
|
@@ -250,7 +250,7 @@ files:
|
|
250
250
|
- config/effective_classifieds.rb
|
251
251
|
- config/locales/effective_classifieds.en.yml
|
252
252
|
- config/routes.rb
|
253
|
-
- db/migrate/
|
253
|
+
- db/migrate/101_create_effective_classifieds.rb
|
254
254
|
- db/seeds.rb
|
255
255
|
- lib/effective_classifieds.rb
|
256
256
|
- lib/effective_classifieds/engine.rb
|