minerva 0.1.27 → 0.1.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +32 -0
- data/app/models/minerva/state.rb +2 -3
- data/config/initializers/minerva.rb +0 -0
- data/db/migrate/20181218183815_create_minerva_states.rb +1 -1
- data/db/migrate/20191106053529_remove_role.rb +7 -0
- data/db/migrate/20210119184915_add_message_to_states.rb +5 -0
- data/lib/minerva/version.rb +1 -1
- metadata +7 -4
- data/app/models/minerva/role.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ddbe2c814881305faa4e8adf490bf83df0e006df71cf745732a298d82392180
|
4
|
+
data.tar.gz: c5b4e0e3cba79a120d5e63c9ee8b3ad480023eb7b7a586ddbd19d8240abdded7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a1ebd02e55f9be0fcba3b48378441e524d476e1f69a0ef199ad9f5cd43249d57ea54b300a8bcd5fd306a9a8b3aec725a91b25d293cba717d6b627645268e338
|
7
|
+
data.tar.gz: ce9346d6469d3c64357e7f6a3db75f3596c7966cc1185e841f404c66d42e29a9c94ffea388e75190c5254562a8f02806c650f14523958a0db51a469ed268e3f1
|
data/Rakefile
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
begin
|
2
|
+
require 'bundler/setup'
|
3
|
+
rescue LoadError
|
4
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'rdoc/task'
|
8
|
+
|
9
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
+
rdoc.rdoc_dir = 'rdoc'
|
11
|
+
rdoc.title = 'Minerva'
|
12
|
+
rdoc.options << '--line-numbers'
|
13
|
+
rdoc.rdoc_files.include('README.md')
|
14
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
+
end
|
16
|
+
|
17
|
+
# APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
|
18
|
+
load 'rails/tasks/engine.rake'
|
19
|
+
|
20
|
+
load 'rails/tasks/statistics.rake'
|
21
|
+
|
22
|
+
require 'bundler/gem_tasks'
|
23
|
+
|
24
|
+
require 'rake/testtask'
|
25
|
+
|
26
|
+
Rake::TestTask.new(:test) do |t|
|
27
|
+
t.libs << 'test'
|
28
|
+
t.pattern = 'test/**/*_test.rb'
|
29
|
+
t.verbose = false
|
30
|
+
end
|
31
|
+
|
32
|
+
task default: :test
|
data/app/models/minerva/state.rb
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
module Minerva
|
2
2
|
class State < ApplicationRecord
|
3
3
|
|
4
|
-
belongs_to :interface
|
5
|
-
belongs_to :
|
4
|
+
belongs_to :interface, optional: true
|
5
|
+
belongs_to :user, optional: true
|
6
6
|
belongs_to :work
|
7
|
-
belongs_to :user
|
8
7
|
|
9
8
|
belongs_to :creator, class_name: "Minerva::User"
|
10
9
|
|
File without changes
|
@@ -14,8 +14,8 @@ class CreateMinervaStates < ActiveRecord::Migration[5.2]
|
|
14
14
|
add_index :minerva_states, :user_id
|
15
15
|
add_index :minerva_states, :role_id
|
16
16
|
add_index :minerva_states, :work_id
|
17
|
+
add_index :minerva_states, :interface_id
|
17
18
|
|
18
19
|
add_foreign_key :minerva_states, :minerva_interfaces, column: :interface_id
|
19
|
-
add_index :minerva_interfaces, :interface_id
|
20
20
|
end
|
21
21
|
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.33
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Cliff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -35,14 +35,15 @@ extra_rdoc_files: []
|
|
35
35
|
files:
|
36
36
|
- MIT-LICENSE
|
37
37
|
- README.md
|
38
|
+
- Rakefile
|
38
39
|
- app/models/minerva/application_record.rb
|
39
40
|
- app/models/minerva/interface.rb
|
40
41
|
- app/models/minerva/project.rb
|
41
|
-
- app/models/minerva/role.rb
|
42
42
|
- app/models/minerva/state.rb
|
43
43
|
- app/models/minerva/user.rb
|
44
44
|
- app/models/minerva/work.rb
|
45
45
|
- app/models/minerva/workflow.rb
|
46
|
+
- config/initializers/minerva.rb
|
46
47
|
- db/migrate/20181218183254_create_minerva_workflows.rb
|
47
48
|
- db/migrate/20181218183615_create_minerva_interfaces.rb
|
48
49
|
- db/migrate/20181218183815_create_minerva_states.rb
|
@@ -56,6 +57,8 @@ files:
|
|
56
57
|
- db/migrate/20190107164946_add_auid_to_work.rb
|
57
58
|
- db/migrate/20190107171954_add_index_to_auid.rb
|
58
59
|
- db/migrate/20190107173209_change_auid_to_not_null.rb
|
60
|
+
- db/migrate/20191106053529_remove_role.rb
|
61
|
+
- db/migrate/20210119184915_add_message_to_states.rb
|
59
62
|
- lib/minerva.rb
|
60
63
|
- lib/minerva/engine.rb
|
61
64
|
- lib/minerva/version.rb
|
@@ -79,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
82
|
version: '0'
|
80
83
|
requirements: []
|
81
84
|
rubyforge_project:
|
82
|
-
rubygems_version: 2.7.6
|
85
|
+
rubygems_version: 2.7.6.2
|
83
86
|
signing_key:
|
84
87
|
specification_version: 4
|
85
88
|
summary: Minerva is a Rails engine for basic assignment workflow.
|
data/app/models/minerva/role.rb
DELETED