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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75a11c42a861742be9bee3d10d3a84f745f2d489b8a1ad61bf8e699f4f7fdc04
4
- data.tar.gz: 343abc141c3af6b35492ec12a4c99325b116a3f63c5058fe7c61359cdfcd0da2
3
+ metadata.gz: c6bcd6816e32f3ea9345061c96fb045e2ad56b4e0784dc52fa553aa57a17fac5
4
+ data.tar.gz: 83dc5d60bb02ecd87b9559db4923f81b97848842bb66c04f734cbb708c3159d6
5
5
  SHA512:
6
- metadata.gz: 8209f366bfdd31dee8b559a9ca0c3966f3383687560b87a20cda19fbb198eb8faa5929d07e1b97b773464ab950fb5d2c298b4e168a22afacec726c7bb7fee2a4
7
- data.tar.gz: 7182be875c118c6c59322b6e5a3fd51d81d5d51700be8db549ae48438df05bbb2fd9c290219cdbcae3d28b5530e172e5891ceb1636954c7aa36410406f96573b
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
@@ -3,7 +3,7 @@
3
3
  module Spina
4
4
  module Admin
5
5
  module Journal
6
- VERSION = '0.1.0'
6
+ VERSION = '0.2.0'
7
7
  end
8
8
  end
9
9
  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.1.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-24 00:00:00.000000000 Z
11
+ date: 2021-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: babel-transpiler