spina-admin-journal 0.1.0 → 0.2.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/spina/admin/journal/article.rb +0 -3
- data/app/models/spina/admin/journal/issue.rb +0 -3
- data/app/models/spina/admin/journal/journal.rb +0 -3
- data/db/migrate/20201216152147_create_spina_admin_journal_journals.rb +0 -1
- data/db/migrate/20201216155113_create_spina_admin_journal_issues.rb +0 -1
- data/db/migrate/20201216161122_create_spina_admin_journal_articles.rb +0 -1
- data/lib/spina/admin/journal/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c6bcd6816e32f3ea9345061c96fb045e2ad56b4e0784dc52fa553aa57a17fac5
|
|
4
|
+
data.tar.gz: 83dc5d60bb02ecd87b9559db4923f81b97848842bb66c04f734cbb708c3159d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 94b6fa30869ad9a702b057d7dce487b8a522f9798d5d5d2897f554e19a75a9136760201b1a13d652a9e51f15aefbdf6b2cdd7bf0df3d73ae884f024cc193a37c
|
|
7
|
+
data.tar.gz: f4acc58dcebdb7c13864cc99086376e516095658de37dcbb720127d2d65bdedb37b5dc658116b99f2a5d1f9152b17d0369ce52d3d5e6e674cf12ec5a7d0936b1
|
|
@@ -33,9 +33,6 @@ module Spina
|
|
|
33
33
|
# @!attribute [rw] issue
|
|
34
34
|
# @return [Issue] The issue that contains this article.
|
|
35
35
|
belongs_to :issue
|
|
36
|
-
# @!attribute [rw] file
|
|
37
|
-
# @return [Spina::Attachment] The attached file
|
|
38
|
-
belongs_to :file, class_name: 'Spina::Attachment', optional: true
|
|
39
36
|
|
|
40
37
|
# @!attribute [rw] authorships
|
|
41
38
|
has_many :authorships, dependent: :destroy
|
|
@@ -30,9 +30,6 @@ module Spina
|
|
|
30
30
|
# @!attribute [rw] volume
|
|
31
31
|
# @return [ActiveRecord::Relation] the volume that contains this issue
|
|
32
32
|
belongs_to :volume
|
|
33
|
-
# @!attribute [rw] cover_img
|
|
34
|
-
# @return [Spina::Image, nil] the issue's cover image
|
|
35
|
-
belongs_to :cover_img, class_name: 'Spina::Image', optional: true
|
|
36
33
|
|
|
37
34
|
# @!attribute [rw] issue
|
|
38
35
|
# @return [ActiveRecord::Relation] the articles within this issue
|
|
@@ -20,9 +20,6 @@ module Spina
|
|
|
20
20
|
# @return [String] The name of the journal.
|
|
21
21
|
# @!attribute [rw] singleton_guard
|
|
22
22
|
# @return [Integer] Used to guarantee that a record is unique.
|
|
23
|
-
# @!attribute [rw] logo
|
|
24
|
-
# @return [Spina::Image, nil] The Spina::Image representing the logo of the journal.
|
|
25
|
-
belongs_to :logo, class_name: 'Spina::Image', optional: true
|
|
26
23
|
|
|
27
24
|
# @!attribute [rw] volumes
|
|
28
25
|
# @return [ActiveRecord::Relation] directly associated volumes
|
|
@@ -4,7 +4,6 @@ class CreateSpinaAdminJournalJournals < ActiveRecord::Migration[6.0] # :nodoc:
|
|
|
4
4
|
def change
|
|
5
5
|
create_table :spina_admin_journal_journals do |t|
|
|
6
6
|
t.string :name, null: false, default: 'Unnamed Journal'
|
|
7
|
-
t.references :logo, null: true, foreign_key: { to_table: :spina_images }
|
|
8
7
|
t.integer :singleton_guard, null: false, index: { unique: true }
|
|
9
8
|
|
|
10
9
|
t.timestamps
|
|
@@ -7,7 +7,6 @@ class CreateSpinaAdminJournalIssues < ActiveRecord::Migration[6.0] # :nodoc:
|
|
|
7
7
|
t.string :title, null: false, default: ''
|
|
8
8
|
t.date :date, null: false
|
|
9
9
|
t.references :volume, null: false, foreign_key: { to_table: :spina_admin_journal_volumes }
|
|
10
|
-
t.references :cover_img, null: true, foreign_key: { to_table: :spina_images }
|
|
11
10
|
|
|
12
11
|
t.timestamps
|
|
13
12
|
end
|
|
@@ -8,7 +8,6 @@ class CreateSpinaAdminJournalArticles < ActiveRecord::Migration[6.0] # :nodoc:
|
|
|
8
8
|
t.string :url, null: false, default: ''
|
|
9
9
|
t.string :doi, null: false, default: ''
|
|
10
10
|
t.references :issue, null: false, foreign_key: { to_table: :spina_admin_journal_issues }
|
|
11
|
-
t.references :file, null: true, foreign_key: { to_table: :spina_attachments, on_delete: :nullify }
|
|
12
11
|
|
|
13
12
|
t.timestamps
|
|
14
13
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spina-admin-journal
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Louis Van Steene
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-04-
|
|
11
|
+
date: 2021-04-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: babel-transpiler
|