minerva 0.1.29 → 0.1.35
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 -1
- data/config/initializers/minerva.rb +0 -0
- 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: dbb9f4f8c1012bc3d96b144f0b347befdd7e4c1d1aa17f462e77ebcc22ef946b
|
4
|
+
data.tar.gz: 8627ea19a16e83b13ecdff48d6a2af9ac3c36cd2e78b0d15af4d67fbe7d685e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfad56a6224c0133fd03b025793476e4fb98e7010d2d87240eac0f363e57a9c4fc17b892d3641f841c7a32b2fa597ad43ff51bc634012a9c3a75974fcf668e0b
|
7
|
+
data.tar.gz: 21939f663778b468d34921bc90127d7c0215b43858dcc74b6c8886369dbae0327836117a08063af21168dcf31746d711fe5db2591eb27c7ec4aa129fc23c526c
|
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
@@ -3,13 +3,14 @@ module Minerva
|
|
3
3
|
|
4
4
|
belongs_to :interface, optional: true
|
5
5
|
belongs_to :user, optional: true
|
6
|
-
belongs_to :role
|
7
6
|
belongs_to :work
|
8
7
|
|
9
8
|
belongs_to :creator, class_name: "Minerva::User"
|
10
9
|
|
11
10
|
before_destroy { |record| raise ActiveRecord::ReadOnlyRecord }
|
12
11
|
|
12
|
+
attr_accessor :message
|
13
|
+
|
13
14
|
def readonly?
|
14
15
|
# allow the creation, you can also use a more complex condition to allow updates under certain conditions
|
15
16
|
new_record? ? false : true
|
File without changes
|
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.35
|
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-10-14 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