minerva 0.1.22 → 0.1.23

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
- SHA1:
3
- metadata.gz: ca2d31dc47b00ab28d849906ddad94df400f6a1e
4
- data.tar.gz: 4789d60edddc4ebf4922fbab7293e50a28430bb3
2
+ SHA256:
3
+ metadata.gz: a7eac3fa20b89446c7fdc9aca03935dc5398774fed6f74944925c25edd0b7111
4
+ data.tar.gz: b28d4da7f15c104c0cf3914d30409f5e7493a776fc150bcb79d1625cfd5e39dc
5
5
  SHA512:
6
- metadata.gz: 28307026a84878ed5c1a0096ea4d79ef6cafe113c6dea9bc15196fe6a7ff740a453cf0268814a1552c1a11fdcb3521472c18c6d8e64b99ddcb4a6e379af5e757
7
- data.tar.gz: 973b021f0de3a284e6eb0d847573fff671478c5d694f4908bdf76c915a15bd78b835d9760267e26f9babf97b84a654f14ed750884f0b17909cace0f70af9cc88
6
+ metadata.gz: 076b32177336518b5a6ff10b437737b02ca51a2a5c9fdb2c5b150e792a2d586e7991e3f6ddddfbfd7f658d202b5d2577470e4f9323c9fe22972a4514a42d731a
7
+ data.tar.gz: 2fdf87294a5e2a0a10b2a4bc16819a19f98b29d3ef38e56ce074c154c51e56202f8b08d1e08f39ebb8f6b73303115613baa0cf2925edd0dc420133d86f1576b9
@@ -1,5 +1,5 @@
1
1
  module Minerva
2
2
  class Assignment < ApplicationRecord
3
- belongs_to :interface, :class_name => 'Minerva::Interface', optional: true
3
+ belongs_to :interface, optional: true
4
4
  end
5
5
  end
@@ -1,19 +1,19 @@
1
1
  module Minerva
2
2
  class State < ApplicationRecord
3
-
4
- belongs_to :assignment, :class_name => 'Minerva::Assignment'
5
- belongs_to :status, :class_name => 'Minerva::Status'
3
+
4
+ belongs_to :assignment
5
+ belongs_to :status
6
6
  belongs_to :role
7
7
  belongs_to :work
8
8
  belongs_to :user
9
-
9
+
10
10
  belongs_to :creator, class_name: "Minerva::User"
11
-
11
+
12
12
  before_destroy { |record| raise ActiveRecord::ReadOnlyRecord }
13
-
13
+
14
14
  def readonly?
15
15
  # allow the creation, you can also use a more complex condition to allow updates under certain conditions
16
- new_record? ? false : true
16
+ new_record? ? false : true
17
17
  end
18
18
  end
19
19
  end
@@ -5,8 +5,8 @@ class CreateMinervaStates < ActiveRecord::Migration[5.2]
5
5
  t.integer :user_id
6
6
  t.integer :role_id
7
7
  t.integer :work_id
8
- t.integer :minerva_assignment_id
9
- t.integer :minerva_status_id
8
+ t.integer :assignment_id
9
+ t.integer :status_id
10
10
 
11
11
  t.timestamps
12
12
  end
@@ -15,9 +15,9 @@ class CreateMinervaStates < ActiveRecord::Migration[5.2]
15
15
  add_index :minerva_states, :role_id
16
16
  add_index :minerva_states, :work_id
17
17
 
18
- add_foreign_key :minerva_states, :minerva_assignments, column: :minerva_assignment_id
19
- add_index :minerva_states, :minerva_assignment_id
20
- add_foreign_key :minerva_states, :minerva_statuses, column: :minerva_status_id
21
- add_index :minerva_states, :minerva_status_id
18
+ add_foreign_key :minerva_states, :minerva_assignments, column: :assignment_id
19
+ add_index :minerva_states, :assignment_id
20
+ add_foreign_key :minerva_states, :minerva_statuses, column: :status_id
21
+ add_index :minerva_states, :status_id
22
22
  end
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module Minerva
2
- VERSION = '0.1.22'
2
+ VERSION = '0.1.23'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minerva
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.22
4
+ version: 0.1.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cliff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-22 00:00:00.000000000 Z
11
+ date: 2019-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -118,7 +118,6 @@ extensions: []
118
118
  extra_rdoc_files: []
119
119
  files:
120
120
  - MIT-LICENSE
121
- - README.md
122
121
  - Rakefile
123
122
  - app/assets/config/minerva_manifest.js
124
123
  - app/assets/javascripts/minerva/application.js
@@ -224,8 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
223
  - !ruby/object:Gem::Version
225
224
  version: '0'
226
225
  requirements: []
227
- rubyforge_project:
228
- rubygems_version: 2.5.2.3
226
+ rubygems_version: 3.0.3
229
227
  signing_key:
230
228
  specification_version: 4
231
229
  summary: Minerva is a Rails engine for basic assignment workflow.
data/README.md DELETED
@@ -1,28 +0,0 @@
1
- # Minerva
2
- Short description and motivation.
3
-
4
- ## Usage
5
- How to use my plugin.
6
-
7
- ## Installation
8
- Add this line to your application's Gemfile:
9
-
10
- ```ruby
11
- gem 'minerva'
12
- ```
13
-
14
- And then execute:
15
- ```bash
16
- $ bundle
17
- ```
18
-
19
- Or install it yourself as:
20
- ```bash
21
- $ gem install minerva
22
- ```
23
-
24
- ## Contributing
25
- Contribution directions go here.
26
-
27
- ## License
28
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).