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 +5 -5
- data/app/models/minerva/assignment.rb +1 -1
- data/app/models/minerva/state.rb +7 -7
- data/db/migrate/20181218183815_create_minerva_states.rb +6 -6
- data/lib/minerva/version.rb +1 -1
- metadata +3 -5
- data/README.md +0 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a7eac3fa20b89446c7fdc9aca03935dc5398774fed6f74944925c25edd0b7111
|
4
|
+
data.tar.gz: b28d4da7f15c104c0cf3914d30409f5e7493a776fc150bcb79d1625cfd5e39dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 076b32177336518b5a6ff10b437737b02ca51a2a5c9fdb2c5b150e792a2d586e7991e3f6ddddfbfd7f658d202b5d2577470e4f9323c9fe22972a4514a42d731a
|
7
|
+
data.tar.gz: 2fdf87294a5e2a0a10b2a4bc16819a19f98b29d3ef38e56ce074c154c51e56202f8b08d1e08f39ebb8f6b73303115613baa0cf2925edd0dc420133d86f1576b9
|
data/app/models/minerva/state.rb
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
module Minerva
|
2
2
|
class State < ApplicationRecord
|
3
|
-
|
4
|
-
belongs_to :assignment
|
5
|
-
belongs_to :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 :
|
9
|
-
t.integer :
|
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: :
|
19
|
-
add_index :minerva_states, :
|
20
|
-
add_foreign_key :minerva_states, :minerva_statuses, column: :
|
21
|
-
add_index :minerva_states, :
|
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
|
data/lib/minerva/version.rb
CHANGED
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.
|
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-
|
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
|
-
|
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).
|